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

turbulenceModel Class Reference

Abstract base class for compressible turbulence models (RAS, LES and laminar). More...

Inheritance diagram for turbulenceModel:
Collaboration diagram for turbulenceModel:

List of all members.


Public Member Functions

 TypeName ("turbulenceModel")
 Runtime type information.
 declareRunTimeNewSelectionTable (autoPtr, turbulenceModel, turbulenceModel,(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermoPhysicalModel),(rho, U, phi, thermoPhysicalModel))
 turbulenceModel (const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermoPhysicalModel)
 Construct from components.
virtual ~turbulenceModel ()
 Destructor.
const volScalarField & rho () const
 Access function to density field.
const volVectorField & U () const
 Access function to velocity field.
const surfaceScalarField & phi () const
 Access function to flux field.
const basicThermo & thermo () const
 Access function to thermophysical model.
const volScalarField & mu () const
 Return the laminar viscosity.
const volScalarField & alpha () const
 Return the laminar thermal conductivity.
virtual tmp< volScalarField > mut () const =0
 Return the turbulence viscosity.
virtual tmp< volScalarField > muEff () const =0
 Return the effective viscosity.
virtual tmp< volScalarField > alphaEff () const =0
 Return the effective turbulent thermal diffusivity.
virtual tmp< volScalarField > k () const =0
 Return the turbulence kinetic energy.
virtual tmp< volScalarField > epsilon () const =0
 Return the turbulence kinetic energy dissipation rate.
virtual tmp< volSymmTensorField > R () const =0
 Return the Reynolds stress tensor.
virtual tmp< volSymmTensorField > devRhoReff () const =0
 Return the effective stress tensor including the laminar stress.
virtual tmp< fvVectorMatrix > divDevRhoReff (volVectorField &U) const =0
 Return the source term for the momentum equation.
virtual void correct ()=0
 Solve the turbulence equations and correct the turbulence viscosity.
virtual bool read ()=0
 Read turbulenceProperties dictionary.

Static Public Member Functions

static autoPtr< turbulenceModel > New (const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermoPhysicalModel)
 Return a reference to the selected turbulence model.

Protected Attributes

const Time & runTime_
const fvMesh & mesh_
const volScalarField & rho_
const volVectorField & U_
const surfaceScalarField & phi_
const basicThermo & thermophysicalModel_

Detailed Description

Abstract base class for compressible turbulence models (RAS, LES and laminar).

Source files

Definition at line 65 of file turbulenceModel.H.


Constructor & Destructor Documentation

turbulenceModel ( const volScalarField &  rho,
const volVectorField &  U,
const surfaceScalarField &  phi,
const basicThermo &  thermoPhysicalModel 
)

Construct from components.

Definition at line 37 of file turbulenceModel.C.

virtual ~turbulenceModel (  )  [inline, virtual]

Destructor.

Definition at line 141 of file turbulenceModel.H.


Member Function Documentation

TypeName ( "turbulenceModel"   ) 

Runtime type information.

declareRunTimeNewSelectionTable ( autoPtr  ,
turbulenceModel  ,
turbulenceModel  ,
(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermoPhysicalModel)  ,
(rho, U, phi, thermoPhysicalModel)   
)

autoPtr< turbulenceModel > New ( const volScalarField &  rho,
const volVectorField &  U,
const surfaceScalarField &  phi,
const basicThermo &  thermoPhysicalModel 
) [static]

Return a reference to the selected turbulence model.

Definition at line 57 of file turbulenceModel.C.

const volScalarField& rho (  )  const [inline]

const volVectorField& U (  )  const [inline]

Access function to velocity field.

Definition at line 154 of file turbulenceModel.H.

References turbulenceModel::rho_.

Referenced by mutSpalartAllmarasWallFunctionFvPatchScalarField::calcUTau().

Here is the caller graph for this function:

const surfaceScalarField& phi (  )  const [inline]

Access function to flux field.

Definition at line 160 of file turbulenceModel.H.

References turbulenceModel::U_.

const basicThermo& thermo (  )  const [inline]

Access function to thermophysical model.

Definition at line 166 of file turbulenceModel.H.

References turbulenceModel::phi_.

const volScalarField& alpha (  )  const [inline]

Return the laminar thermal conductivity.

Definition at line 178 of file turbulenceModel.H.

References basicThermo::mu(), and turbulenceModel::thermophysicalModel_.

Referenced by GenSGSStress::B(), LaunderGibsonRSTM::k(), LRR::k(), realizableKE::k(), RNGkEpsilon::k(), PDRkEpsilon::k(), LaunderSharmaKE::k(), kEpsilon::k(), and SpalartAllmaras::k().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual tmp<volScalarField> mut (  )  const [pure virtual]

virtual tmp<volScalarField> muEff (  )  const [pure virtual]

Return the effective viscosity.

Implemented in LESModel, laminar, RASModel, and laminar.

virtual tmp<volScalarField> alphaEff (  )  const [pure virtual]

virtual tmp<volScalarField> k (  )  const [pure virtual]

virtual tmp<volScalarField> epsilon (  )  const [pure virtual]

virtual tmp<volSymmTensorField> R (  )  const [pure virtual]

virtual tmp<volSymmTensorField> devRhoReff (  )  const [pure virtual]

Return the effective stress tensor including the laminar stress.

Implemented in LESModel, kEpsilon, kOmegaSST, laminar, LaunderGibsonRSTM, LaunderSharmaKE, LRR, RASModel, realizableKE, RNGkEpsilon, SpalartAllmaras, laminar, and PDRkEpsilon.

virtual tmp<fvVectorMatrix> divDevRhoReff ( volVectorField &  U  )  const [pure virtual]

Return the source term for the momentum equation.

void correct (  )  [pure virtual]

Solve the turbulence equations and correct the turbulence viscosity.

Implemented in LESModel, kEpsilon, kOmegaSST, laminar, LaunderGibsonRSTM, LaunderSharmaKE, LRR, RASModel, realizableKE, RNGkEpsilon, SpalartAllmaras, laminar, and PDRkEpsilon.

Definition at line 113 of file turbulenceModel.C.


Member Data Documentation

const Time& runTime_ [protected]

Definition at line 72 of file turbulenceModel.H.

const fvMesh& mesh_ [protected]

Definition at line 73 of file turbulenceModel.H.

Referenced by RASModel::read().

const volVectorField& U_ [protected]

const surfaceScalarField& phi_ [protected]

Definition at line 77 of file turbulenceModel.H.

Referenced by turbulenceModel::thermo().

const basicThermo& thermophysicalModel_ [protected]

Definition at line 79 of file turbulenceModel.H.

Referenced by turbulenceModel::alpha(), and turbulenceModel::mu().


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd