Go to the documentation of this file.
41 Foam::XiEqModel::XiEqModel
43 const dictionary& XiEqProperties,
44 const psiuReactionThermo&
thermo,
51 XiEqProperties.subDict
53 XiEqProperties.get<word>(
"XiEqModel") +
"Coeffs"
72 XiEqModelCoeffs_ = XiEqProperties.optionalSubDict(
type() +
"Coeffs");
93 const fvMesh&
mesh = Su_.mesh();
101 tmp<volScalarField> tN
108 mesh.time().timeName(),
119 N.primitiveFieldRef() = Nv.primitiveField()*
pow(
mesh.V(), 2.0/3.0);
126 mesh.time().timeName(),
134 ns.primitiveFieldRef() = nsv.primitiveField()*
pow(
mesh.V(), 2.0/3.0);
150 N.primitiveFieldRef() = upLocal*(
max(scalar(1),
pow(nr, 0.5)) - 1.0);
tmp< volScalarField > calculateSchelkinEffect(const scalar) const
Return the sub-grid Schelkin effect.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Info<< "Reading field U\n"<< 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\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
dimensioned< symmTensor > dimensionedSymmTensor
Dimensioned tensor obtained from generic dimensioned type.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
virtual bool read(const dictionary &XiEqProperties)=0
Update properties from given dictionary.
GeometricField< symmTensor, fvPatchField, volMesh > volSymmTensorField
virtual ~XiEqModel()
Destructor.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
GeometricField< vector, fvPatchField, volMesh > volVectorField
RASModel< EddyDiffusivity< turbulenceModel > > RASModel
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
void writeFields() const
Write fields.
const dimensionedScalar e
Elementary charge.
const Vector< label > N(dict.get< Vector< label >>("N"))
defineTypeNameAndDebug(combustionModel, 0)