31 namespace combustionModels
36 template<
class CombThermoType,
class ThermoType>
39 const word& modelType,
41 const word& combustionProperties,
53 oxidantName_(this->coeffs().template lookupOrDefault<word>(
"oxidant",
"O2"))
59 template<
class CombThermoType,
class ThermoType>
66 template<
class CombThermoType,
class ThermoType>
74 this->singleMixturePtr_->fresCorrect();
76 const label fuelI = this->singleMixturePtr_->fuelIndex();
79 this->thermoPtr_->composition().Y()[fuelI];
81 if (this->thermoPtr_->composition().contains(oxidantName_))
84 this->thermoPtr_->composition().Y(oxidantName_);
95 template<
class CombThermoType,
class ThermoType>
100 this->coeffs().lookup(
"C") >> C_ ;
101 this->coeffs().readIfPresent(
"oxidant", oxidantName_);
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void correct()
Correct combustion rate.
virtual bool read()
Update properties.
stressControl lookup("compactNormalStress") >> compactNormalStress
Calculate the gradient of the given field.
A class for handling words, derived from string.
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
dimensionedScalar pos0(const dimensionedScalar &ds)
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))
dimensionedScalar pow3(const dimensionedScalar &ds)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
virtual ~diffusion()
Destructor.
dimensioned< scalar > mag(const dimensioned< Type > &)
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...