Loading...
Searching...
No Matches
dynamicKEqn< BasicTurbulenceModel > Class Template Reference

Dynamic one equation eddy-viscosity model. More...

#include <dynamicKEqn.H>

Inheritance diagram for dynamicKEqn< BasicTurbulenceModel >:
Collaboration diagram for dynamicKEqn< BasicTurbulenceModel >:

Public Types

typedef BasicTurbulenceModel::alphaField alphaField
typedef BasicTurbulenceModel::rhoField rhoField
typedef BasicTurbulenceModel::transportModel transportModel
Public Types inherited from LESeddyViscosity< BasicTurbulenceModel >
typedef BasicTurbulenceModel::alphaField alphaField
typedef BasicTurbulenceModel::rhoField rhoField
typedef BasicTurbulenceModel::transportModel transportModel
Public Types inherited from eddyViscosity< LESModel< BasicTurbulenceModel > >
typedef BasicTurbulenceModel::alphaField alphaField
typedef BasicTurbulenceModel::rhoField rhoField
typedef BasicTurbulenceModel::transportModel transportModel
Public Types inherited from linearViscousStress< BasicTurbulenceModel >
typedef BasicTurbulenceModel::alphaField alphaField
typedef BasicTurbulenceModel::rhoField rhoField
typedef BasicTurbulenceModel::transportModel transportModel

