34 namespace combustionModels
39 template<
class ReactionThermo,
class ThermoType>
42 const word& modelType,
45 const word& combustionProperties
55 C_(this->coeffs().getScalar(
"C")),
56 oxidantName_(this->coeffs().template getOrDefault<word>(
"oxidant",
"O2"))
62 template<
class ReactionThermo,
class ThermoType>
69 template<
class ReactionThermo,
class ThermoType>
76 this->singleMixturePtr_->fresCorrect();
78 const label fuelI = this->singleMixturePtr_->fuelIndex();
81 this->
thermo().composition().Y()[fuelI];
86 this->
thermo().composition().Y(oxidantName_);
97 template<
class ReactionThermo,
class ThermoType>
102 this->coeffs().readEntry(
"C", C_);
103 this->coeffs().readIfPresent(
"oxidant", oxidantName_);
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
basicSpecieMixture & composition
virtual void correct()
Correct combustion rate.
virtual bool read()
Update properties.
compressible::turbulenceModel & turb
psiReactionThermo & thermo
const dimensionSet dimVolume(pow3(dimLength))
Calculate the gradient of the given field.
A class for handling words, derived from Foam::string.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
dimensionedScalar pos0(const dimensionedScalar &ds)
Abstract base class for turbulence models (RAS, LES and laminar).
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))
virtual bool read()
Update properties from given dictionary.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual ~diffusion()
Destructor.
Base class for combustion models using singleStepReactingMixture.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Simple diffusion-based combustion model based on the principle mixed is burnt. Additional parameter C...
static constexpr const zero Zero
Global zero (0)