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

turbulenceModel Class Reference

Abstract base class for incompressible 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 volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel),(U, phi, lamTransportModel))
 turbulenceModel (const volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel)
 Construct from components.
virtual ~turbulenceModel ()
 Destructor.
const volVectorField & U () const
 Access function to velocity field.
const surfaceScalarField & phi () const
 Access function to flux field.
transportModel & transport () const
 Access function to incompressible transport model.
const volScalarField & nu () const
 Return the laminar viscosity.
virtual tmp< volScalarField > nut () const =0
 Return the turbulence viscosity.
virtual tmp< volScalarField > nuEff () const =0
 Return the effective viscosity.
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 > devReff () const =0
 Return the effective stress tensor including the laminar stress.
virtual tmp< fvVectorMatrix > divDevReff (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 volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel)
 Return a reference to the selected turbulence model.

Protected Attributes

const Time & runTime_
const fvMesh & mesh_
const volVectorField & U_
const surfaceScalarField & phi_
transportModel & transportModel_

Detailed Description

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

Source files

Definition at line 64 of file turbulenceModel.H.


Constructor & Destructor Documentation

turbulenceModel ( const volVectorField &  U,
const surfaceScalarField &  phi,
transportModel &  lamTransportModel 
)

Construct from components.

Definition at line 37 of file turbulenceModel.C.

virtual ~turbulenceModel (  )  [inline, virtual]

Destructor.

Definition at line 136 of file turbulenceModel.H.


Member Function Documentation

TypeName ( "turbulenceModel"   ) 

Runtime type information.

declareRunTimeNewSelectionTable ( autoPtr  ,
turbulenceModel  ,
turbulenceModel  ,
(const volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel)  ,
(U, phi, lamTransportModel)   
)

autoPtr< turbulenceModel > New ( const volVectorField &  U,
const surfaceScalarField &  phi,
transportModel &  lamTransportModel 
) [static]

Return a reference to the selected turbulence model.

Definition at line 55 of file turbulenceModel.C.

const volVectorField& U (  )  const [inline]

Access function to velocity field.

Definition at line 143 of file turbulenceModel.H.

Referenced by nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::calcNut().

Here is the caller graph for this function:

const surfaceScalarField& phi (  )  const [inline]

Access function to flux field.

Definition at line 149 of file turbulenceModel.H.

References turbulenceModel::U_.

transportModel& transport (  )  const [inline]

Access function to incompressible transport model.

Definition at line 155 of file turbulenceModel.H.

References turbulenceModel::phi_.

Referenced by turbulenceModel::nu().

Here is the caller graph for this function:

const volScalarField& nu (  )  const [inline]

Return the laminar viscosity.

Definition at line 161 of file turbulenceModel.H.

References turbulenceModel::transport(), and turbulenceModel::transportModel_.

Referenced by nutSpalartAllmarasStandardWallFunctionFvPatchScalarField::calcNut().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return the effective viscosity.

Implemented in laminar, LESModel, laminar, RASModel, and laminar.

virtual tmp<fvVectorMatrix> divDevReff ( 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, kOmega, kOmegaSST, LamBremhorstKE, laminar, LaunderGibsonRSTM, LaunderSharmaKE, LienCubicKE, LienCubicKELowRe, LienLeschzinerLowRe, LRR, NonlinearKEShih, qZeta, RASModel, realizableKE, RNGkEpsilon, SpalartAllmaras, and laminar.

Definition at line 106 of file turbulenceModel.C.


Member Data Documentation

const Time& runTime_ [protected]

Definition at line 71 of file turbulenceModel.H.

const fvMesh& mesh_ [protected]

Definition at line 72 of file turbulenceModel.H.

Referenced by SpalartAllmaras::epsilon(), SpalartAllmaras::R(), and RASModel::read().

const volVectorField& U_ [protected]

const surfaceScalarField& phi_ [protected]

Definition at line 75 of file turbulenceModel.H.

Referenced by turbulenceModel::transport().

transportModel& transportModel_ [protected]

Definition at line 77 of file turbulenceModel.H.

Referenced by turbulenceModel::nu().


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