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 () |
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 T, const scalar Ts, const scalar pc, const scalar Tc, const scalarField &X, 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 Foam::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... | |
enum enthalpyTransferType |
Enthalpy transfer type.
Enumerator | |
---|---|
etLatentHeat | |
etEnthalpyDifference |
Definition at line 62 of file PhaseChangeModel.H.
PhaseChangeModel | ( | CloudType & | owner | ) |
Construct null from owner.
Definition at line 71 of file PhaseChangeModel.C.
PhaseChangeModel | ( | const dictionary & | dict, |
CloudType & | owner, | ||
const word & | type | ||
) |
Construct from dictionary.
Definition at line 95 of file PhaseChangeModel.C.
PhaseChangeModel | ( | const PhaseChangeModel< CloudType > & | pcm | ) |
Construct copy.
Definition at line 83 of file PhaseChangeModel.C.
|
virtual |
Destructor.
Definition at line 113 of file PhaseChangeModel.C.
|
protected |
Convert word to enthalpy transfer type.
Definition at line 48 of file PhaseChangeModel.C.
|
protected |
Sherwood number.
TypeName | ( | "phaseChangeModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
PhaseChangeModel | , | ||
dictionary | , | ||
(const dictionary &dict, CloudType &owner) | , | ||
(dict, owner) | |||
) |
Declare runtime constructor selection table.
|
pure virtual |
Construct and return a clone.
|
static |
Selector.
Definition at line 33 of file PhaseChangeModelNew.C.
const Foam::PhaseChangeModel< CloudType >::enthalpyTransferType & enthalpyTransfer | ( | ) | const |
Return the enthalpy transfer type enumeration.
Definition at line 121 of file PhaseChangeModel.C.
|
pure virtual |
Update model.
Implemented in LiquidEvaporationBoil< CloudType >, LiquidEvaporation< CloudType >, and NoPhaseChange< CloudType >.
Referenced by ReactingParcel::calcPhaseChange().
Return the enthalpy per unit mass.
Reimplemented in LiquidEvaporationBoil< CloudType >, and LiquidEvaporation< CloudType >.
Definition at line 129 of file PhaseChangeModel.C.
Referenced by ReactingParcel::calcPhaseChange().
|
virtual |
Return vapourisation temperature.
Reimplemented in LiquidEvaporationBoil< CloudType >, and LiquidEvaporation< CloudType >.
Definition at line 152 of file PhaseChangeModel.C.
Referenced by ReactingParcel::calcPhaseChange().
|
virtual |
Return maximum/limiting temperature.
Reimplemented in LiquidEvaporationBoil< CloudType >, and LiquidEvaporation< CloudType >.
Definition at line 142 of file PhaseChangeModel.C.
Referenced by ReactingParcel::calcPhaseChange().
void addToPhaseChangeMass | ( | const scalar | dMass | ) |
Add to phase change mass.
Definition at line 159 of file PhaseChangeModel.C.
Referenced by ReactingParcel::calcPhaseChange().
|
virtual |
Write injection info to stream.
Definition at line 166 of file PhaseChangeModel.C.
|
static |
Name representations of enthalpy transfer types.
Definition at line 69 of file PhaseChangeModel.H.
|
protected |
Enthalpy transfer type enumeration.
Definition at line 77 of file PhaseChangeModel.H.
|
protected |
Mass of lagrangian phase converted.
Definition at line 83 of file PhaseChangeModel.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.