Public Member Functions

 TypeName ("dynamicKEqn")
 Runtime type information.
 dynamicKEqn (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
 Construct from components.
virtual ~dynamicKEqn ()=default
 Destructor.
virtual bool read ()
 Read model coefficients if they have changed.
virtual tmp< volScalarFieldk () const
 Return SGS kinetic energy.
tmp< volScalarFieldDkEff () const
 Return the effective diffusivity for k.
virtual void correct ()
 Correct Eddy-Viscosity and related properties.
Public Member Functions inherited from LESeddyViscosity< BasicTurbulenceModel >
 LESeddyViscosity (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
 Construct from components.
virtual ~LESeddyViscosity ()=default
 Destructor.
Public Member Functions inherited from eddyViscosity< LESModel< BasicTurbulenceModel > >
 eddyViscosity (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct from components.
virtual ~eddyViscosity ()=default
 Destructor.
virtual tmp< volScalarFieldnut () const
 Return the turbulence viscosity.
virtual tmp< volSymmTensorFieldR () const
 Return the Reynolds stress tensor.
virtual void validate ()
 Validate the turbulence fields after construction.
Public Member Functions inherited from linearViscousStress< BasicTurbulenceModel >
 linearViscousStress (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct from components.
virtual ~linearViscousStress ()=default
 Destructor.
virtual tmp< volSymmTensorFielddevRhoReff () const
 Return the effective stress tensor.
virtual tmp< volSymmTensorFielddevRhoReff (const volVectorField &U) const
 Return the effective stress tensor based on a given velocity field.
virtual tmp< fvVectorMatrixdivDevRhoReff (volVectorField &U) const
 Return the source term for the momentum equation.
virtual tmp< fvVectorMatrixdivDevRhoReff (const volScalarField &rho, volVectorField &U) const
 Return the source term for the momentum equation.

Protected Member Functions

volScalarField Ck (const volSymmTensorField &D, const volScalarField &KK) const
 Calculate Ck by filtering the velocity field U.
volScalarField Ce (const volSymmTensorField &D, const volScalarField &KK) const
 Calculate Ce by filtering the velocity field U.
volScalarField Ce () const
void correctNut (const volSymmTensorField &D, const volScalarField &KK)
 Update sub-grid eddy-viscosity.
virtual void correctNut ()
virtual tmp< fvScalarMatrixkSource () const

Protected Attributes

volScalarField k_
simpleFilter simpleFilter_
autoPtr< LESfilterfilterPtr_
LESfilterfilter_
Protected Attributes inherited from eddyViscosity< LESModel< BasicTurbulenceModel > >
volScalarField nut_

Detailed Description

template<class BasicTurbulenceModel>
class Foam::LESModels::dynamicKEqn< BasicTurbulenceModel >

Dynamic one equation eddy-viscosity model.

Eddy viscosity SGS model using a modeled balance equation to simulate the behaviour of k in which a dynamic procedure is applied to evaluate the coefficients.

Reference:

    Kim, W and Menon, S. (1995).
    A new dynamic one-equation subgrid-scale model for
    large eddy simulation.
    In 33rd Aerospace Sciences Meeting and Exhibit, Reno, NV, 1995.

There are no default model coefficients but the filter used for KK must be supplied, e.g.

    dynamicKEqnCoeffs
    {
        filter simple;
    }
Source files

Definition at line 75 of file dynamicKEqn.H.

Member Typedef Documentation

◆ alphaField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::alphaField alphaField

Definition at line 146 of file dynamicKEqn.H.

◆ rhoField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 147 of file dynamicKEqn.H.

◆ transportModel

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 148 of file dynamicKEqn.H.

Constructor & Destructor Documentation

◆ dynamicKEqn()

template<class BasicTurbulenceModel>
dynamicKEqn ( const alphaField & alpha,
const rhoField & rho,
const volVectorField & U,
const surfaceScalarField & alphaRhoPhi,
const surfaceScalarField & phi,
const transportModel & transport,
const word & propertiesName = turbulenceModel::propertiesName,
const word & type = typeName )

Construct from components.

Definition at line 145 of file dynamicKEqn.C.

References alpha, Foam::bound(), filter_, filterPtr_, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, k_, Foam::New(), phi, rho, simpleFilter_, timeName, and U.

Here is the call graph for this function:

◆ ~dynamicKEqn()

template<class BasicTurbulenceModel>
virtual ~dynamicKEqn ( )
virtualdefault

Destructor.

Member Function Documentation

◆ Ck()

template<class BasicTurbulenceModel>
volScalarField Ck ( const volSymmTensorField & D,
const volScalarField & KK ) const
protected

Calculate Ck by filtering the velocity field U.

Definition at line 35 of file dynamicKEqn.C.

References Ck(), D, delta, Foam::dev(), DimensionedField< Type, GeoMesh >::dimensions(), filter_, Foam::mag(), Foam::magSqr(), Foam::max(), simpleFilter_, Foam::sqr(), Foam::sqrt(), and Foam::Zero.

Referenced by Ck(), and correctNut().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Ce() [1/2]

template<class BasicTurbulenceModel>
volScalarField Ce ( const volSymmTensorField & D,
const volScalarField & KK ) const
protected

Calculate Ce by filtering the velocity field U.

Definition at line 72 of file dynamicKEqn.C.

References Ce(), D, delta, filter_, Foam::mag(), Foam::magSqr(), Foam::pow(), and simpleFilter_.

Referenced by Ce(), Ce(), and correct().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Ce() [2/2]

template<class BasicTurbulenceModel>
volScalarField Ce ( ) const
protected

Definition at line 90 of file dynamicKEqn.C.

References Ce(), GeometricField< Type, PatchField, GeoMesh >::clamp_min(), D, Foam::devSymm(), filter_, Foam::fvc::grad(), and Foam::magSqr().

Here is the call graph for this function:

◆ correctNut() [1/2]

template<class BasicTurbulenceModel>
void correctNut ( const volSymmTensorField & D,
const volScalarField & KK )
protected

Update sub-grid eddy-viscosity.

Definition at line 105 of file dynamicKEqn.C.

References Ck(), optionList::correct(), D, delta, k_, options::New(), eddyViscosity< LESModel< BasicTurbulenceModel > >::nut_, and Foam::sqrt().

Referenced by correct(), and correctNut().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ correctNut() [2/2]

template<class BasicTurbulenceModel>
void correctNut ( )
protectedvirtual

Implements eddyViscosity< LESModel< BasicTurbulenceModel > >.

Definition at line 120 of file dynamicKEqn.C.

References correctNut(), filter_, Foam::fvc::grad(), Foam::magSqr(), and Foam::symm().

Here is the call graph for this function:

◆ kSource()

template<class BasicTurbulenceModel>
tmp< fvScalarMatrix > kSource ( ) const
protectedvirtual

Definition at line 132 of file dynamicKEqn.C.

References Foam::dimTime, Foam::dimVolume, k_, and tmp< T >::New().

Referenced by correct().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

template<class BasicTurbulenceModel>
TypeName ( "dynamicKEqn< BasicTurbulenceModel >" )

Runtime type information.

◆ read()

template<class BasicTurbulenceModel>
bool read ( )
virtual

Read model coefficients if they have changed.

Reimplemented from LESeddyViscosity< BasicTurbulenceModel >.

Definition at line 198 of file dynamicKEqn.C.

References filter_, and LESeddyViscosity< BasicTurbulenceModel >::read().

Here is the call graph for this function:

◆ k()

template<class BasicTurbulenceModel>
virtual tmp< volScalarField > k ( ) const
inlinevirtual

Return SGS kinetic energy.

Implements eddyViscosity< LESModel< BasicTurbulenceModel > >.

Definition at line 191 of file dynamicKEqn.H.

◆ DkEff()

template<class BasicTurbulenceModel>
tmp< volScalarField > DkEff ( ) const
inline

Return the effective diffusivity for k.

Definition at line 199 of file dynamicKEqn.H.

Referenced by correct().

Here is the caller graph for this function:

◆ correct()

Member Data Documentation

◆ k_

template<class BasicTurbulenceModel>
volScalarField k_
protected

Definition at line 98 of file dynamicKEqn.H.

Referenced by correct(), correctNut(), dynamicKEqn(), and kSource().

◆ simpleFilter_

template<class BasicTurbulenceModel>
simpleFilter simpleFilter_
protected

Definition at line 103 of file dynamicKEqn.H.

Referenced by Ce(), Ck(), and dynamicKEqn().

◆ filterPtr_

template<class BasicTurbulenceModel>
autoPtr<LESfilter> filterPtr_
protected

Definition at line 104 of file dynamicKEqn.H.

Referenced by dynamicKEqn().

◆ filter_

template<class BasicTurbulenceModel>
LESfilter& filter_
protected

Definition at line 105 of file dynamicKEqn.H.

Referenced by Ce(), Ce(), Ck(), correct(), correctNut(), dynamicKEqn(), and read().


The documentation for this class was generated from the following files:
  • src/TurbulenceModels/turbulenceModels/LES/dynamicKEqn/dynamicKEqn.H
  • src/TurbulenceModels/turbulenceModels/LES/dynamicKEqn/dynamicKEqn.C