31 template<
class ThermoType>
42 template<
class ThermoType>
58 stoicRatio_(thermoDict.lookup(
"stoichiometricAirFuelMassRatio")),
60 fuel_(
"fuel", thermoDict.subDict(
"fuel")),
61 oxidant_(
"oxidant", thermoDict.subDict(
"oxidant")),
62 products_(
"burntProducts", thermoDict.subDict(
"burntProducts")),
64 mixture_(
"mixture", fuel_),
74 template<
class ThermoType>
87 scalar ox = 1 - ft - (ft - fu)*stoicRatio().value();
88 scalar pr = 1 - fu - ox;
91 mixture_ += ox*oxidant_;
92 mixture_ += pr*products_;
99 template<
class ThermoType>
105 fuel_ = ThermoType(
"fuel", thermoDict.
subDict(
"fuel"));
106 oxidant_ = ThermoType(
"oxidant", thermoDict.
subDict(
"oxidant"));
108 ThermoType(
"burntProducts", thermoDict.
subDict(
"burntProducts"));
112 template<
class ThermoType>
122 else if (speciei == 1)
126 else if (speciei == 2)
133 <<
"Unknown specie index " << speciei <<
". Valid indices are 0..2"
Specialisation of the basicMixture for combustion.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Mesh data needed to do the Finite Volume discretisation.
A wordList with hashed indices for faster lookup by name.
Foam::veryInhomogeneousMixture.
const ThermoType & specieThermo(const label speciei) const
Return thermo based on index.
veryInhomogeneousMixture(const dictionary &, const fvMesh &, const word &)
Construct from dictionary, mesh and phase name.
const thermoType & mixture(const scalar, const scalar) const
void read(const dictionary &)
Read dictionary.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManip< error > abort(error &err)
PtrList< volScalarField > & Y