30 template<
class CloudType>
33 forAll(this->phaseProps(), phaseI)
35 switch (this->phaseProps()[phaseI].phase())
37 case phaseProperties::GAS:
42 case phaseProperties::LIQUID:
47 case phaseProperties::SOLID:
63 <<
"No gas phase found in phase list:" <<
nl
69 <<
"No liquid phase found in phase list:" <<
nl
75 <<
"No solid phase found in phase list:" <<
nl
83 template<
class CloudType>
103 <<
"Incorrect number of phases: " <<
nl
104 <<
" Please specify 1 gas, 1 liquid and 1 solid"
112 if (
mag(
sum(YMixture0_) - 1.0) > small)
115 <<
"Sum of phases should be 1. Phase fractions:" <<
nl
121 template<
class CloudType>
129 idLiquid_(cm.idLiquid_),
130 idSolid_(cm.idSolid_),
131 YMixture0_(cm.YMixture0_)
137 template<
class CloudType>
144 template<
class CloudType>
152 template<
class CloudType>
159 template<
class CloudType>
166 template<
class CloudType>
#define forAll(list, i)
Loop across all elements in list.
Templated reacting parcel composition model class Consists of carrier species (via thermo package),...
const phasePropertiesList & phaseProps() const
Return the list of phase properties.
Templated base class for dsmc cloud.
Templated parcel multi-phase, multi-component class.
virtual const scalarField & YMixture0() const
Return the list of mixture mass fractions.
virtual ~SingleMixtureFraction()
Destructor.
SingleMixtureFraction(const dictionary &dict, CloudType &owner)
Construct from dictionary.
virtual label idGas() const
Gas id.
virtual label idLiquid() const
Liquid id.
virtual label idSolid() const
Solid id.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
const dictionary & coeffDict() const
Return const access to the coefficients dictionary.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
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 > sum(const DimensionedField< Type, GeoMesh > &df)
errorManip< error > abort(error &err)
dimensioned< scalar > mag(const dimensioned< Type > &)