30 template<
class ThermoType>
36 stoicRatio_(
"stoichiometricAirFuelMassRatio",
dimless,
dict),
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_.value(), scalar(0));
56 template<
class ThermoType>
69 const scalar ox = 1 - ft - (ft - fu)*stoicRatio_.value();
70 const scalar pr = 1 - fu - ox;
73 mixture_ += ox*oxidant_;
74 mixture_ += pr*products_;
81 template<
class ThermoType>
85 const scalarFieldListSlice&
Y
92 template<
class ThermoType>
96 const scalarFieldListSlice&
Y
103 template<
class ThermoType>
107 const scalarFieldListSlice&,
115 template<
class ThermoType>
119 const scalarFieldListSlice&
Y
126 template<
class ThermoType>
130 const scalarFieldListSlice&
Y
137 template<
class ThermoType>
147 oxidant_ = ThermoType(
"oxidant",
dict.
subDict(
"oxidant"));
148 products_ = ThermoType(
"burntProducts",
dict.
subDict(
"burntProducts"));
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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.
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 dimensionSet dimless
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< volScalarField > & Y