FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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...

#include <incompressibleLESModels/GenEddyVisc.H>


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 57 of file GenEddyVisc.H.

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_

Constructor & Destructor Documentation

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

Construct from components.

Definition at line 40 of file GenEddyVisc.C.

virtual ~GenEddyVisc (  ) [inline, virtual]

Destructor.

Definition at line 89 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 incompressible::LESModel.

Reimplemented in mixedSmagorinsky.

Definition at line 99 of file GenEddyVisc.H.

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

Referenced by mixedSmagorinsky::epsilon().

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

Return the SGS viscosity.

Implements incompressible::LESModel.

Reimplemented in mixedSmagorinsky.

Definition at line 105 of file GenEddyVisc.H.

References GenEddyVisc::nuSgs_.

tmp< volSymmTensorField > B (  ) const [virtual]

Return the sub-grid stress tensor.

Implements incompressible::LESModel.

Reimplemented in mixedSmagorinsky, and Smagorinsky2.

Definition at line 77 of file GenEddyVisc.C.

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

Referenced by mixedSmagorinsky::B().

tmp< volSymmTensorField > devBeff (  ) const [virtual]

Return the effective sub-grid turbulence stress tensor.

including the laminar stress

Implements incompressible::LESModel.

Reimplemented in mixedSmagorinsky.

Definition at line 83 of file GenEddyVisc.C.

References Foam::dev(), Foam::fvc::grad(), incompressible::LESModel::nuEff(), Foam::twoSymm(), and incompressible::turbulenceModel::U().

Referenced by mixedSmagorinsky::devBeff().

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

Return the deviatoric part of the effective sub-grid.

turbulence stress tensor including the laminar stress

Implements incompressible::LESModel.

Reimplemented in mixedSmagorinsky, and Smagorinsky2.

Definition at line 89 of file GenEddyVisc.C.

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

Referenced by mixedSmagorinsky::divDevBeff().

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

Correct Eddy-Viscosity and related properties.

Reimplemented from incompressible::LESModel.

Reimplemented in dynOneEqEddy, homogeneousDynSmagorinsky, locDynOneEqEddy, mixedSmagorinsky, oneEqEddy, Smagorinsky, and spectEddyVisc.

Definition at line 98 of file GenEddyVisc.C.

References incompressible::LESModel::correct().


Member Data Documentation


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