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" 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>
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1)
DSMCCloud< dsmcParcel > CloudType
const phasePropertiesList & phaseProps() const
Return the list of phase properties.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual const scalarField & YMixture0() const
Return the list of mixture mass fractions.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
virtual label idLiquid() const
Liquid id.
SingleMixtureFraction(const dictionary &dict, CloudType &owner)
Construct from dictionary.
#define forAll(list, i)
Loop across all elements in list.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect...
virtual label idGas() const
Gas id.
Templated parcel multi-phase, multi-component class.
const dictionary & coeffDict() const
Return const access to the coefficients dictionary.
errorManip< error > abort(error &err)
virtual label idSolid() const
Solid id.
Templated reacting parcel composition model class Consists of carrier species (via thermo package)...
Templated base class for dsmc cloud.
virtual ~SingleMixtureFraction()
Destructor.