30 template<
class CloudType>
46 template<
class CloudType>
51 forAll(enthalpyTransferTypeNames, i)
53 if (etName == enthalpyTransferTypeNames[i])
60 <<
"Unknown enthalpyType " << etName <<
". Valid selections are:" <<
nl
69 template<
class CloudType>
76 enthalpyTransfer_(etLatentHeat),
81 template<
class CloudType>
88 enthalpyTransfer_(pcm.enthalpyTransfer_),
93 template<
class CloudType>
104 wordToEnthalpyTransfer(this->coeffDict().lookup(
"enthalpyTransfer"))
112 template<
class CloudType>
119 template<
class CloudType>
123 return enthalpyTransfer_;
127 template<
class CloudType>
140 template<
class CloudType>
151 template<
class CloudType>
158 template<
class CloudType>
165 template<
class CloudType>
168 const scalar mass0 = this->
template getBaseProperty<scalar>(
"mass");
171 Info<<
" Mass transfer phase change = " << massTotal <<
nl;
173 if (this->writeTime())
175 this->setBaseProperty(
"mass", massTotal);
#define forAll(list, i)
Loop across all elements in list.
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 ~PhaseChangeModel()
Destructor.
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.
virtual void info(Ostream &os)
Write injection info to stream.
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.
PhaseChangeModel(CloudType &owner)
Construct null from owner.
virtual scalar TMax(const scalar p, const scalarField &X) const
Return maximum/limiting temperature.
static const Foam::wordList enthalpyTransferTypeNames
Name representations of enthalpy transfer types.
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.