35 namespace ubMixtureMaps
63 if (uDict.
found(
"oxidantSpecies"))
66 ox_.setSize(oxidantSpecies.size());
71 const word specieName(iter().keyword());
72 const scalar massFraction(iter().stream()[0].scalarToken());
74 ox_[i++] = {uSpecies[specieName], massFraction};
78 if (uDict.
found(
"productSpecies"))
81 pr_.setSize(productSpecies.size());
86 const word specieName(iter().keyword());
87 const scalar massFraction(iter().stream()[0].scalarToken());
89 pr_[i++] = {uSpecies[specieName], massFraction};
126 if (!ox_.size() || !pr_.size())
129 <<
"oxidantSpecies or productSpecies not specified"
154 Yu[ox_[i].first()] =
b*Yu[ox_[i].first()] +
c*ox_[i].second()*oxb;
161 Yu[pr_[i].first()] =
b*Yu[pr_[i].first()] +
c*pr_[i].second()*prb;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Base-class for combustion fluid thermodynamic properties based on compressibility.
virtual const IOdictionary & properties() const =0
Properties dictionary.
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.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
A wordList with hashed indices for faster lookup by name.
virtual const speciesTable & species() const =0
Return the table of species.
Unburnt gas combustion multicomponent mixture for a single fuel specie.
scalar stoicRatio() const
Return the stoichiometric air/fuel ratio.
Base-class for combustion fluid thermodynamic properties based on compressibility.
Base class for unburnt/burnt gas composition mapping.
virtual void reset(const volScalarField &b, UPtrList< volScalarField > &Yu, const volScalarField &c, const UPtrList< const volScalarField > &Yb) const
Reset the mixture to an unburnt state.
uMulticomponentbInhomogeneous(const uRhoMulticomponentThermo &uThermo, const bRhoMulticomponentThermo &bThermo)
Construct from components.
virtual ~uMulticomponentbInhomogeneous()
Destructor.
virtual PtrList< volScalarField::Internal > prompt(const PtrList< volScalarField > &Yu) const
Return the burnt gas prompt specie mass fractions.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const dimensionedScalar c
Speed of light in a vacuum.
defineTypeNameAndDebug(uHomogeneousbHomogeneous, 0)
addToRunTimeSelectionTable(ubMixtureMap, uHomogeneousbHomogeneous, thermo)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
fluidMulticomponentThermo & thermo