OpenFOAM logo
Open Source CFD Toolkit

turbulenceModel Class Reference

Inheritance diagram for turbulenceModel:

Inheritance graph
[legend]
Collaboration diagram for turbulenceModel:

Collaboration graph
[legend]
List of all members.

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< volTensorField > 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

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

virtual void correct (   )  [pure virtual]
 

Solve the turbulence equations and correct the turbulence viscosity.

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

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

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

Return the source term for the momentum equation.

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

scalar E (   )  const [inline]
 

Return E for use in wall-functions.

Definition at line 218 of file turbulenceModel.H.

References Foam::volScalarField.

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

Return the turbulence kinetic energy dissipation rate.

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

dimensionedScalar& epsilon0 (   )  [inline]
 

Allow epsilon0 to be changed.

Definition at line 199 of file turbulenceModel.H.

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.

dimensionedScalar& epsilonSmall (   )  [inline]
 

Allow epsilonSmall to be changed.

Definition at line 205 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 Foam::dimensionedScalar.

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

Return the turbulence kinetic energy.

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

dimensionedScalar& k0 (   )  [inline]
 

Allow k0 to be changed.

Definition at line 193 of file turbulenceModel.H.

References Foam::dimensionedScalar.

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 Foam::dimensionedScalar.

scalar kappa (   )  const [inline]
 

Return kappa for use in wall-functions.

Definition at line 212 of file turbulenceModel.H.

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

Return a reference to the selected turbulence model.

const volScalarField& nu (   )  const [inline]
 

Return the incompressible viscosity.

Definition at line 234 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.

References Foam::volVectorField.

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

Return the turbulence viscosity.

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

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

Return the Reynolds stress tensor.

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

virtual bool read (   )  [pure virtual]
 

Read turbulenceProperties dictionary.

Reimplemented from regIOobject.

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

TypeName (  "turbulenceModel"   ) 
 

Runtime type information.

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

Return yPlus for the given patch.

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.

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


Member Data Documentation

scalar E_ [protected]
 

Definition at line 90 of file turbulenceModel.H.

dimensionedScalar epsilon0_ [protected]
 

Definition at line 96 of file turbulenceModel.H.

dimensionedScalar epsilonSmall_ [protected]
 

Definition at line 97 of file turbulenceModel.H.

dimensionedScalar k0_ [protected]
 

Definition at line 95 of file turbulenceModel.H.

scalar kappa_ [protected]
 

Definition at line 89 of file turbulenceModel.H.

const fvMesh& mesh_ [protected]
 

Definition at line 79 of file turbulenceModel.H.

const surfaceScalarField& phi_ [protected]
 

Definition at line 82 of file turbulenceModel.H.

const Time& runTime_ [protected]
 

Definition at line 78 of file turbulenceModel.H.

transportModel& transportModel_ [protected]
 

Definition at line 84 of file turbulenceModel.H.

Switch turbulence_ [protected]
 

Definition at line 86 of file turbulenceModel.H.

dictionary turbulenceModelCoeffs_ [protected]
 

Definition at line 87 of file turbulenceModel.H.

const volVectorField& U_ [protected]
 

Definition at line 81 of file turbulenceModel.H.

nearWallDist y_ [protected]
 

Definition at line 99 of file turbulenceModel.H.

scalar yPlusLam_ [protected]
 

Definition at line 93 of file turbulenceModel.H.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org