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>
100 if (this->phaseProps().size() != 3)
103 <<
"Incorrect numebr of phases: " <<
nl 104 <<
" Please specify 1 gas, 1 liquid and 1 solid" 108 this->coeffDict().lookup(
"YGasTot0") >> YMixture0_[idGas_];
109 this->coeffDict().lookup(
"YLiquidTot0") >> YMixture0_[idLiquid_];
110 this->coeffDict().lookup(
"YSolidTot0") >> YMixture0_[idSolid_];
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>
virtual label idLiquid() const
Liquid id.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual label idSolid() const
Solid id.
SingleMixtureFraction(const dictionary &dict, CloudType &owner)
Construct from dictionary.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
Templated parcel multi-phase, multi-component class.
errorManip< error > abort(error &err)
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual const scalarField & YMixture0() const
Return the list of mixture mass fractions.
virtual label idGas() const
Gas id.
Templated reacting parcel composition model class Consists of carrier species (via thermo package)...
Templated base class for dsmc cloud.
virtual ~SingleMixtureFraction()
Destructor.