Go to the documentation of this file.
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>
137 template<
class CloudType>
144 template<
class CloudType>
152 template<
class CloudType>
159 template<
class CloudType>
166 template<
class CloudType>
virtual label idGas() const
Gas id.
#define forAll(list, i)
Loop across all elements in list.
Single incompressible phase derived from the phase-fraction. Used as part of the multiPhaseMixture fo...
dimensioned< scalar > mag(const dimensioned< Type > &)
Templated parcel multi-phase, multi-component class.
virtual label idSolid() const
Solid id.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
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 any number of values (e....
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< Type > sum(const DimensionedField< Type, GeoMesh > &df)
scalarField YMixture0_
Phase component total fractions.
void constructIds()
Construct the indices and check correct specification of.