32template<
class CloudType>
34enthalpyTransferTypeNames
36 "latentHeat",
"enthalpyDifference"
42template<
class CloudType>
47 forAll(enthalpyTransferTypeNames, i)
49 if (etName == enthalpyTransferTypeNames[i])
56 <<
"Unknown enthalpyType " << etName <<
". Valid selections are:" <<
nl
65template<
class CloudType>
72 enthalpyTransfer_(etLatentHeat),
77template<
class CloudType>
84 enthalpyTransfer_(pcm.enthalpyTransfer_),
89template<
class CloudType>
100 wordToEnthalpyTransfer(this->coeffDict().getWord(
"enthalpyTransfer"))
108template<
class CloudType>
112 return enthalpyTransfer_;
116template<
class CloudType>
129template<
class CloudType>
140template<
class CloudType>
147template<
class CloudType>
154template<
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);
Base class for cloud sub-models.
Templated base class for dsmc cloud.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Templated phase change model class.
virtual scalar dh(const label idc, const label idl, const scalar p, const scalar T) const
Return the enthalpy per unit mass.
const enthalpyTransferType & enthalpyTransfer() const
Return the enthalpy transfer type enumeration.
void addToPhaseChangeMass(const scalar dMass)
Add to phase change mass.
enthalpyTransferType
Enthalpy transfer type.
virtual scalar Tvap(const scalarField &X) const
Return vapourisation temperature.
enthalpyTransferType wordToEnthalpyTransfer(const word &etName) const
Convert word to enthalpy transfer type.
scalar TMax() const
Return const access to maximum temperature [K].
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
InfoProxy< ensightCells > info() const
Return info proxy.
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
messageStream Info
Information stream (stdout output on master, null elsewhere)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
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.