Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
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 }
 

Public Member Functions

 TypeName ("phaseChangeModel")
 
 declareRunTimeSelectionTable (autoPtr, PhaseChangeModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
 
 PhaseChangeModel (CloudType &owner)
 
 PhaseChangeModel (const dictionary &dict, CloudType &owner, const word &type)
 
 PhaseChangeModel (const PhaseChangeModel< CloudType > &pcm)
 
virtual autoPtr< PhaseChangeModel< CloudType > > clone () const =0
 
virtual ~PhaseChangeModel ()=default
 
const enthalpyTransferTypeenthalpyTransfer () const
 
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
 
virtual scalar dh (const label idc, const label idl, const scalar p, const scalar T) const
 
virtual scalar Tvap (const scalarField &X) const
 
virtual scalar TMax (const scalar p, const scalarField &X) const
 
void addToPhaseChangeMass (const scalar dMass)
 
virtual void info (Ostream &os)
 

Static Public Member Functions

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

Static Public Attributes

static const wordList enthalpyTransferTypeNames
 

Protected Member Functions

enthalpyTransferType wordToEnthalpyTransfer (const word &etName) const
 
scalar Sh () const
 

Protected Attributes

enthalpyTransferType enthalpyTransfer_
 
scalar dMass_
 

Detailed Description

Templated phase change model class.

Source files

Definition at line 57 of file ReactingCloud.H.

Member Enumeration Documentation

◆ enthalpyTransferType

Enumerator
etLatentHeat 
etEnthalpyDifference 

Definition at line 64 of file PhaseChangeModel.H.

Constructor & Destructor Documentation

◆ PhaseChangeModel() [1/3]

Definition at line 60 of file PhaseChangeModel.C.

◆ PhaseChangeModel() [2/3]

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

Definition at line 84 of file PhaseChangeModel.C.

◆ PhaseChangeModel() [3/3]

Definition at line 72 of file PhaseChangeModel.C.

◆ ~PhaseChangeModel()

virtual ~PhaseChangeModel ( )
virtualdefault

Member Function Documentation

◆ wordToEnthalpyTransfer()

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

Definition at line 37 of file PhaseChangeModel.C.

◆ Sh()

scalar Sh ( ) const
protected

◆ TypeName()

TypeName ( "phaseChangeModel"  )

◆ declareRunTimeSelectionTable()

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

◆ clone()

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

◆ New()

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

Definition at line 29 of file PhaseChangeModelNew.C.

◆ enthalpyTransfer()

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

Definition at line 103 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  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
pure virtual

◆ dh()

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

◆ Tvap()

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

◆ TMax()

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

◆ addToPhaseChangeMass()

void addToPhaseChangeMass ( const scalar  dMass)

Definition at line 141 of file PhaseChangeModel.C.

◆ info()

void info ( Ostream os)
virtual

Definition at line 148 of file PhaseChangeModel.C.

Member Data Documentation

◆ enthalpyTransferTypeNames

const Foam::wordList enthalpyTransferTypeNames
static
Initial value:
{
"latentHeat", "enthalpyDifference"
}

Definition at line 71 of file PhaseChangeModel.H.

◆ enthalpyTransfer_

enthalpyTransferType enthalpyTransfer_
protected

Definition at line 79 of file PhaseChangeModel.H.

◆ dMass_

scalar dMass_
protected

Definition at line 85 of file PhaseChangeModel.H.


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