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 72 of file turbulenceModel.H.


Public Member Functions

 TypeName ("turbulenceModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, turbulenceModel, dictionary,(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, basicThermo &thermoPhysicalModel),(rho, U, phi, thermoPhysicalModel))
 turbulenceModel (const word &type, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, basicThermo &thermoPhysicalModel)
 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.
virtual tmp< volScalarField > mut () const=0
 Return the effective viscosity.
virtual tmp< volScalarField > muEff () const
 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< fvVectorMatrix > divRhoR (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 volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, basicThermo &thermoPhysicalModel)
 Return a reference to the selected turbulence model.

Protected Member Functions

scalar yPlusLam (const scalar kappa, const scalar E)
const volScalarField & mu () const
 Return the laminar viscosity.
const volScalarField & alpha () const
 Return the laminar thermal conductivity.

Protected Attributes

const Time & runTime_
const fvMesh & mesh_
const volScalarField & rho_
const volVectorField & U_
const surfaceScalarField & phi_
basicThermo & thermophysicalModel_
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 volScalarField &  rho,
const volVectorField &  U,
const surfaceScalarField &  phi,
basicThermo &  thermoPhysicalModel 
)

Construct from components.

virtual ~turbulenceModel (  )  [inline, virtual]

Definition at line 180 of file turbulenceModel.H.

References turbulenceModel::k0_.


Member Function Documentation

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

const volScalarField& mu (  )  const [inline, protected]

const volScalarField& alpha (  )  const [inline, protected]

TypeName ( "turbulenceModel"   ) 

Runtime type information.

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

static autoPtr<turbulenceModel> New ( const volScalarField &  rho,
const volVectorField &  U,
const surfaceScalarField &  phi,
basicThermo &  thermoPhysicalModel 
) [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 189 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 198 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 207 of file turbulenceModel.H.

References turbulenceModel::epsilon0_.

dimensionedScalar& k0 (  )  [inline]

Allow k0 to be changed.

Definition at line 214 of file turbulenceModel.H.

References turbulenceModel::epsilonSmall_.

dimensionedScalar& epsilon0 (  )  [inline]

Allow epsilon0 to be changed.

Definition at line 220 of file turbulenceModel.H.

References turbulenceModel::kappa_.

dimensionedScalar& epsilonSmall (  )  [inline]

Allow epsilonSmall to be changed.

Definition at line 226 of file turbulenceModel.H.

References turbulenceModel::E_.

scalar kappa (  )  const [inline]

Return kappa for use in wall-functions.

Definition at line 233 of file turbulenceModel.H.

References turbulenceModel::yPlusLam_.

scalar E (  )  const [inline]

Return E for use in wall-functions.

Definition at line 239 of file turbulenceModel.H.

scalar yPlusLam (  )  const [inline]

Return y+ at the edge of the laminar sublayer.

for use in wall-functions

Definition at line 248 of file turbulenceModel.H.

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

Return the effective viscosity.

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

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

Return the effective viscosity.

Reimplemented in laminar.

Definition at line 258 of file turbulenceModel.H.

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

Return the effective turbulent thermal diffusivity.

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

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

Return the turbulence kinetic energy.

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

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

Return the turbulence kinetic energy dissipation rate.

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

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

Return the Reynolds stress tensor.

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

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

Return the source term for the momentum equation.

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

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, laminar, LaunderGibsonRSTM, LaunderSharmaKE, LRR, realizableKE, RNGkEpsilon, and SpalartAllmaras.

virtual bool read (  )  [pure virtual]

Read turbulenceProperties dictionary.

Reimplemented from regIOobject.

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


Member Data Documentation

const Time& runTime_ [protected]

Definition at line 81 of file turbulenceModel.H.

const fvMesh& mesh_ [protected]

Definition at line 82 of file turbulenceModel.H.

const volScalarField& rho_ [protected]

Definition at line 84 of file turbulenceModel.H.

Referenced by SpalartAllmaras::mut().

const volVectorField& U_ [protected]

Definition at line 85 of file turbulenceModel.H.

const surfaceScalarField& phi_ [protected]

Definition at line 86 of file turbulenceModel.H.

Definition at line 88 of file turbulenceModel.H.

Referenced by turbulenceModel::mu().

Switch turbulence_ [protected]

Definition at line 90 of file turbulenceModel.H.

Definition at line 91 of file turbulenceModel.H.

scalar kappa_ [protected]

Definition at line 93 of file turbulenceModel.H.

Referenced by turbulenceModel::epsilon0().

scalar E_ [protected]

Definition at line 94 of file turbulenceModel.H.

Referenced by turbulenceModel::epsilonSmall().

scalar yPlusLam_ [protected]

Definition at line 97 of file turbulenceModel.H.

Referenced by turbulenceModel::kappa().

dimensionedScalar k0_ [protected]

Definition at line 99 of file turbulenceModel.H.

Referenced by turbulenceModel::~turbulenceModel().

Definition at line 100 of file turbulenceModel.H.

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

Definition at line 101 of file turbulenceModel.H.

Referenced by turbulenceModel::k0().

nearWallDist y_ [protected]

Definition at line 103 of file turbulenceModel.H.


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