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 compressible models that can be implemented as an eddy viscosity, i.e. algebraic and one-equation models. More...

#include <compressibleLESModels/GenEddyVisc.H>


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

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< volScalarField >  k () const
 Return SGS kinetic energy.
virtual tmp< volScalarField >  epsilon () const
 Return sub-grid disipation rate.
virtual tmp< volScalarField >  muSgs () const
 Return viscosity.
virtual tmp< volScalarField >  alphaSgs () const
 Return thermal diffusivity.
virtual tmp< volScalarField >  alphaEff () const
 Return thermal diffusivity.
virtual tmp< volSymmTensorField >  B () const
 Return the sub-grid stress tensor.
virtual tmp< volSymmTensorField >  devRhoBeff () const
 Return the deviatoric part of the effective sub-grid.
virtual tmp< fvVectorMatrix >  divDevRhoBeff (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_

Constructor & Destructor Documentation

GenEddyVisc ( const volScalarField &   rho,
const volVectorField &   U,
const surfaceScalarField &   phi,
const basicThermo &   thermoPhysicalModel  
)

Construct from components.

Definition at line 40 of file GenEddyVisc.C.

virtual ~GenEddyVisc (  ) [inline, virtual]

Destructor.

Definition at line 98 of file GenEddyVisc.H.


Member Function Documentation

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

Return SGS kinetic energy.

Implements LESModel.

Definition at line 105 of file GenEddyVisc.H.

References GenEddyVisc::k_.

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

Return sub-grid disipation rate.

Implements LESModel.

Definition at line 111 of file GenEddyVisc.H.

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

Referenced by GenEddyVisc::epsilon().

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

Return viscosity.

Implements LESModel.

Definition at line 117 of file GenEddyVisc.H.

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

Referenced by GenEddyVisc::muSgs().

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

Return thermal diffusivity.

Implements LESModel.

Definition at line 123 of file GenEddyVisc.H.

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

Referenced by GenEddyVisc::alphaSgs().

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

Return thermal diffusivity.

Implements LESModel.

Definition at line 129 of file GenEddyVisc.H.

References turbulenceModel::alpha(), GenEddyVisc::alphaEff(), and GenEddyVisc::alphaSgs_.

Referenced by GenEddyVisc::alphaEff().

tmp< volSymmTensorField > B (  ) const [virtual]

Return the sub-grid stress tensor.

Implements LESModel.

Definition at line 115 of file GenEddyVisc.C.

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

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 121 of file GenEddyVisc.C.

References Foam::dev(), Foam::fvc::grad(), muEff(), Foam::twoSymm(), and U.

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 127 of file GenEddyVisc.C.

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

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 136 of file GenEddyVisc.C.

References correct().

bool read (  ) [virtual]

Read LESProperties dictionary.

Implements LESModel.

Reimplemented in dynOneEqEddy, lowReOneEqEddy, oneEqEddy, and Smagorinsky.

Definition at line 142 of file GenEddyVisc.C.


Member Data Documentation

dimensionedScalar ce_ [protected]

Definition at line 72 of file GenEddyVisc.H.

Referenced by GenEddyVisc::epsilon().

dimensionedScalar Prt_ [protected]

Definition at line 73 of file GenEddyVisc.H.

volScalarField k_ [protected]

Definition at line 78 of file GenEddyVisc.H.

Referenced by GenEddyVisc::epsilon(), and GenEddyVisc::k().

volScalarField muSgs_ [protected]
volScalarField alphaSgs_ [protected]

Definition at line 80 of file GenEddyVisc.H.

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


The documentation for this class was generated from the following files: