OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

PhaseChangeModel< CloudType > Class Template Reference

Templated phase change model class. More...

Inheritance diagram for PhaseChangeModel< CloudType >:
Collaboration diagram for PhaseChangeModel< CloudType >:

List of all members.


Public Member Functions

 TypeName ("PhaseChangeModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, PhaseChangeModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
 Declare runtime constructor selection table.
 PhaseChangeModel (CloudType &owner)
 Construct null from owner.
 PhaseChangeModel (const dictionary &dict, CloudType &owner, const word &type)
 Construct from dictionary.
virtual ~PhaseChangeModel ()
 Destructor.
const CloudType & owner () const
 Return the owner cloud object.
const dictionarydict () const
 Return the cloud dictionary.
const dictionarycoeffDict () const
 Return the coefficient dictionary.
virtual bool active () const =0
 Flag to indicate whether model activates phase change model.
virtual void calculate (const scalar dt, const label cellI, const scalar d, const scalar T, const scalar pc, const scalar Tc, const scalar nuc, const vector &Ur, scalarField &dMassPC) const =0
 Update model.

Static Public Member Functions

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

Protected Member Functions

scalar Sh () const
 Sherwood number.

Protected Attributes

const dictionarydict_
 The cloud dictionary.
CloudType & owner_
 Reference to the owner cloud class.
const dictionary coeffDict_
 The coefficient dictionary.

Detailed Description

template<class CloudType>
class Foam::PhaseChangeModel< CloudType >

Templated phase change model class.

Source files

Definition at line 48 of file PhaseChangeModel.H.


Constructor & Destructor Documentation

PhaseChangeModel ( CloudType &  owner  )  [inline]

Construct null from owner.

Definition at line 24 of file PhaseChangeModel.C.

PhaseChangeModel ( const dictionary dict,
CloudType &  owner,
const word type 
) [inline]

Construct from dictionary.

Definition at line 36 of file PhaseChangeModel.C.

~PhaseChangeModel (  )  [inline, virtual]

Destructor.

Definition at line 51 of file PhaseChangeModel.C.


Member Function Documentation

scalar Sh (  )  const [protected]

Sherwood number.

TypeName ( "PhaseChangeModel< CloudType >"   ) 

Runtime type information.

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

Declare runtime constructor selection table.

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

Selector.

Definition at line 25 of file NewPhaseChangeModel.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, dictionary::lookup(), and Foam::nl.

Here is the call graph for this function:

const CloudType & owner (  )  const [inline]

Return the owner cloud object.

Definition at line 57 of file PhaseChangeModel.C.

const Foam::dictionary & dict (  )  const [inline]

Return the cloud dictionary.

Definition at line 64 of file PhaseChangeModel.C.

const Foam::dictionary & coeffDict (  )  const [inline]

Return the coefficient dictionary.

Definition at line 71 of file PhaseChangeModel.C.

virtual bool active (  )  const [pure virtual]

Flag to indicate whether model activates phase change model.

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

virtual void calculate ( const scalar  dt,
const label  cellI,
const scalar  d,
const scalar  T,
const scalar  pc,
const scalar  Tc,
const scalar  nuc,
const vector Ur,
scalarField dMassPC 
) const [pure virtual]

Update model.

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


Member Data Documentation

const dictionary& dict_ [protected]

The cloud dictionary.

Definition at line 55 of file PhaseChangeModel.H.

CloudType& owner_ [protected]

Reference to the owner cloud class.

Definition at line 58 of file PhaseChangeModel.H.

const dictionary coeffDict_ [protected]

The coefficient dictionary.

Definition at line 61 of file PhaseChangeModel.H.


The documentation for this class was generated from the following files:
  • src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/PhaseChangeModel/PhaseChangeModel.H
  • src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/PhaseChangeModel/NewPhaseChangeModel.C
  • src/lagrangian/intermediate/submodels/Reacting/PhaseChangeModel/PhaseChangeModel/PhaseChangeModel.C
Copyright © 2000-2009 OpenCFD Ltd