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

RASModel Class Reference

Abstract base class for incompressible turbulence models. More...

Inheritance diagram for RASModel:
Collaboration diagram for RASModel:

List of all members.


Public Member Functions

 TypeName ("RASModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, RASModel, dictionary,(const volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel),(U, phi, lamTransportModel))
 RASModel (const word &type, const volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel)
 Construct from components.
virtual ~RASModel ()
 Destructor.
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.
const dimensionedScalar & omega0 () const
 Return the value of omega0 which epsilon is not allowed to be.
const dimensionedScalar & omegaSmall () const
 Return the value of omegaSmall 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.
dimensionedScalar & omega0 ()
 Allow omega0 to be changed.
dimensionedScalar & omegaSmall ()
 Allow omegaSmall to be changed.
const nearWallDist & y () const
 Return the near wall distances.
scalar yPlusLam (const scalar kappa, const scalar E) const
 Calculate y+ at the edge of the laminar sublayer.
const dictionary & coeffDict () const
 Const access to the coefficients dictionary.
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< 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 tmp< scalarField > yPlus (const label patchI, const scalar Cmu) 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 RASProperties dictionary.

Static Public Member Functions

static autoPtr< RASModel > New (const volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel)
 Return a reference to the selected RAS model.

Protected Member Functions

virtual void printCoeffs ()
 Print model coefficients.

Protected Attributes

Switch turbulence_
 Turbulence on/off flag.
Switch printCoeffs_
 Flag to print the model coeffs at run-time.
dictionary coeffDict_
 Model coefficients dictionary.
dimensionedScalar k0_
 Lower limit of k.
dimensionedScalar epsilon0_
 Lower limit of epsilon.
dimensionedScalar epsilonSmall_
 Small epsilon value used to avoid divide by zero.
dimensionedScalar omega0_
 Lower limit for omega.
dimensionedScalar omegaSmall_
 Small omega value used to avoid divide by zero.
nearWallDist y_
 Near wall distance boundary field.

Detailed Description

Abstract base class for incompressible turbulence models.

Source files

Definition at line 64 of file RASModel.H.


Constructor & Destructor Documentation

RASModel ( const word &  type,
const volVectorField &  U,
const surfaceScalarField &  phi,
transportModel &  lamTransportModel 
)

Construct from components.

Definition at line 49 of file RASModel.C.

References RASModel::coeffDict_, Foam::endl(), Foam::Info, and Foam::type().

Here is the call graph for this function:

virtual ~RASModel (  )  [inline, virtual]

Destructor.

Definition at line 165 of file RASModel.H.


Member Function Documentation

void printCoeffs (  )  [protected, virtual]

Print model coefficients.

Definition at line 37 of file RASModel.C.

Referenced by LienLeschzinerLowRe::R(), qZeta::R(), RNGkEpsilon::R(), kOmegaSST::R(), realizableKE::R(), kOmega::R(), LamBremhorstKE::R(), LienCubicKELowRe::R(), LaunderSharmaKE::R(), kEpsilon::R(), and LienCubicKE::R().

Here is the caller graph for this function:

TypeName ( "RASModel"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
RASModel  ,
dictionary  ,
(const volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel)  ,
(U, phi, lamTransportModel)   
)

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

Return a reference to the selected RAS model.

Definition at line 87 of file RASModel.C.

const dimensionedScalar& k0 (  )  const [inline]

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

Definition at line 174 of file RASModel.H.

References RASModel::k0(), and RASModel::k0_.

Referenced by RASModel::k0().

Here is the call graph for this function:

Here is the caller graph for this function:

const dimensionedScalar& epsilon0 (  )  const [inline]

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

less than

Definition at line 183 of file RASModel.H.

const dimensionedScalar& epsilonSmall (  )  const [inline]

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

calculating nut

Definition at line 192 of file RASModel.H.

References RASModel::epsilonSmall(), and RASModel::epsilonSmall_.

Referenced by RASModel::epsilonSmall().

Here is the call graph for this function:

Here is the caller graph for this function:

const dimensionedScalar& omega0 (  )  const [inline]

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

less than

Definition at line 201 of file RASModel.H.

References RASModel::omega0(), and RASModel::omega0_.

Referenced by RASModel::omega0().

Here is the call graph for this function:

Here is the caller graph for this function:

const dimensionedScalar& omegaSmall (  )  const [inline]

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

calculating nut

Definition at line 210 of file RASModel.H.

References RASModel::omegaSmall_.

dimensionedScalar& k0 (  )  [inline]

Allow k0 to be changed.

Definition at line 216 of file RASModel.H.

References RASModel::k0_.

dimensionedScalar& epsilon0 (  )  [inline]

Allow epsilon0 to be changed.

Definition at line 222 of file RASModel.H.

References RASModel::epsilon0_.

dimensionedScalar& epsilonSmall (  )  [inline]

Allow epsilonSmall to be changed.

Definition at line 228 of file RASModel.H.

References RASModel::epsilonSmall_.

dimensionedScalar& omega0 (  )  [inline]

Allow omega0 to be changed.

Definition at line 234 of file RASModel.H.

References RASModel::omega0_.

dimensionedScalar& omegaSmall (  )  [inline]

Allow omegaSmall to be changed.

Definition at line 240 of file RASModel.H.

References RASModel::omegaSmall_.

const nearWallDist& y (  )  const [inline]

Return the near wall distances.

Definition at line 246 of file RASModel.H.

References RASModel::y_.

scalar yPlusLam ( const scalar  kappa,
const scalar  E 
) const

Calculate y+ at the edge of the laminar sublayer.

Definition at line 139 of file RASModel.C.

const dictionary& coeffDict (  )  const [inline]

Const access to the coefficients dictionary.

Definition at line 255 of file RASModel.H.

References RASModel::coeffDict_.

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

Return the turbulence viscosity.

Implements turbulenceModel.

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

Referenced by RASModel::nuEff().

Here is the caller graph for this function:

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

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

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

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

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

Return yPlus for the given patch.

Definition at line 152 of file RASModel.C.

References Foam::log(), and Foam::max().

Here is the call graph for this function:

void correct (  )  [pure virtual]

Solve the turbulence equations and correct the turbulence viscosity.

Implements turbulenceModel.

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

Definition at line 181 of file RASModel.C.


Member Data Documentation

Switch turbulence_ [protected]

Turbulence on/off flag.

Definition at line 75 of file RASModel.H.

Switch printCoeffs_ [protected]

Flag to print the model coeffs at run-time.

Definition at line 78 of file RASModel.H.

dictionary coeffDict_ [protected]

Model coefficients dictionary.

Definition at line 81 of file RASModel.H.

Referenced by RASModel::coeffDict(), and RASModel::RASModel().

dimensionedScalar k0_ [protected]

Lower limit of k.

Definition at line 84 of file RASModel.H.

Referenced by RASModel::k0().

dimensionedScalar epsilon0_ [protected]

Lower limit of epsilon.

Definition at line 87 of file RASModel.H.

Referenced by RASModel::epsilon0().

dimensionedScalar omega0_ [protected]

Lower limit for omega.

Definition at line 93 of file RASModel.H.

Referenced by RASModel::omega0().

dimensionedScalar omegaSmall_ [protected]

Small omega value used to avoid divide by zero.

Definition at line 96 of file RASModel.H.

Referenced by RASModel::omegaSmall(), and kOmega::R().

nearWallDist y_ [protected]

Near wall distance boundary field.

Definition at line 99 of file RASModel.H.

Referenced by RASModel::read(), and RASModel::y().


The documentation for this class was generated from the following files:
  • src/turbulenceModels/incompressible/RAS/RASModel/RASModel.H
  • src/turbulenceModels/incompressible/RAS/RASModel/RASModel.C
Copyright © 2000-2009 OpenCFD Ltd