41 const dictionary& XiEqProperties,
42 const psiuReactionThermo&
thermo,
49 XiEqProperties.subDict
51 word(XiEqProperties.
lookup(
"XiEqModel")) +
"Coeffs" 55 turbulence_(turbulence),
91 const fvMesh& mesh =
Su_.
mesh();
99 tmp<volScalarField> tN
109 N.primitiveFieldRef() = Nv.primitiveField()*
pow(mesh.V(), 2.0/3.0);
116 mesh.time().timeName(),
129 ns.primitiveFieldRef() = nsv.primitiveField()*
pow(mesh.V(), 2.0/3.0);
145 N.primitiveFieldRef() = upLocal*(
max(scalar(1),
pow(nr, 0.5)) - 1.0);
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
dictionary XiEqModelCoeffs_
Dictionary.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
fluidReactionThermo & thermo
tmp< volScalarField > calculateSchelkinEffect(const scalar) const
Return the sub-grid Schelkin effect.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
dimensionedScalar sqrt(const dimensionedScalar &ds)
virtual bool read(const dictionary &XiEqProperties)=0
Update properties from given dictionary.
GeometricField< vector, fvPatchField, volMesh > volVectorField
virtual ~XiEqModel()
Destructor.
XiEqModel(const dictionary &XiEqProperties, const psiuReactionThermo &thermo, const compressible::RASModel &turbulence, const volScalarField &Su)
Construct from components.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
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(dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar(dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\"<< endl;autoPtr< compressible::momentumTransportModel > turbulence(compressible::momentumTransportModel::New(rho, U, phi, thermo))
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const Mesh & mesh() const
Return mesh.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< symmTensor > dimensionedSymmTensor
Dimensioned tensor obtained from generic dimensioned type.
Internal & ref()
Return a reference to the dimensioned internal field.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
dimensioned< scalar > mag(const dimensioned< Type > &)
const volScalarField & Su_
Laminar burning velocity.
const doubleScalar e
Elementary charge.
const tmp< volScalarField::Internal > & Su
virtual bool write(const bool write=true) const
Write using setting from DB.
A class for managing temporary objects.
void writeFields() const
Write fields.
RASModel< momentumTransportModel > RASModel
Typedefs for turbulence, RAS and LES models for compressible flow based on the standard laminar trans...