32template<
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:
57 <<
"Unknown phase enumeration" <<
nl <<
abort(FatalError);
65 <<
"No gas phase found in phase list:" <<
nl
66 << this->phaseTypes() <<
exit(FatalError);
71 <<
"No liquid phase found in phase list:" <<
nl
72 << this->phaseTypes() <<
exit(FatalError);
77 <<
"No solid phase found in phase list:" <<
nl
78 << this->phaseTypes() <<
exit(FatalError);
85template<
class CloudType>
105 <<
"Incorrect number of phases:" <<
nl
106 <<
" Please specify 1 gas, 1 liquid and 1 solid"
114 if (
mag(
sum(YMixture0_) - 1.0) > SMALL)
117 <<
"Sum of phases should be 1. Phase fractions:" <<
nl
123template<
class CloudType>
131 idLiquid_(cm.idLiquid_),
132 idSolid_(cm.idSolid_),
133 YMixture0_(cm.YMixture0_)
139template<
class CloudType>
146template<
class CloudType>
154template<
class CloudType>
161template<
class CloudType>
168template<
class CloudType>
Templated reacting parcel composition model class Consists of carrier species (via thermo package),...
const phasePropertiesList & phaseProps() const
Return the list of phase properties.
Templated base class for dsmc cloud.
Templated parcel multi-phase, multi-component class.
virtual const scalarField & YMixture0() const
Return the list of mixture mass fractions.
virtual ~SingleMixtureFraction()
Destructor.
virtual label idGas() const
Gas id.
virtual label idLiquid() const
Liquid id.
virtual label idSolid() const
Solid id.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
const dictionary & coeffDict() const
Return const access to the coefficients dictionary.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
errorManip< error > abort(error &err)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.