Go to the documentation of this file.
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;
89 mixture_ = fu/fuel_.W()*fuel_;
90 mixture_ += ox/oxidant_.W()*oxidant_;
91 mixture_ += pr/products_.W()*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"
A class for handling words, derived from string.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const Type & value() const
Return const reference to value.
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 dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
hashedWordList speciesTable
A table of species as a hashedWordList.
Specialization of the basicSpecieMixture for combustion.
const ThermoType & mixture(const scalar, const scalar) const
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh data needed to do the Finite Volume discretisation.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void read(const dictionary &)
Read dictionary.
inhomogeneousMixture(const inhomogeneousMixture< ThermoType > &)
Construct as copy (not implemented)
const dictionary & subDict(const word &) const
Find and return a sub-dictionary.
Foam::inhomogeneousMixture.
PtrList< volScalarField > & Y
const ThermoType & getLocalThermo(const label speciei) const
Return thermo based on index.