Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel > Class Template Reference

Templated abstract base class for turbulence models. More...

Inheritance diagram for TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >:
Inheritance graph
[legend]
Collaboration diagram for TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >:
Collaboration graph
[legend]

Public Types

typedef Alpha alphaField
 
typedef Rho rhoField
 
typedef TransportModel transportModel
 

Public Member Functions

 declareRunTimeNewSelectionTable (autoPtr, TurbulenceModel, dictionary,(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName),(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName))
 
 TurbulenceModel (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct. More...
 
virtual ~TurbulenceModel ()
 Destructor. More...
 
const alphaFieldalpha () const
 Access function to phase fraction. More...
 
const transportModeltransport () const
 Access function to incompressible transport model. More...
 
tmp< volScalarFieldnu () const
 Return the laminar viscosity. More...
 
tmp< scalarFieldnu (const label patchi) const
 Return the laminar viscosity on patchi. More...
 

Static Public Member Functions

static autoPtr< TurbulenceModelNew (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
 Return a reference to the selected turbulence model. More...
 

Protected Attributes

const alphaFieldalpha_
 
const transportModeltransport_
 

Detailed Description

template<class Alpha, class Rho, class BasicTurbulenceModel, class TransportModel>
class Foam::TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >

Templated abstract base class for turbulence models.

Source files

Definition at line 57 of file TurbulenceModel.H.

Member Typedef Documentation

typedef Alpha alphaField

Definition at line 64 of file TurbulenceModel.H.

typedef Rho rhoField

Definition at line 65 of file TurbulenceModel.H.

typedef TransportModel transportModel

Definition at line 66 of file TurbulenceModel.H.

Constructor & Destructor Documentation

TurbulenceModel ( const alphaField alpha,
const rhoField rho,
const volVectorField U,
const surfaceScalarField alphaRhoPhi,
const surfaceScalarField phi,
const transportModel transport,
const word propertiesName 
)
virtual ~TurbulenceModel ( )
inlinevirtual

Destructor.

Definition at line 141 of file TurbulenceModel.H.

Member Function Documentation

declareRunTimeNewSelectionTable ( autoPtr  ,
TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >  ,
dictionary  ,
(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)  ,
(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName)   
)
static autoPtr<TurbulenceModel> New ( const alphaField alpha,
const rhoField rho,
const volVectorField U,
const surfaceScalarField alphaRhoPhi,
const surfaceScalarField phi,
const transportModel transport,
const word propertiesName = turbulenceModel::propertiesName 
)
static

Return a reference to the selected turbulence model.

Referenced by TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >::TurbulenceModel().

Here is the caller graph for this function:

const alphaField& alpha ( ) const
inline

Access function to phase fraction.

Definition at line 148 of file TurbulenceModel.H.

const transportModel& transport ( ) const
inline

Access function to incompressible transport model.

Definition at line 154 of file TurbulenceModel.H.

tmp<volScalarField> nu ( ) const
inline
tmp<scalarField> nu ( const label  patchi) const
inline

Return the laminar viscosity on patchi.

Definition at line 166 of file TurbulenceModel.H.

Member Data Documentation

const alphaField& alpha_
protected
const transportModel& transport_
protected

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