30 template<
class ThermoType>
36 stoicRatio_(
dict.
lookup<scalar>(
"stoichiometricAirFuelMassRatio")),
37 fuel_(
"fuel",
dict.subDict(
"fuel")),
38 oxidant_(
"oxidant",
dict.subDict(
"oxidant")),
39 products_(
"burntProducts",
dict.subDict(
"burntProducts")),
40 mixture_(
"mixture", fuel_)
46 template<
class ThermoType>
49 const scalarFieldListSlice&
Y
52 return max(
Y[FT] - (scalar(1) -
Y[FT])/stoicRatio_, scalar(0));
56 template<
class ThermoType>
59 const scalarFieldListSlice&
Y
62 return stoicRatio_*
Y[FT]/
max(scalar(1) -
Y[FT], small);
66 template<
class ThermoType>
79 const scalar ox = 1 - ft - (ft - fu)*stoicRatio_;
80 const scalar pr = 1 - fu - ox;
83 mixture_ += ox*oxidant_;
84 mixture_ += pr*products_;
91 template<
class ThermoType>
95 const scalarFieldListSlice&
Y
102 template<
class ThermoType>
106 const scalarFieldListSlice&
Y
113 template<
class ThermoType>
117 const scalarFieldListSlice&,
125 template<
class ThermoType>
129 const scalarFieldListSlice&
Y
136 template<
class ThermoType>
140 const scalarFieldListSlice&
Y
147 template<
class ThermoType>
153 stoicRatio_ =
dict.
lookup<scalar>(
"stoichiometricAirFuelMassRatio");
155 oxidant_ = ThermoType(
"oxidant",
dict.
subDict(
"oxidant"));
156 products_ = ThermoType(
"burntProducts",
dict.
subDict(
"burntProducts"));
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
const thermoMixtureType & thermoMixture(const scalarFieldListSlice &Y) const
Return the mixture for thermodynamic properties.
ThermoType thermoType
The type of thermodynamics this mixture is instantiated for.
const thermoType & products(const scalarFieldListSlice &) const
Return the product mixture.
const transportMixtureType & transportMixture(const scalarFieldListSlice &Y) const
Return the mixture for transport properties.
ThermoType transportMixtureType
Mixing type for transport properties.
scalar fres(const scalarFieldListSlice &Y) const
Return the residual fraction of fuel in the burnt mixture.
inhomogeneousMixture(const dictionary &)
Construct from a dictionary.
ThermoType thermoMixtureType
Mixing type for thermodynamic properties.
scalar Phi(const scalarFieldListSlice &Y) const
Return the fuel-oxidant equivalence ratio.
const thermoType & reactants(const scalarFieldListSlice &) const
Return the reactant mixture.
void read(const dictionary &)
Read dictionary.
const thermoType & mixture(const scalar ft, const scalar fu) const
Return the mixture for the given composition.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
PtrList< volScalarField > & Y