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 volScalarField & rho () const
 Access function to the density field.
const volVectorField & U () const
 Access function to velocity field.
const surfaceScalarField & phi () const
 Access function to flux field.
const basicThermo & thermo () const
 Access function to the thermophysical properties model.
const dictionary & LESmodelProperties ()
 Access the dictionary which provides info. about choice of.
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.
tmp< volScalarField > mu () const
 Access function to laminar viscosity.
tmp< volScalarField > alpha () const
 Access function to laminar thermal conductivity.
virtual tmp< volTensorField > B () const =0
 Return B.
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 > muSgs () const =0
 Return the effective viscosity.
virtual tmp< volScalarField > muEff () const
 Return the effective viscosity.
virtual tmp< volScalarField > alphaEff () const =0
 Return the SGS thermal conductivity.
virtual tmp< fvVectorMatrix > divRhoB (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< LESmodel > New (const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermoPhysicalModel)
 Return a reference to the selected LES model.

Protected Attributes

const Time & runTime_
const fvMesh & mesh_

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