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>
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.
static const Foam::wordList enthalpyTransferTypeNames
Name representations of enthalpy transfer types.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Templated phase change model class.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual scalar TMax(const scalar p, const scalarField &X) const
Return maximum/limiting temperature.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const enthalpyTransferType & enthalpyTransfer() const
Return the enthalpy transfer type enumeration.
Base class for cloud sub-models.
void addToPhaseChangeMass(const scalar dMass)
Add to phase change mass.
virtual ~PhaseChangeModel()
Destructor.
PhaseChangeModel(CloudType &owner)
Construct null from owner.
virtual scalar dh(const label idc, const label idl, const scalar p, const scalar T) const
Return the enthalpy per unit mass.
stressControl lookup("compactNormalStress") >> compactNormalStress
scalar dMass_
Mass of lagrangian phase converted.
A class for handling words, derived from string.
virtual void info(Ostream &os)
Write injection info to stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual scalar Tvap(const scalarField &X) const
Return vapourisation temperature.
enthalpyTransferType enthalpyTransfer_
Enthalpy transfer type enumeration.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
Templated base class for dsmc cloud.
enthalpyTransferType
Enthalpy transfer type.
enthalpyTransferType wordToEnthalpyTransfer(const word &etName) const
Convert word to enthalpy transfer type.