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

GenEddyVisc Class Reference

General base class for all compressible 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 volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermoPhysicalModel)
 Construct from components.
virtual ~GenEddyVisc ()
 Destructor.
virtual tmp< volScalarFieldk () const
 Return SGS kinetic energy.
virtual tmp< volScalarFieldepsilon () const
 Return sub-grid disipation rate.
virtual tmp< volScalarFieldmuSgs () const
 Return viscosity.
virtual tmp< volScalarFieldalphaSgs () const
 Return thermal diffusivity.
virtual tmp< volScalarFieldalphaEff () const
 Return thermal diffusivity.
virtual tmp< volSymmTensorFieldB () const
 Return the sub-grid stress tensor.
virtual tmp< volSymmTensorFielddevRhoBeff () const
 Return the deviatoric part of the effective sub-grid.
virtual tmp< fvVectorMatrixdivDevRhoBeff (volVectorField &U) const
 Returns div(rho*dev(B)).
virtual void correct (const tmp< volTensorField > &gradU)
 Correct Eddy-Viscosity and related properties.
virtual bool read ()
 Read LESProperties dictionary.

Protected Attributes

dimensionedScalar ce_
dimensionedScalar Prt_
volScalarField k_
volScalarField muSgs_
volScalarField alphaSgs_

Detailed Description

General base class for all compressible 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 volScalarField rho,
const volVectorField U,
const surfaceScalarField phi,
const basicThermo thermoPhysicalModel 
)

Construct from components.

Definition at line 32 of file GenEddyVisc.C.

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

virtual ~GenEddyVisc (  )  [inline, virtual]

Destructor.

Definition at line 93 of file GenEddyVisc.H.


Member Function Documentation

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

Return SGS kinetic energy.

Implements LESModel.

Definition at line 100 of file GenEddyVisc.H.

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

Return sub-grid disipation rate.

Implements LESModel.

Definition at line 106 of file GenEddyVisc.H.

References GenEddyVisc::k_.

Referenced by GenEddyVisc::muSgs().

Here is the caller graph for this function:

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

Return viscosity.

Implements LESModel.

Definition at line 112 of file GenEddyVisc.H.

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

Referenced by GenEddyVisc::alphaSgs().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return thermal diffusivity.

Implements LESModel.

Definition at line 118 of file GenEddyVisc.H.

References GenEddyVisc::muSgs(), and GenEddyVisc::muSgs_.

Referenced by GenEddyVisc::alphaEff().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return thermal diffusivity.

Implements LESModel.

Definition at line 124 of file GenEddyVisc.H.

References GenEddyVisc::alphaSgs(), and GenEddyVisc::alphaSgs_.

Here is the call graph for this function:

tmp< volSymmTensorField > B (  )  const [virtual]

Return the sub-grid stress tensor.

Implements LESModel.

Definition at line 107 of file GenEddyVisc.C.

tmp< volSymmTensorField > devRhoBeff (  )  const [virtual]

Return the deviatoric part of the effective sub-grid.

turbulence stress tensor including the laminar stress

Implements LESModel.

Definition at line 113 of file GenEddyVisc.C.

References Foam::dev(), Foam::fvc::grad(), Foam::I, GenEddyVisc::k_, GenEddyVisc::muSgs_, rho, Foam::twoSymm(), and U.

Here is the call graph for this function:

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

Returns div(rho*dev(B)).

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

Implements LESModel.

Definition at line 119 of file GenEddyVisc.C.

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

Correct Eddy-Viscosity and related properties.

Reimplemented from LESModel.

Reimplemented in dynOneEqEddy, lowReOneEqEddy, oneEqEddy, and Smagorinsky.

Definition at line 128 of file GenEddyVisc.C.

References Foam::dev2(), Foam::fvc::div(), Foam::fvc::grad(), Foam::fvm::laplacian(), muEff(), and Foam::T().

Here is the call graph for this function:

bool read (  )  [virtual]

Read LESProperties dictionary.

Implements LESModel.

Reimplemented in dynOneEqEddy, lowReOneEqEddy, oneEqEddy, and Smagorinsky.

Definition at line 134 of file GenEddyVisc.C.


Member Data Documentation

dimensionedScalar ce_ [protected]

Definition at line 67 of file GenEddyVisc.H.

Referenced by GenEddyVisc::muSgs().

dimensionedScalar Prt_ [protected]

Definition at line 68 of file GenEddyVisc.H.

Referenced by oneEqEddy::oneEqEddy().

volScalarField muSgs_ [protected]

volScalarField alphaSgs_ [protected]

Definition at line 75 of file GenEddyVisc.H.

Referenced by GenEddyVisc::alphaEff(), and oneEqEddy::oneEqEddy().


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd