Go to the documentation of this file.
32 template<
class CloudType>
34 enthalpyTransferTypeNames
36 "latentHeat",
"enthalpyDifference"
42 template<
class CloudType>
47 forAll(enthalpyTransferTypeNames, i)
49 if (etName == enthalpyTransferTypeNames[i])
56 <<
"Unknown enthalpyType " << etName <<
". Valid selections are:" <<
nl
65 template<
class CloudType>
72 enthalpyTransfer_(etLatentHeat),
77 template<
class CloudType>
89 template<
class CloudType>
100 wordToEnthalpyTransfer(this->coeffDict().getWord(
"enthalpyTransfer"))
108 template<
class CloudType>
112 return enthalpyTransfer_;
116 template<
class CloudType>
129 template<
class CloudType>
140 template<
class CloudType>
147 template<
class CloudType>
154 template<
class CloudType>
157 const scalar mass0 = this->
template getBaseProperty<scalar>(
"mass");
160 Info<<
" Mass transfer phase change = " << massTotal <<
nl;
162 if (this->writeTime())
164 this->setBaseProperty(
"mass", massTotal);
Templated phase change model class.
A class for handling words, derived from Foam::string.
enthalpyTransferType enthalpyTransfer_
Enthalpy transfer type enumeration.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
scalar dMass_
Mass of lagrangian phase converted.
Base class for cloud sub-models.
PhaseChangeModel(CloudType &owner)
Construct null from owner.
virtual void info(Ostream &os)
Write injection info to stream.
#define forAll(list, i)
Loop across all elements in list.
virtual scalar dh(const label idc, const label idl, const scalar p, const scalar T) const
Return the enthalpy per unit mass.
enthalpyTransferType
Enthalpy transfer type.
messageStream Info
Information stream (uses stdout - output is on the master only)
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
errorManipArg< error, int > exit(error &err, const int errNo=1)
enthalpyTransferType wordToEnthalpyTransfer(const word &etName) const
Convert word to enthalpy transfer type.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual scalar TMax(const scalar p, const scalarField &X) const
Return maximum/limiting temperature.
virtual scalar Tvap(const scalarField &X) const
Return vapourisation temperature.
const enthalpyTransferType & enthalpyTransfer() const
Return the enthalpy transfer type enumeration.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void addToPhaseChangeMass(const scalar dMass)
Add to phase change mass.