Templated phase change model class. More...
Public Types | |
enum | enthalpyTransferType { etLatentHeat, etEnthalpyDifference } |
Enthalpy transfer type. More... | |
Public Member Functions | |
TypeName ("phaseChangeModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, PhaseChangeModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner)) | |
Declare runtime constructor selection table. More... | |
PhaseChangeModel (CloudType &owner) | |
Construct null from owner. More... | |
PhaseChangeModel (const dictionary &dict, CloudType &owner, const word &type) | |
Construct from dictionary. More... | |
PhaseChangeModel (const PhaseChangeModel< CloudType > &pcm) | |
Construct copy. More... | |
virtual autoPtr< PhaseChangeModel< CloudType > > | clone () const =0 |
Construct and return a clone. More... | |
virtual | ~PhaseChangeModel ()=default |
Destructor. More... | |
const enthalpyTransferType & | enthalpyTransfer () const |
Return the enthalpy transfer type enumeration. More... | |
virtual void | calculate (const scalar dt, const label celli, const scalar Re, const scalar Pr, const scalar d, const scalar nu, const scalar rho, const scalar T, const scalar Ts, const scalar pc, const scalar Tc, const scalarField &X, const scalarField &solMass, const scalarField &liqMass, scalarField &dMassPC) const =0 |
Update model. More... | |
virtual scalar | dh (const label idc, const label idl, const scalar p, const scalar T) const |
Return the enthalpy per unit mass. More... | |
virtual scalar | Tvap (const scalarField &X) const |
Return vapourisation temperature. More... | |
virtual scalar | TMax (const scalar p, const scalarField &X) const |
Return maximum/limiting temperature. More... | |
void | addToPhaseChangeMass (const scalar dMass) |
Add to phase change mass. More... | |
virtual void | info (Ostream &os) |
Write injection info to stream. More... | |
Static Public Member Functions | |
static autoPtr< PhaseChangeModel< CloudType > > | New (const dictionary &dict, CloudType &owner) |
Selector. More... | |
Static Public Attributes | |
static const wordList | enthalpyTransferTypeNames |
Name representations of enthalpy transfer types. More... | |
Protected Member Functions | |
enthalpyTransferType | wordToEnthalpyTransfer (const word &etName) const |
Convert word to enthalpy transfer type. More... | |
scalar | Sh () const |
Sherwood number. More... | |
Protected Attributes | |
enthalpyTransferType | enthalpyTransfer_ |
Enthalpy transfer type enumeration. More... | |
scalar | dMass_ |
Mass of lagrangian phase converted. More... | |
Templated phase change model class.
Definition at line 61 of file ReactingCloud.H.
enum enthalpyTransferType |
Enthalpy transfer type.
Enumerator | |
---|---|
etLatentHeat | |
etEnthalpyDifference |
Definition at line 68 of file PhaseChangeModel.H.
PhaseChangeModel | ( | CloudType & | owner | ) |
Construct null from owner.
Definition at line 67 of file PhaseChangeModel.C.
PhaseChangeModel | ( | const dictionary & | dict, |
CloudType & | owner, | ||
const word & | type | ||
) |
Construct from dictionary.
Definition at line 91 of file PhaseChangeModel.C.
PhaseChangeModel | ( | const PhaseChangeModel< CloudType > & | pcm | ) |
Construct copy.
Definition at line 79 of file PhaseChangeModel.C.
|
virtualdefault |
Destructor.
|
protected |
Convert word to enthalpy transfer type.
Definition at line 44 of file PhaseChangeModel.C.
|
protected |
Sherwood number.
TypeName | ( | "phaseChangeModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
PhaseChangeModel< CloudType > | , | ||
dictionary | , | ||
(const dictionary &dict, CloudType &owner) | , | ||
(dict, owner) | |||
) |
Declare runtime constructor selection table.
|
pure virtual |
Construct and return a clone.
Implemented in LiquidEvapFuchsKnudsen< CloudType >, LiquidEvaporationBoil< CloudType >, LiquidEvaporation< CloudType >, and NoPhaseChange< CloudType >.
|
static |
Selector.
Definition at line 36 of file PhaseChangeModelNew.C.
const Foam::PhaseChangeModel< CloudType >::enthalpyTransferType & enthalpyTransfer | ( | ) | const |
Return the enthalpy transfer type enumeration.
Definition at line 110 of file PhaseChangeModel.C.
|
pure virtual |
Update model.
Implemented in LiquidEvapFuchsKnudsen< CloudType >, LiquidEvaporationBoil< CloudType >, LiquidEvaporation< CloudType >, and NoPhaseChange< CloudType >.
|
virtual |
Return the enthalpy per unit mass.
Reimplemented in LiquidEvapFuchsKnudsen< CloudType >, LiquidEvaporationBoil< CloudType >, and LiquidEvaporation< CloudType >.
Definition at line 118 of file PhaseChangeModel.C.
|
virtual |
Return vapourisation temperature.
Reimplemented in LiquidEvapFuchsKnudsen< CloudType >, LiquidEvaporationBoil< CloudType >, and LiquidEvaporation< CloudType >.
Definition at line 141 of file PhaseChangeModel.C.
|
virtual |
Return maximum/limiting temperature.
Reimplemented in LiquidEvapFuchsKnudsen< CloudType >, LiquidEvaporationBoil< CloudType >, and LiquidEvaporation< CloudType >.
Definition at line 131 of file PhaseChangeModel.C.
void addToPhaseChangeMass | ( | const scalar | dMass | ) |
Add to phase change mass.
Definition at line 148 of file PhaseChangeModel.C.
|
virtual |
Write injection info to stream.
Definition at line 155 of file PhaseChangeModel.C.
|
static |
Name representations of enthalpy transfer types.
Definition at line 75 of file PhaseChangeModel.H.
|
protected |
Enthalpy transfer type enumeration.
Definition at line 83 of file PhaseChangeModel.H.
|
protected |
Mass of lagrangian phase converted.
Definition at line 89 of file PhaseChangeModel.H.