33template<
class ThermoType>
34Foam::inhomogeneousMixture<ThermoType>::inhomogeneousMixture
53 products_(
thermoDict.subDict(
"burntProducts")),
55 mixture_(
"mixture", fuel_),
64template<
class ThermoType>
77 scalar fu =
b*ft + (1.0 -
b)*fres(ft, stoicRatio().value());
78 scalar ox = 1 - ft - (ft - fu)*stoicRatio().value();
79 scalar pr = 1 - fu - ox;
82 mixture_ += ox*oxidant_;
83 mixture_ += pr*products_;
90template<
class ThermoType>
93 thermoDict.readEntry(
"stoichiometricAirFuelMassRatio", stoicRatio_);
96 oxidant_ = ThermoType(
thermoDict.subDict(
"oxidant"));
97 products_ = ThermoType(
thermoDict.subDict(
"burntProducts"));
101template<
class ThermoType>
111 else if (speciei == 1)
115 else if (speciei == 2)
122 <<
"Unknown specie index " << speciei <<
". Valid indices are 0..2"
basicCombustionMixture(const dictionary &thermoDict, const wordList &specieNames, const fvMesh &mesh, const word &phaseName)
Construct from dictionary, specie names, mesh and phase name.
scalar fres(const scalar ft, const scalar stoicRatio) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
const ThermoType & mixture(const scalar, const scalar) const
const dimensionedScalar & stoicRatio() const
void read(const dictionary &)
Read dictionary.
const ThermoType & getLocalThermo(const label speciei) const
Return thermo based on index.
A class for handling words, derived from Foam::string.
PtrList< volScalarField > & Y
const dictionary & thermoDict
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionSet dimless
Dimensionless.
hashedWordList speciesTable
A table of species as a hashedWordList.
errorManip< error > abort(error &err)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...