31 template<
class ThermoType>
42 template<
class ThermoType>
58 stoicRatio_(thermoDict.
lookup(
"stoichiometricAirFuelMassRatio")),
60 fuel_(thermoDict.
subDict(
"fuel")),
61 oxidant_(thermoDict.
subDict(
"oxidant")),
62 products_(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(thermoDict.
subDict(
"fuel"));
106 oxidant_ = ThermoType(thermoDict.
subDict(
"oxidant"));
107 products_ = ThermoType(thermoDict.
subDict(
"burntProducts"));
111 template<
class ThermoType>
121 else if (speciei == 1)
125 else if (speciei == 2)
132 <<
"Unknown specie index " << speciei <<
". Valid indices are 0..2" const thermoType & mixture(const scalar, const scalar) const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
hashedWordList speciesTable
A table of species as a hashedWordList.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
void read(const dictionary &)
Read dictionary.
A class for handling words, derived from string.
Specialisation of the basicMixture for combustion.
errorManip< error > abort(error &err)
const ThermoType & specieThermo(const label speciei) const
Return thermo based on index.
PtrList< volScalarField > & Y
Mesh data needed to do the Finite Volume discretisation.
Foam::veryInhomogeneousMixture.
veryInhomogeneousMixture(const dictionary &, const fvMesh &, const word &)
Construct from dictionary, mesh and phase name.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.