43 Foam::XiGModels::basicSubGrid::basicSubGrid
45 const dictionary& XiGProperties,
46 const psiuReactionThermo&
thermo,
51 XiGModel(XiGProperties, thermo, turbulence, Su),
53 XiGModel_(XiGModel::
New(XiGModelCoeffs_, thermo, turbulence, Su))
67 const objectRegistry& db =
Su_.
db();
72 tmp<volScalarField> tGtot = XiGModel_->G();
82 Gtot[celli] += k1*
mag(U[celli])/Lobs[celli];
92 const objectRegistry& db =
Su_.
db();
98 return XiGModel_->Db()
99 + rho*
Su_*(Xi - 1.0)*mgb*(0.5*Lobs)*Lobs/(mgb*Lobs + 1.0);
107 XiGModelCoeffs_.lookup(
"k1") >> k1;
#define forAll(list, i)
Loop across all elements in list.
virtual tmp< volScalarField > G() const
Return the flame-wrinking generation rate.
virtual bool read(const dictionary &XiGProperties)
Update properties from given dictionary.
rhoReactionThermo & thermo
GeometricField< vector, fvPatchField, volMesh > volVectorField
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual tmp< volScalarField > Db() const
Return the flame diffusivity.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Mesh & mesh() const
Return mesh.
Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
defineTypeNameAndDebug(combustionModel, 0)
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
Internal & ref()
Return a reference to the dimensioned internal field.
virtual bool read(const dictionary &XiGProperties)=0
Update properties from given dictionary.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
virtual ~basicSubGrid()
Destructor.
dimensioned< scalar > mag(const dimensioned< Type > &)
const volScalarField & Su_
Laminar burning velocity.
const doubleScalar e
Elementary charge.
A class for managing temporary objects.
const objectRegistry & db() const
Return the local objectRegistry.