OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

turbulenceModel Class Reference

Inheritance diagram for turbulenceModel:

Inheritance graph
[legend]
Collaboration diagram for turbulenceModel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 69 of file turbulenceModel.H.


Public Member Functions

 TypeName ("turbulenceModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, turbulenceModel, dictionary,(const volVectorField &U, const surfaceScalarField &phi, transportModel &transport),(U, phi, transport))
 turbulenceModel (const word &type, const volVectorField &U, const surfaceScalarField &phi, transportModel &transport)
 Construct from components.
virtual ~turbulenceModel ()
const dimensionedScalar & k0 () const
 Return the value of k0 which k is not allowed to be less than.
const dimensionedScalar & epsilon0 () const
 Return the value of epsilon0 which epsilon is not allowed to be.
const dimensionedScalar & epsilonSmall () const
 Return the value of epsilonSmall which is added to epsilon when.
dimensionedScalar & k0 ()
 Allow k0 to be changed.
dimensionedScalar & epsilon0 ()
 Allow epsilon0 to be changed.
dimensionedScalar & epsilonSmall ()
 Allow epsilonSmall to be changed.
scalar kappa () const
 Return kappa for use in wall-functions.
scalar E () const
 Return E for use in wall-functions.
scalar yPlusLam () const
 Return y+ at the edge of the laminar sublayer.
const volScalarField & nu () const
 Return the incompressible viscosity.
virtual tmp< volScalarField > nut () const=0
 Return the turbulence viscosity.
virtual tmp< volScalarField > nuEff () const
 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< fvVectorMatrix > divR (volVectorField &U) const =0
 Return the source term for the momentum equation.
virtual tmp< scalarField > yPlus (const label patchI) const
 Return yPlus for the given patch.
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 &transport)
 Return a reference to the selected turbulence model.

Protected Member Functions

scalar yPlusLam (const scalar kappa, const scalar E)

Protected Attributes

const Time & runTime_
const fvMesh & mesh_
const volVectorField & U_
const surfaceScalarField & phi_
transportModel & transportModel_
Switch turbulence_
dictionary turbulenceModelCoeffs_
scalar kappa_
scalar E_
scalar yPlusLam_
dimensionedScalar k0_
dimensionedScalar epsilon0_
dimensionedScalar epsilonSmall_
nearWallDist y_

Constructor & Destructor Documentation

turbulenceModel ( const word &  type,
const volVectorField &  U,
const surfaceScalarField &  phi,
transportModel &  transport 
)

Construct from components.

virtual ~turbulenceModel (  )  [virtual]


Member Function Documentation

scalar yPlusLam ( const scalar  kappa,
const scalar  E 
) [protected]

TypeName ( "turbulenceModel"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
turbulenceModel  ,
dictionary  ,
(const volVectorField &U, const surfaceScalarField &phi, transportModel &transport)  ,
(U, phi, transport)   
)

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

Return a reference to the selected turbulence model.

const dimensionedScalar& k0 (  )  const [inline]

Return the value of k0 which k is not allowed to be less than.

Definition at line 168 of file turbulenceModel.H.

References turbulenceModel::epsilon0_.

const dimensionedScalar& epsilon0 (  )  const [inline]

Return the value of epsilon0 which epsilon is not allowed to be.

less than

Definition at line 177 of file turbulenceModel.H.

const dimensionedScalar& epsilonSmall (  )  const [inline]

Return the value of epsilonSmall which is added to epsilon when.

calculating nut

Definition at line 186 of file turbulenceModel.H.

References turbulenceModel::epsilon0_.

dimensionedScalar& k0 (  )  [inline]

Allow k0 to be changed.

Definition at line 193 of file turbulenceModel.H.

References turbulenceModel::epsilonSmall_.

dimensionedScalar& epsilon0 (  )  [inline]

Allow epsilon0 to be changed.

Definition at line 199 of file turbulenceModel.H.

References turbulenceModel::kappa_.

dimensionedScalar& epsilonSmall (  )  [inline]

Allow epsilonSmall to be changed.

Definition at line 205 of file turbulenceModel.H.

References turbulenceModel::E_.

scalar kappa (  )  const [inline]

Return kappa for use in wall-functions.

Definition at line 212 of file turbulenceModel.H.

References turbulenceModel::yPlusLam_.

scalar E (  )  const [inline]

Return E for use in wall-functions.

Definition at line 218 of file turbulenceModel.H.

References transportModel::nu(), and turbulenceModel::transportModel_.

Here is the call graph for this function:

scalar yPlusLam (  )  const [inline]

Return y+ at the edge of the laminar sublayer.

for use in wall-functions

Definition at line 227 of file turbulenceModel.H.

virtual tmp<volScalarField> nuEff (  )  const [inline, virtual]

Return the effective viscosity.

Reimplemented in laminar.

Definition at line 243 of file turbulenceModel.H.

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

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

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

virtual tmp<scalarField> yPlus ( const label  patchI  )  const [virtual]

Return yPlus for the given patch.

virtual void correct (  )  [pure virtual]

Solve the turbulence equations and correct the turbulence viscosity.

Implemented in kEpsilon, kOmegaSST, LamBremhorstKE, laminar, LaunderGibsonRSTM, LaunderSharmaKE, LienCubicKE, LienCubicKELowRe, LienLeschzinerLowRe, LRR, NonlinearKEShih, QZeta, realizableKE, RNGkEpsilon, and SpalartAllmaras.

virtual bool read (  )  [pure virtual]


Member Data Documentation

const Time& runTime_ [protected]

Definition at line 78 of file turbulenceModel.H.

const fvMesh& mesh_ [protected]

Definition at line 79 of file turbulenceModel.H.

const volVectorField& U_ [protected]

Definition at line 81 of file turbulenceModel.H.

const surfaceScalarField& phi_ [protected]

Definition at line 82 of file turbulenceModel.H.

Definition at line 84 of file turbulenceModel.H.

Referenced by turbulenceModel::E().

Switch turbulence_ [protected]

Definition at line 86 of file turbulenceModel.H.

Definition at line 87 of file turbulenceModel.H.

scalar kappa_ [protected]

Definition at line 89 of file turbulenceModel.H.

Referenced by turbulenceModel::epsilon0().

scalar E_ [protected]

Definition at line 90 of file turbulenceModel.H.

Referenced by turbulenceModel::epsilonSmall().

scalar yPlusLam_ [protected]

Definition at line 93 of file turbulenceModel.H.

Referenced by turbulenceModel::kappa().

dimensionedScalar k0_ [protected]

Definition at line 95 of file turbulenceModel.H.

Definition at line 96 of file turbulenceModel.H.

Referenced by turbulenceModel::epsilonSmall(), and turbulenceModel::k0().

Definition at line 97 of file turbulenceModel.H.

Referenced by turbulenceModel::k0().

nearWallDist y_ [protected]

Definition at line 99 of file turbulenceModel.H.


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