Go to the documentation of this file.
32 template<
class CloudType>
35 forAll(this->phaseProps(), phaseI)
37 switch (this->phaseProps()[phaseI].phase())
39 case phaseProperties::GAS:
44 case phaseProperties::LIQUID:
49 case phaseProperties::SOLID:
65 <<
"No gas phase found in phase list:" <<
nl
71 <<
"No liquid phase found in phase list:" <<
nl
77 <<
"No solid phase found in phase list:" <<
nl
85 template<
class CloudType>
105 <<
"Incorrect number of phases:" <<
nl
106 <<
" Please specify 1 gas, 1 liquid and 1 solid"
110 this->coeffDict().readEntry(
"YGasTot0", YMixture0_[idGas_]);
111 this->coeffDict().readEntry(
"YLiquidTot0", YMixture0_[idLiquid_]);
112 this->coeffDict().readEntry(
"YSolidTot0", YMixture0_[idSolid_]);
114 if (
mag(
sum(YMixture0_) - 1.0) > SMALL)
117 <<
"Sum of phases should be 1. Phase fractions:" <<
nl
123 template<
class CloudType>
126 const SingleMixtureFraction<CloudType>& cm
131 idLiquid_(cm.idLiquid_),
132 idSolid_(cm.idSolid_),
133 YMixture0_(cm.YMixture0_)
139 template<
class CloudType>
146 template<
class CloudType>
154 template<
class CloudType>
161 template<
class CloudType>
168 template<
class CloudType>
virtual label idGas() const
Templated parcel multi-phase, multi-component class.
virtual label idSolid() const
const phasePropertiesList & phaseProps() const
Generic templated field type.
virtual label idLiquid() const
DSMCCloud< dsmcParcel > CloudType
Templated base class for dsmc cloud.
virtual const scalarField & YMixture0() const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
errorManip< error > abort(error &err)
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual ~SingleMixtureFraction()
SingleMixtureFraction(const dictionary &dict, CloudType &owner)
#define FatalErrorInFunction
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)