31 template<
class ThermoType>
37 template<
class ThermoType>
53 stoicRatio_(thermoDict.
lookup(
"stoichiometricAirFuelMassRatio")),
55 fuel_(thermoDict.
subDict(
"fuel")),
56 oxidant_(thermoDict.
subDict(
"oxidant")),
57 products_(thermoDict.
subDict(
"burntProducts")),
59 mixture_(
"mixture", fuel_),
69 template<
class ThermoType>
84 scalar fu = b*ft + (1.0 -
b)*fres(ft, stoicRatio().value());
85 scalar ox = 1 - ft - (ft - fu)*stoicRatio().value();
90 scalar pr = 1 - fu - ox;
93 mixture_ += ox*oxidant_;
94 mixture_ += pr*products_;
101 template<
class ThermoType>
104 stoicRatio_ = thermoDict.
lookup(
"stoichiometricAirFuelMassRatio");
106 fuel_ = ThermoType(thermoDict.
subDict(
"fuel"));
107 oxidant_ = ThermoType(thermoDict.
subDict(
"oxidant"));
108 products_ = ThermoType(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"
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.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m K].
hashedWordList speciesTable
A table of species as a hashedWordList.
void read(const dictionary &)
Read dictionary.
const thermoType & mixture(const scalar, const scalar, const scalar) const
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
A class for handling words, derived from string.
Specialisation of the basicMixture for combustion.
const ThermoType & specieThermo(const label speciei) const
Return thermo based on index.
errorManip< error > abort(error &err)
egrMixture(const dictionary &, const fvMesh &, const word &)
Construct from dictionary, mesh and phaseName.
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.