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])
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>
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);
A class for handling words, derived from Foam::string.
enthalpyTransferType enthalpyTransfer_
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
Base class for cloud sub-models.
PhaseChangeModel(CloudType &owner)
virtual void info(Ostream &os)
virtual scalar dh(const label idc, const label idl, const scalar p, const scalar T) const
Generic templated field type.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
errorManipArg< error, int > exit(error &err, const int errNo=1)
enthalpyTransferType wordToEnthalpyTransfer(const word &etName) const
#define FatalErrorInFunction
virtual scalar TMax(const scalar p, const scalarField &X) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual scalar Tvap(const scalarField &X) const
const enthalpyTransferType & enthalpyTransfer() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void addToPhaseChangeMass(const scalar dMass)