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
67 << this->phaseTypes() <<
nl <<
endl;
71 FatalErrorIn(
"Foam::SingleMixtureFraction<CloudType>::constructIds()")
72 <<
"No liquid phase found in phase list:" <<
nl
73 << this->phaseTypes() <<
nl <<
endl;
77 FatalErrorIn(
"Foam::SingleMixtureFraction<CloudType>::constructIds()")
78 <<
"No solid phase found in phase list:" <<
nl
79 << this->phaseTypes() <<
nl <<
endl;
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" <<
nl
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
140 template<
class CloudType>
147 template<
class CloudType>
151 return this->phaseProps()[idGas_].Y();
155 template<
class CloudType>
159 return this->phaseProps()[idLiquid_].Y();
163 template<
class CloudType>
167 return this->phaseProps()[idSolid_].Y();
171 template<
class CloudType>
179 template<
class CloudType>
186 template<
class CloudType>
193 template<
class CloudType>