Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
PhaseChangeModel Class Referenceabstract

Templated phase change model class. More...

Inheritance diagram for PhaseChangeModel:
Inheritance graph
[legend]
Collaboration diagram for PhaseChangeModel:
Collaboration graph
[legend]

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 enthalpyTransferTypeenthalpyTransfer () 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...
 

Detailed Description

Templated phase change model class.

Source files

Definition at line 55 of file ReactingCloud.H.

Member Enumeration Documentation

◆ enthalpyTransferType

Enthalpy transfer type.

Enumerator
etLatentHeat 
etEnthalpyDifference 

Definition at line 62 of file PhaseChangeModel.H.

Constructor & Destructor Documentation

◆ PhaseChangeModel() [1/3]

Construct null from owner.

Definition at line 71 of file PhaseChangeModel.C.

◆ PhaseChangeModel() [2/3]

PhaseChangeModel ( const dictionary dict,
CloudType owner,
const word type 
)

Construct from dictionary.

Definition at line 95 of file PhaseChangeModel.C.

◆ PhaseChangeModel() [3/3]

Construct copy.

Definition at line 83 of file PhaseChangeModel.C.

◆ ~PhaseChangeModel()

~PhaseChangeModel ( )
virtual

Destructor.

Definition at line 113 of file PhaseChangeModel.C.

Member Function Documentation

◆ wordToEnthalpyTransfer()

Foam::PhaseChangeModel< CloudType >::enthalpyTransferType wordToEnthalpyTransfer ( const word etName) const
protected

Convert word to enthalpy transfer type.

Definition at line 48 of file PhaseChangeModel.C.

◆ Sh()

scalar Sh ( ) const
protected

Sherwood number.

◆ TypeName()

TypeName ( "phaseChangeModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
PhaseChangeModel  ,
dictionary  ,
(const dictionary &dict, CloudType &owner)  ,
(dict, owner)   
)

Declare runtime constructor selection table.

◆ clone()

virtual autoPtr<PhaseChangeModel<CloudType> > clone ( ) const
pure virtual

Construct and return a clone.

◆ New()

Foam::autoPtr< Foam::PhaseChangeModel< CloudType > > New ( const dictionary dict,
CloudType owner 
)
static

Selector.

Definition at line 33 of file PhaseChangeModelNew.C.

◆ enthalpyTransfer()

const Foam::PhaseChangeModel< CloudType >::enthalpyTransferType & enthalpyTransfer ( ) const

Return the enthalpy transfer type enumeration.

Definition at line 121 of file PhaseChangeModel.C.

◆ calculate()

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
pure virtual

Update model.

Implemented in LiquidEvaporationBoil< CloudType >, LiquidEvaporation< CloudType >, and NoPhaseChange< CloudType >.

Referenced by ReactingParcel::calcPhaseChange().

Here is the caller graph for this function:

◆ dh()

Foam::scalar dh ( const label  idc,
const label  idl,
const scalar  p,
const scalar  T 
) const
virtual

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().

Here is the caller graph for this function:

◆ Tvap()

Foam::scalar Tvap ( const scalarField X) const
virtual

Return vapourisation temperature.

Reimplemented in LiquidEvaporationBoil< CloudType >, and LiquidEvaporation< CloudType >.

Definition at line 152 of file PhaseChangeModel.C.

Referenced by ReactingParcel::calcPhaseChange().

Here is the caller graph for this function:

◆ TMax()

Foam::scalar TMax ( const scalar  p,
const scalarField X 
) const
virtual

Return maximum/limiting temperature.

Reimplemented in LiquidEvaporationBoil< CloudType >, and LiquidEvaporation< CloudType >.

Definition at line 142 of file PhaseChangeModel.C.

Referenced by ReactingParcel::calcPhaseChange().

Here is the caller graph for this function:

◆ addToPhaseChangeMass()

void addToPhaseChangeMass ( const scalar  dMass)

Add to phase change mass.

Definition at line 159 of file PhaseChangeModel.C.

Referenced by ReactingParcel::calcPhaseChange().

Here is the caller graph for this function:

◆ info()

void info ( Ostream os)
virtual

Write injection info to stream.

Definition at line 166 of file PhaseChangeModel.C.

Field Documentation

◆ enthalpyTransferTypeNames

const Foam::wordList enthalpyTransferTypeNames
static

Name representations of enthalpy transfer types.

Definition at line 69 of file PhaseChangeModel.H.

◆ enthalpyTransfer_

enthalpyTransferType enthalpyTransfer_
protected

Enthalpy transfer type enumeration.

Definition at line 77 of file PhaseChangeModel.H.

◆ dMass_

scalar dMass_
protected

Mass of lagrangian phase converted.

Definition at line 83 of file PhaseChangeModel.H.


The documentation for this class was generated from the following files: