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

GenEddyVisc Class Reference

General base class for all incompressible models that can be implemented as an eddy viscosity, i.e. algebraic and one-equation models. More...

Inheritance diagram for GenEddyVisc:
Collaboration diagram for GenEddyVisc:

List of all members.


Public Member Functions

 GenEddyVisc (const volVectorField &U, const surfaceScalarField &phi, transportModel &transport)
 Construct from components.
virtual ~GenEddyVisc ()
 Destructor.
virtual tmp< volScalarField > k () const =0
 Return SGS kinetic energy.
virtual tmp< volScalarField > epsilon () const
 Return sub-grid disipation rate.
virtual tmp< volScalarField > nuSgs () const
 Return the SGS viscosity.
virtual tmp< volSymmTensorField > B () const
 Return the sub-grid stress tensor.
virtual tmp< volSymmTensorField > devBeff () const
 Return the effective sub-grid turbulence stress tensor.
virtual tmp< fvVectorMatrix > divDevBeff (volVectorField &U) const
 Return the deviatoric part of the effective sub-grid.
virtual void correct (const tmp< volTensorField > &gradU)
 Correct Eddy-Viscosity and related properties.
virtual bool read ()
 Read LESProperties dictionary.

Protected Attributes

dimensionedScalar ce_
volScalarField nuSgs_

Detailed Description

General base class for all incompressible models that can be implemented as an eddy viscosity, i.e. algebraic and one-equation models.

Contains fields for k (SGS turbulent kinetic energy), gamma (modelled viscosity) and epsilon (SGS dissipation).

Source files

Definition at line 52 of file GenEddyVisc.H.


Constructor & Destructor Documentation

GenEddyVisc ( const volVectorField &  U,
const surfaceScalarField &  phi,
transportModel &  transport 
)

Construct from components.

Definition at line 32 of file GenEddyVisc.C.

References IOobject::AUTO_WRITE, IOobject::MUST_READ, phi, and U.

virtual ~GenEddyVisc (  )  [inline, virtual]

Destructor.

Definition at line 84 of file GenEddyVisc.H.


Member Function Documentation

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

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

Return sub-grid disipation rate.

Implements LESModel.

Reimplemented in dynMixedSmagorinsky, and mixedSmagorinsky.

Definition at line 94 of file GenEddyVisc.H.

Referenced by GenEddyVisc::nuSgs().

Here is the caller graph for this function:

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

Return the SGS viscosity.

Implements LESModel.

Reimplemented in mixedSmagorinsky.

Definition at line 100 of file GenEddyVisc.H.

References GenEddyVisc::ce_, LESModel::delta(), GenEddyVisc::epsilon(), k(), and Foam::sqrt().

Here is the call graph for this function:

tmp< volSymmTensorField > B (  )  const [virtual]

Return the sub-grid stress tensor.

Implements LESModel.

Reimplemented in dynMixedSmagorinsky, mixedSmagorinsky, and Smagorinsky2.

Definition at line 69 of file GenEddyVisc.C.

tmp< volSymmTensorField > devBeff (  )  const [virtual]

Return the effective sub-grid turbulence stress tensor.

including the laminar stress

Implements LESModel.

Reimplemented in dynMixedSmagorinsky, and mixedSmagorinsky.

Definition at line 75 of file GenEddyVisc.C.

References Foam::fvc::grad(), Foam::I, k(), GenEddyVisc::nuSgs_, Foam::twoSymm(), and U.

Here is the call graph for this function:

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

Return the deviatoric part of the effective sub-grid.

turbulence stress tensor including the laminar stress

Implements LESModel.

Reimplemented in dynMixedSmagorinsky, mixedSmagorinsky, and Smagorinsky2.

Definition at line 81 of file GenEddyVisc.C.

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

Correct Eddy-Viscosity and related properties.

Reimplemented from LESModel.

Reimplemented in dynMixedSmagorinsky, dynOneEqEddy, dynSmagorinsky, locDynOneEqEddy, mixedSmagorinsky, oneEqEddy, Smagorinsky, and spectEddyVisc.

Definition at line 90 of file GenEddyVisc.C.

References Foam::dev(), Foam::fvc::div(), Foam::fvc::grad(), Foam::fvm::laplacian(), LESModel::nuEff(), and Foam::T().

Here is the call graph for this function:

bool read (  )  [virtual]

Read LESProperties dictionary.

Implements LESModel.

Reimplemented in dynMixedSmagorinsky, dynOneEqEddy, dynSmagorinsky, locDynOneEqEddy, mixedSmagorinsky, oneEqEddy, Smagorinsky, Smagorinsky2, and spectEddyVisc.

Definition at line 96 of file GenEddyVisc.C.


Member Data Documentation

dimensionedScalar ce_ [protected]

Definition at line 65 of file GenEddyVisc.H.

Referenced by GenEddyVisc::nuSgs().

volScalarField nuSgs_ [protected]


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