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

LESModel Class Reference

Base class for all incompressible flow LES SGS models. More...

Inheritance diagram for LESModel:
Collaboration diagram for LESModel:

List of all members.


Public Member Functions

 TypeName ("LESModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, LESModel, dictionary,(const volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel),(U, phi, lamTransportModel))
 LESModel (const word &type, const volVectorField &U, const surfaceScalarField &phi, transportModel &lamTransportModel)
 Construct from components.
virtual ~LESModel ()
 Destructor.
const dictionary & coeffDict () const
 Const access to the coefficients dictionary,.
const volScalarField & delta () const
 Access function to filter width.
const dimensionedScalar & k0 () const
 Return the value of k0 which k is not allowed to be less than.
dimensionedScalar & k0 ()
 Allow k0 to be changed.
virtual tmp< volScalarField > k () const =0
 Return the SGS turbulent kinetic energy.
virtual tmp< volScalarField > epsilon () const =0
 Return the SGS turbulent dissipation.
virtual tmp< volScalarField > nuSgs () const =0
 Return the SGS viscosity.
virtual tmp< volScalarField > nuEff () const
 Return the effective viscosity.
virtual tmp< volSymmTensorField > B () const =0
 Return the sub-grid stress tensor.
virtual tmp< volSymmTensorField > devBeff () const =0
 Return the deviatoric part of the effective sub-grid.
virtual tmp< fvVectorMatrix > divDevBeff (volVectorField &U) const =0
 Returns div(dev(Beff)).
virtual tmp< volScalarField > nut () const
 Return the turbulence viscosity.
virtual tmp< volSymmTensorField > R () const
 Return the Reynolds stress tensor.
virtual tmp< volSymmTensorField > devReff () const
 Return the effective stress tensor including the laminar stress.
virtual tmp< fvVectorMatrix > divDevReff (volVectorField &U) const
 Return the source term for the momentum equation.
void correct ()
 Correct Eddy-Viscosity and related properties.
virtual void correct (const tmp< volTensorField > &gradU)
 Correct Eddy-Viscosity and related properties.
virtual bool read ()=0
 Read LESProperties dictionary.

Static Public Member Functions

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

Protected Member Functions

virtual void printCoeffs ()
 Print model coefficients.

Protected Attributes

Switch printCoeffs_
dictionary coeffDict_
dimensionedScalar k0_
autoPtr< LESdelta > delta_

Detailed Description

Base class for all incompressible flow LES SGS models.

This class defines the basic interface for an incompressible flow SGS model, and encapsulates data of value to all possible models. In particular this includes references to all the dependent fields (U, phi), the physical viscosity nu, and the LESProperties dictionary, which contains the model selection and model coefficients.

Source files

Definition at line 67 of file LESModel.H.


Constructor & Destructor Documentation

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

Construct from components.

Definition at line 48 of file LESModel.C.

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

Here is the call graph for this function:

virtual ~LESModel (  )  [inline, virtual]

Destructor.

Definition at line 148 of file LESModel.H.


Member Function Documentation

void printCoeffs (  )  [protected, virtual]

Print model coefficients.

Definition at line 36 of file LESModel.C.

Referenced by Smagorinsky2::B(), and locDynOneEqEddy::correct().

Here is the caller graph for this function:

TypeName ( "LESModel"   ) 

Runtime type information.

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

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

Return a reference to the selected LES model.

Definition at line 82 of file LESModel.C.

References readIfPresent().

Here is the call graph for this function:

const dictionary& coeffDict (  )  const [inline]

Const access to the coefficients dictionary,.

which provides info. about choice of models, and all related data (particularly model coefficients).

Definition at line 159 of file LESModel.H.

References LESModel::coeffDict().

Referenced by LESModel::coeffDict().

Here is the call graph for this function:

Here is the caller graph for this function:

const dimensionedScalar& k0 (  )  const [inline]

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

Definition at line 171 of file LESModel.H.

References LESModel::delta_.

Referenced by dynOneEqEddy::read(), oneEqEddy::read(), and locDynOneEqEddy::read().

Here is the caller graph for this function:

dimensionedScalar& k0 (  )  [inline]

Allow k0 to be changed.

Definition at line 177 of file LESModel.H.

References LESModel::k0_.

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

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

Return the SGS turbulent dissipation.

Implements turbulenceModel.

Implemented in dynMixedSmagorinsky, GenEddyVisc, GenSGSStress, kOmegaSSTSAS, laminar, mixedSmagorinsky, scaleSimilarity, and SpalartAllmaras.

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

Return the SGS viscosity.

Implemented in GenEddyVisc, GenSGSStress, kOmegaSSTSAS, laminar, mixedSmagorinsky, and SpalartAllmaras.

Referenced by LESModel::nuEff(), and LESModel::nut().

Here is the caller graph for this function:

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

Return the effective viscosity.

Implements turbulenceModel.

Reimplemented in laminar.

Definition at line 193 of file LESModel.H.

References nu, LESModel::nuEff(), and LESModel::nuSgs().

Referenced by GenEddyVisc::correct(), SpalartAllmarasIDDES::dTilda(), LESModel::nuEff(), kOmegaSSTSAS::read(), Smagorinsky2::read(), SpalartAllmaras::read(), and GenSGSStress::read().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return the sub-grid stress tensor.

Implemented in dynMixedSmagorinsky, GenEddyVisc, GenSGSStress, kOmegaSSTSAS, laminar, mixedSmagorinsky, scaleSimilarity, Smagorinsky2, and SpalartAllmaras.

Referenced by LESModel::R().

Here is the caller graph for this function:

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

Return the deviatoric part of the effective sub-grid.

turbulence stress tensor including the laminar stress

Implemented in dynMixedSmagorinsky, GenEddyVisc, GenSGSStress, kOmegaSSTSAS, laminar, mixedSmagorinsky, scaleSimilarity, and SpalartAllmaras.

Referenced by LESModel::devReff().

Here is the caller graph for this function:

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

Returns div(dev(Beff)).

This is the additional term due to the filtering of the NSE.

Implemented in dynMixedSmagorinsky, GenEddyVisc, GenSGSStress, kOmegaSSTSAS, laminar, mixedSmagorinsky, scaleSimilarity, Smagorinsky2, and SpalartAllmaras.

Referenced by LESModel::divDevReff().

Here is the caller graph for this function:

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

Return the turbulence viscosity.

Implements turbulenceModel.

Definition at line 220 of file LESModel.H.

References LESModel::nuSgs(), and LESModel::nut().

Referenced by LESModel::nut().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual tmp<volSymmTensorField> R (  )  const [inline, virtual]

Return the Reynolds stress tensor.

Implements turbulenceModel.

Definition at line 226 of file LESModel.H.

References LESModel::B(), and LESModel::R().

Referenced by LESModel::R().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual tmp<volSymmTensorField> devReff (  )  const [inline, virtual]

Return the effective stress tensor including the laminar stress.

Implements turbulenceModel.

Definition at line 232 of file LESModel.H.

References LESModel::devBeff(), and LESModel::devReff().

Referenced by LESModel::devReff().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return the source term for the momentum equation.

Definition at line 238 of file LESModel.H.

References LESModel::divDevBeff(), and LESModel::divDevReff().

Referenced by LESModel::divDevReff().

Here is the call graph for this function:

Here is the caller graph for this function:

void correct (  )  [virtual]

Correct Eddy-Viscosity and related properties.

This calls correct(const tmp<volTensorField>& gradU) by supplying gradU calculated locally.

Implements turbulenceModel.

Definition at line 140 of file LESModel.C.

References correct(), and LESModel::delta_.

Here is the call graph for this function:

void correct ( const tmp< volTensorField > &  gradU  )  [virtual]


Member Data Documentation

Switch printCoeffs_ [protected]

Definition at line 77 of file LESModel.H.

dictionary coeffDict_ [protected]

Definition at line 78 of file LESModel.H.

Referenced by LESModel::delta(), and LESModel::LESModel().

dimensionedScalar k0_ [protected]

Definition at line 80 of file LESModel.H.

Referenced by LESModel::k0().

autoPtr<LESdelta> delta_ [protected]

Definition at line 82 of file LESModel.H.

Referenced by LESModel::correct(), and LESModel::k0().


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