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>
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).
Definition at line 57 of file GenEddyVisc.H.
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_ |
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.
virtual tmp<volScalarField> k | ( | ) | const [pure virtual]
|
Return SGS kinetic energy.
Implements incompressible::LESModel.
Implemented in dynOneEqEddy, homogeneousDynSmagorinsky, locDynOneEqEddy, mixedSmagorinsky, oneEqEddy, Smagorinsky, and spectEddyVisc.
Referenced by GenEddyVisc::B(), and GenEddyVisc::epsilon().
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().
bool read | ( | ) | [virtual]
|
Read LESProperties dictionary.
Implements incompressible::LESModel.
Reimplemented in dynOneEqEddy, homogeneousDynSmagorinsky, locDynOneEqEddy, mixedSmagorinsky, oneEqEddy, Smagorinsky, Smagorinsky2, and spectEddyVisc.
Definition at line 104 of file GenEddyVisc.C.
References GenEddyVisc::ce_, incompressible::LESModel::coeffDict(), and dimensioned< Type >::readIfPresent().
Referenced by spectEddyVisc::read(), locDynOneEqEddy::read(), homogeneousDynSmagorinsky::read(), Smagorinsky::read(), oneEqEddy::read(), and dynOneEqEddy::read().
dimensionedScalar ce_ [protected]
|
Definition at line 70 of file GenEddyVisc.H.
Referenced by oneEqEddy::correct(), GenEddyVisc::epsilon(), Smagorinsky::k(), and GenEddyVisc::read().
volScalarField nuSgs_ [protected]
|
Definition at line 72 of file GenEddyVisc.H.
Referenced by Smagorinsky2::B(), GenEddyVisc::B(), locDynOneEqEddy::correct(), oneEqEddy::correct(), dynOneEqEddy::correct(), locDynOneEqEddy::DkEff(), oneEqEddy::DkEff(), dynOneEqEddy::DkEff(), mixedSmagorinsky::nuSgs(), and GenEddyVisc::nuSgs().