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:
56 "void Foam::SingleMixtureFraction<CloudType>::" 65 FatalErrorIn(
"Foam::SingleMixtureFraction<CloudType>::constructIds()")
66 <<
"No gas phase found in phase list:" <<
nl 71 FatalErrorIn(
"Foam::SingleMixtureFraction<CloudType>::constructIds()")
72 <<
"No liquid phase found in phase list:" <<
nl 77 FatalErrorIn(
"Foam::SingleMixtureFraction<CloudType>::constructIds()")
78 <<
"No solid phase found in phase list:" <<
nl 86 template<
class CloudType>
103 if (this->phaseProps().size() != 3)
107 "Foam::SingleMixtureFraction<CloudType>::" 108 "SingleMixtureFraction" 110 "const dictionary&, " 113 ) <<
"Incorrect numebr of phases: " <<
nl 114 <<
" Please specify 1 gas, 1 liquid and 1 solid" 118 this->coeffDict().lookup(
"YGasTot0") >> YMixture0_[idGas_];
119 this->coeffDict().lookup(
"YLiquidTot0") >> YMixture0_[idLiquid_];
120 this->coeffDict().lookup(
"YSolidTot0") >> YMixture0_[idSolid_];
122 if (
mag(
sum(YMixture0_) - 1.0) > SMALL)
126 "Foam::SingleMixtureFraction<CloudType>::" 127 "SingleMixtureFraction" 129 "const dictionary&, " 132 ) <<
"Sum of phases should be 1. Phase fractions:" <<
nl 138 template<
class CloudType>
146 idLiquid_(cm.idLiquid_),
147 idSolid_(cm.idSolid_),
148 YMixture0_(cm.YMixture0_)
154 template<
class CloudType>
161 template<
class CloudType>
169 template<
class CloudType>
176 template<
class CloudType>
183 template<
class CloudType>
virtual label idGas() const
Gas id.
virtual label idSolid() const
Solid id.
dimensioned< scalar > mag(const dimensioned< Type > &)
Templated parcel multi-phase, multi-component class.
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...
virtual label idLiquid() const
Liquid id.
virtual ~SingleMixtureFraction()
Destructor.
SingleMixtureFraction(const dictionary &dict, CloudType &owner)
Construct from dictionary.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
errorManip< error > abort(error &err)
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
virtual const scalarField & YMixture0() const
Return the list of mixture mass fractions.
Templated reacting parcel composition model class Consists of carrier species (via thermo package)...
Templated base class for dsmc cloud.