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>
102 if (this->phaseProps().size() != 3)
105 <<
"Incorrect numebr 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>
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
Gas id.
Templated parcel multi-phase, multi-component class.
virtual label idSolid() const
Solid id.
#define forAll(list, i)
Loop across all elements in list.
Templated reacting parcel composition model class Consists of carrier species (via thermo package),...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual label idLiquid() const
Liquid id.
Templated base class for dsmc cloud.
virtual const scalarField & YMixture0() const
Return the list of mixture mass fractions.
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()
Destructor.
SingleMixtureFraction(const dictionary &dict, CloudType &owner)
Construct from dictionary.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)