30 template<
class CloudType>
46 template<
class CloudType>
51 forAll(enthalpyTransferTypeNames, i)
53 if (etName == enthalpyTransferTypeNames[i])
61 "PhaseChangeModel<CloudType>::enthalpyTransferType" 62 "PhaseChangeModel<CloudType>::wordToEnthalpyTransfer(const word&) const" 63 ) <<
"Unknown enthalpyType " << etName <<
". Valid selections are:" <<
nl 72 template<
class CloudType>
79 enthalpyTransfer_(etLatentHeat),
84 template<
class CloudType>
96 template<
class CloudType>
107 wordToEnthalpyTransfer(this->coeffDict().
lookup(
"enthalpyTransfer"))
115 template<
class CloudType>
122 template<
class CloudType>
126 return enthalpyTransfer_;
130 template<
class CloudType>
143 template<
class CloudType>
154 template<
class CloudType>
161 template<
class CloudType>
168 template<
class CloudType>
171 const scalar mass0 = this->
template getBaseProperty<scalar>(
"mass");
174 Info<<
" Mass transfer phase change = " << massTotal <<
nl;
176 if (this->outputTime())
178 this->setBaseProperty(
"mass", massTotal);
PhaseChangeModel(CloudType &owner)
Construct null from owner.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
scalar dMass_
Mass of lagrangian phase converted.
virtual scalar dh(const label idc, const label idl, const scalar p, const scalar T) const
Return the enthalpy per unit mass.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Templated phase change model class.
enthalpyTransferType
Enthalpy transfer type.
virtual scalar TMax(const scalar p, const scalarField &X) const
Return maximum/limiting temperature.
virtual ~PhaseChangeModel()
Destructor.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual void info(Ostream &os)
Write injection info to stream.
enthalpyTransferType wordToEnthalpyTransfer(const word &etName) const
Convert word to enthalpy transfer type.
static const Foam::wordList enthalpyTransferTypeNames
Name representations of enthalpy transfer types.
void addToPhaseChangeMass(const scalar dMass)
Add to phase change mass.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
Base class for cloud sub-models.
virtual scalar Tvap(const scalarField &X) const
Return vapourisation temperature.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Templated base class for dsmc cloud.
enthalpyTransferType enthalpyTransfer_
Enthalpy transfer type enumeration.
const enthalpyTransferType & enthalpyTransfer() const
Return the enthalpy transfer type enumeration.