43 Foam::XiEqModels::basicSubGrid::basicSubGrid
45 const dictionary& XiEqProperties,
46 const psiuReactionThermo&
thermo,
51 XiEqModel(XiEqProperties, thermo, turbulence, Su),
58 Su.mesh().facesInstance(),
66 XiEqModel_(XiEqModel::
New(XiEqModelCoeffs_, thermo, turbulence, Su))
80 const fvMesh& mesh = Su_.mesh();
100 mesh.time().constant(),
108 N.primitiveFieldRef() = Nv.primitiveField()*Cw;
115 U.mesh().time().timeName(),
128 ns.primitiveFieldRef() = nsv.primitiveField()*Cw;
141 return (XiSubEq*XiEqModel_->XiEq());
149 return XiEqModel_->read(XiEqModelCoeffs_);
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual bool read(const dictionary &XiEqProperties)=0
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
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual tmp< volScalarField > XiEq() const
Return the flame-wrinking XiEq.
virtual ~basicSubGrid()
Destructor.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
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)
virtual bool read(const dictionary &XiEqProperties)
Update properties from given dictionary.
dimensioned< symmTensor > dimensionedSymmTensor
Dimensioned tensor obtained from generic dimensioned type.
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensioned< scalar > mag(const dimensioned< Type > &)
const doubleScalar e
Elementary charge.
A class for managing temporary objects.
Switch turbulence_
Turbulence on/off flag.