31 namespace combustionModels
36 template<
class ReactionThermo,
class ThermoType>
39 const word& modelType,
40 const ReactionThermo& thermo,
42 const word& combustionProperties
52 C_(this->coeffs().template lookup<scalar>(
"C")),
53 oxidantName_(this->coeffs().
template lookupOrDefault<word>(
"oxidant",
"O2"))
59 template<
class ReactionThermo,
class ThermoType>
66 template<
class ReactionThermo,
class ThermoType>
74 const label fuelI = this->fuelIndex();
81 this->
thermo().composition().Y(oxidantName_);
91 template<
class ReactionThermo,
class ThermoType>
96 this->coeffs().lookup(
"C") >> C_ ;
97 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.
basicSpecieMixture & composition
virtual void correct()
Correct combustion rate.
virtual bool read()
Update properties.
rhoReactionThermo & thermo
Calculate the gradient of the given field.
A class for handling words, derived from string.
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(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))
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.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
diffusion(const word &modelType, const ReactionThermo &thermo, const compressibleMomentumTransportModel &turb, const word &combustionProperties)
Construct from components.
virtual ~diffusion()
Destructor.
dimensioned< scalar > mag(const dimensioned< Type > &)
Base class for combustion models using multiComponentMixture.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Abstract base class for turbulence models (RAS, LES and laminar).