OpenFOAM logo
Open Source CFD Toolkit

LESmodel Class Reference

Inheritance diagram for LESmodel:

Inheritance graph
[legend]
Collaboration diagram for LESmodel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TypeName ("LESmodel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, LESmodel, dictionary,(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermoPhysicalModel),(rho, U, phi, thermoPhysicalModel))
 LESmodel (const word &type, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermoPhysicalModel)
 Construct from components.
virtual ~LESmodel ()
const volScalarFieldrho () const
 Access function to the density field.
const volVectorFieldU () const
 Access function to velocity field.
const surfaceScalarFieldphi () const
 Access function to flux field.
const basicThermothermo () const
 Access function to the thermophysical properties model.
const dictionaryLESmodelProperties ()
 Access the dictionary which provides info. about choice of.
const volScalarFielddelta () const
 Access function to filter width.
const dimensionedScalark0 () const
 Return the value of k0 which k is not allowed to be less than.
dimensionedScalark0 ()
 Allow k0 to be changed.
tmp< volScalarFieldmu () const
 Access function to laminar viscosity.
tmp< volScalarFieldalpha () const
 Access function to laminar thermal conductivity.
virtual tmp< volTensorFieldB () const =0
 Return B.
virtual tmp< volScalarFieldk () const =0
 Return the SGS turbulent kinetic energy.
virtual tmp< volScalarFieldepsilon () const =0
 Return the SGS turbulent dissipation.
virtual tmp< volScalarFieldmuSgs () const =0
 Return the effective viscosity.
virtual tmp< volScalarFieldmuEff () const
 Return the effective viscosity.
virtual tmp< volScalarFieldalphaEff () const =0
 Return the SGS thermal conductivity.
virtual tmp< fvVectorMatrixdivRhoB (volVectorField &U) const =0
 Returns div(B).
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 turbulenceProperties dictionary.

Static Public Member Functions

autoPtr< LESmodelNew (const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermoPhysicalModel)
 Return a reference to the selected LES model.

Protected Attributes

const TimerunTime_
const fvMeshmesh_

Constructor & Destructor Documentation

LESmodel const word type,
const volScalarField rho,
const volVectorField U,
const surfaceScalarField phi,
const basicThermo thermoPhysicalModel
 

Construct from components.

virtual ~LESmodel  )  [inline, virtual]
 

Definition at line 160 of file LESmodel.H.

References Foam::volScalarField.


Member Function Documentation

tmp<volScalarField> alpha  )  const [inline]
 

Access function to laminar thermal conductivity.

Definition at line 226 of file LESmodel.H.

References Foam::volScalarField.

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

Return the SGS thermal conductivity.

Implemented in GenEddyVisc, GenSGSStress, and SpalartAllmaras.

virtual tmp<volTensorField> B  )  const [pure virtual]
 

Return B.

Implemented in GenEddyVisc, GenSGSStress, and SpalartAllmaras.

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

Correct Eddy-Viscosity and related properties.

Reimplemented in DeardorffDiffStress, dynOneEqEddy, GenEddyVisc, GenSGSStress, lowReOneEqEddy, oneEqEddy, Smagorinsky, and SpalartAllmaras.

void correct  ) 
 

Correct Eddy-Viscosity and related properties.

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

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

const volScalarField& delta  )  const [inline]
 

Access function to filter width.

Definition at line 202 of file LESmodel.H.

virtual tmp<fvVectorMatrix> divRhoB volVectorField U  )  const [pure virtual]
 

Returns div(B).

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

Implemented in GenEddyVisc, GenSGSStress, and SpalartAllmaras.

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

Return the SGS turbulent dissipation.

Implemented in GenEddyVisc, GenSGSStress, and SpalartAllmaras.

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

Return the SGS turbulent kinetic energy.

Implemented in GenEddyVisc, GenSGSStress, and SpalartAllmaras.

dimensionedScalar& k0  )  [inline]
 

Allow k0 to be changed.

Definition at line 214 of file LESmodel.H.

const dimensionedScalar& k0  )  const [inline]
 

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

Definition at line 208 of file LESmodel.H.

const dictionary& LESmodelProperties  )  [inline]
 

Access the dictionary which provides info. about choice of.

models, and all related data (particularly model coefficients).

Definition at line 196 of file LESmodel.H.

tmp<volScalarField> mu  )  const [inline]
 

Access function to laminar viscosity.

Definition at line 220 of file LESmodel.H.

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

Return the effective viscosity.

Definition at line 245 of file LESmodel.H.

References Foam::volVectorField.

virtual tmp<volScalarField> muSgs  )  const [pure virtual]
 

Return the effective viscosity.

Implemented in GenEddyVisc, GenSGSStress, and SpalartAllmaras.

autoPtr<LESmodel> New const volScalarField rho,
const volVectorField U,
const surfaceScalarField phi,
const basicThermo thermoPhysicalModel
[static]
 

Return a reference to the selected LES model.

const surfaceScalarField& phi  )  const [inline]
 

Access function to flux field.

Definition at line 181 of file LESmodel.H.

virtual bool read  )  [pure virtual]
 

Read turbulenceProperties dictionary.

Reimplemented from regIOobject.

Implemented in DeardorffDiffStress, dynOneEqEddy, GenEddyVisc, GenSGSStress, lowReOneEqEddy, oneEqEddy, Smagorinsky, and SpalartAllmaras.

const volScalarField& rho  )  const [inline]
 

Access function to the density field.

Definition at line 169 of file LESmodel.H.

const basicThermo& thermo  )  const [inline]
 

Access function to the thermophysical properties model.

Definition at line 187 of file LESmodel.H.

TypeName "LESmodel"   ) 
 

Runtime type information.

const volVectorField& U  )  const [inline]
 

Access function to velocity field.

Definition at line 175 of file LESmodel.H.


Member Data Documentation

const fvMesh& mesh_ [protected]
 

Definition at line 83 of file LESmodel.H.

const Time& runTime_ [protected]
 

Definition at line 82 of file LESmodel.H.


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