31 template<
class ThermoType>
41 template<
class ThermoType>
57 stoicRatio_(thermoDict.
lookup(
"stoichiometricAirFuelMassRatio")),
59 fuel_(thermoDict.
subDict(
"fuel")),
60 oxidant_(thermoDict.
subDict(
"oxidant")),
61 products_(thermoDict.
subDict(
"burntProducts")),
63 mixture_(
"mixture", fuel_),
72 template<
class ThermoType>
85 scalar fu = b*ft + (1.0 -
b)*fres(ft, stoicRatio().value());
86 scalar ox = 1 - ft - (ft - fu)*stoicRatio().value();
87 scalar pr = 1 - fu - ox;
90 mixture_ += ox*oxidant_;
91 mixture_ += pr*products_;
98 template<
class ThermoType>
101 stoicRatio_ = thermoDict.
lookup(
"stoichiometricAirFuelMassRatio");
103 fuel_ = ThermoType(thermoDict.
subDict(
"fuel"));
104 oxidant_ = ThermoType(thermoDict.
subDict(
"oxidant"));
105 products_ = ThermoType(thermoDict.
subDict(
"burntProducts"));
109 template<
class ThermoType>
119 else if (speciei == 1)
123 else if (speciei == 2)
130 <<
"Unknown specie index " << speciei <<
". Valid indices are 0..2" intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const ThermoType & specieThermo(const label speciei) const
Return thermo based on index.
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.
Foam::inhomogeneousMixture.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
hashedWordList speciesTable
A table of species as a hashedWordList.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
inhomogeneousMixture(const dictionary &, const fvMesh &, const word &)
Construct from dictionary, mesh and phase name.
A class for handling words, derived from string.
Specialisation of the basicMixture for combustion.
void read(const dictionary &)
Read dictionary.
errorManip< error > abort(error &err)
const thermoType & mixture(const scalar, const scalar) const
PtrList< volScalarField > & Y
Mesh data needed to do the Finite Volume discretisation.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.