32 template<
class CloudType>
34 enthalpyTransferTypeNames
36 "latentHeat",
"enthalpyDifference" 42 template<
class CloudType>
47 forAll(enthalpyTransferTypeNames, i)
49 if (etName == enthalpyTransferTypeNames[i])
51 return enthalpyTransferType(i);
56 <<
"Unknown enthalpyType " << etName <<
". Valid selections are:" <<
nl 59 return enthalpyTransferType(0);
65 template<
class CloudType>
72 enthalpyTransfer_(etLatentHeat),
77 template<
class CloudType>
84 enthalpyTransfer_(pcm.enthalpyTransfer_),
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>
159 const scalar mass0 = this->
template getBaseProperty<scalar>(
"mass");
162 Log_<<
" Mass transfer phase change = " << massTotal <<
nl;
164 if (this->writeTime())
166 this->setBaseProperty(
"mass", massTotal);
virtual void info()
Write injection info.
virtual scalar TMax(const scalar p, const scalarField &X) const
Return maximum/limiting temperature.
Templated phase change model class.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Base class for cloud sub-models.
void addToPhaseChangeMass(const scalar dMass)
Add to phase change mass.
const enthalpyTransferType & enthalpyTransfer() const
Return the enthalpy transfer type enumeration.
PhaseChangeModel(CloudType &owner)
Construct null from owner.
#define forAll(list, i)
Loop across all elements in list.
#define Log_
Report write to Foam::Info if the class log switch is true.
A class for handling words, derived from Foam::string.
virtual scalar dh(const label idc, const label idl, const scalar p, const scalar T) const
Return the enthalpy per unit mass.
return returnReduce(nRefine-oldNRefine, sumOp< label >())
virtual scalar Tvap(const scalarField &X) const
Return vapourisation temperature.
Templated base class for dsmc cloud.
enthalpyTransferType
Enthalpy transfer type.
enthalpyTransferType wordToEnthalpyTransfer(const word &etName) const
Convert word to enthalpy transfer type.