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

Realizable k-epsilon turbulence model for incompressible and compressible flows. More...

#include <realizableKE.H>

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

Public Types

typedef BasicTurbulenceModel::alphaField alphaField
typedef BasicTurbulenceModel::rhoField rhoField
typedef BasicTurbulenceModel::transportModel transportModel
Public Types inherited from eddyViscosity< RASModel< 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 ("realizableKE")
 Runtime type information.
 realizableKE (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 ~realizableKE ()=default
 Destructor.
virtual bool read ()
 Re-read model coefficients if they have changed.
tmp< volScalarFieldDkEff () const
 Return the effective diffusivity for k.
tmp< volScalarFieldDepsilonEff () const
 Return the effective diffusivity for epsilon.
virtual tmp< volScalarFieldk () const
 Return the turbulence kinetic energy.
virtual tmp< volScalarFieldepsilon () const
 Return the turbulence kinetic energy dissipation rate.
virtual void correct ()
 Solve the turbulence equations and correct the turbulence viscosity.
Public Member Functions inherited from eddyViscosity< RASModel< 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

tmp< volScalarFieldrCmu (const volTensorField &gradU, const volScalarField &S2, const volScalarField &magS)
virtual void correctNut (const volTensorField &gradU, const volScalarField &S2, const volScalarField &magS)
virtual void correctNut ()
virtual tmp< fvScalarMatrixkSource () const
virtual tmp< fvScalarMatrixepsilonSource () const

Protected Attributes

dimensionedScalar A0_
dimensionedScalar C2_
dimensionedScalar sigmak_
dimensionedScalar sigmaEps_
volScalarField k_
volScalarField epsilon_
Protected Attributes inherited from eddyViscosity< RASModel< BasicTurbulenceModel > >
volScalarField nut_

Detailed Description

template<class BasicTurbulenceModel>
class Foam::RASModels::realizableKE< BasicTurbulenceModel >

Realizable k-epsilon turbulence model for incompressible and compressible flows.

References:

    Shih, T. H., Liou, W. W., Shabbir, A., Yang, Z., & Zhu, J. (1994).
    A new k-epsilon eddy viscosity model for high Reynolds number
    turbulent flows: Model development and validation.
    NASA STI/Recon Technical Report N, 95, 11442.

    Shih, T. H., Liou, W. W., Shabbir, A., Yang, Z., & Zhu, J. (1995).
    A New k-epsilon Eddy Viscosity Model for High Reynolds Number
    Turbulent Flows.
    Computers and Fluids, 24(3), 227-238.

The default model coefficients are

    realizableKECoeffs
    {
        A0          4.0;
        C2          1.9;
        sigmak      1.0;
        sigmaEps    1.2;
    }
Source files

Definition at line 79 of file realizableKE.H.

Member Typedef Documentation

◆ alphaField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::alphaField alphaField

Definition at line 125 of file realizableKE.H.

◆ rhoField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 126 of file realizableKE.H.

◆ transportModel

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 127 of file realizableKE.H.

Constructor & Destructor Documentation

◆ realizableKE()

template<class BasicTurbulenceModel>
realizableKE ( 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 119 of file realizableKE.C.

References A0_, alpha, Foam::bound(), C2_, eddyViscosity< RASModel< BasicTurbulenceModel > >::eddyViscosity(), epsilon_, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, k_, phi, rho, sigmaEps_, sigmak_, timeName, and U.

Here is the call graph for this function:

◆ ~realizableKE()

template<class BasicTurbulenceModel>
virtual ~realizableKE ( )
virtualdefault

Destructor.

Member Function Documentation

◆ rCmu()

template<class BasicTurbulenceModel>
tmp< volScalarField > rCmu ( const volTensorField & gradU,
const volScalarField & S2,
const volScalarField & magS )
protected

Definition at line 36 of file realizableKE.C.

References A0_, Foam::acos(), Foam::clamp(), tmp< T >::clear(), Foam::cos(), Foam::devSymm(), epsilon_, k_, Foam::magSqr(), phis(), Foam::skew(), Foam::sqrt(), and Us.

Referenced by correctNut().

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

◆ correctNut() [1/2]

template<class BasicTurbulenceModel>
void correctNut ( const volTensorField & gradU,
const volScalarField & S2,
const volScalarField & magS )
protectedvirtual

Definition at line 69 of file realizableKE.C.

References optionList::correct(), epsilon_, k_, options::New(), eddyViscosity< RASModel< BasicTurbulenceModel > >::nut_, rCmu(), and Foam::sqr().

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

Definition at line 85 of file realizableKE.C.

References correctNut(), Foam::devSymm(), Foam::fvc::grad(), Foam::magSqr(), and Foam::sqrt().

Here is the call graph for this function:

◆ kSource()

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

Definition at line 95 of file realizableKE.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:

◆ epsilonSource()

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

Definition at line 106 of file realizableKE.C.

References Foam::dimTime, Foam::dimVolume, epsilon_, 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 ( "realizableKE< BasicTurbulenceModel >" )

Runtime type information.

◆ read()

template<class BasicTurbulenceModel>
bool read ( )
virtual

Re-read model coefficients if they have changed.

Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.

Definition at line 217 of file realizableKE.C.

References A0_, C2_, eddyViscosity< RASModel< BasicTurbulenceModel > >::eddyViscosity(), read(), sigmaEps_, and sigmak_.

Referenced by read().

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

◆ DkEff()

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

Return the effective diffusivity for k.

Definition at line 169 of file realizableKE.H.

Referenced by correct().

Here is the caller graph for this function:

◆ DepsilonEff()

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

Return the effective diffusivity for epsilon.

Definition at line 184 of file realizableKE.H.

Referenced by correct().

Here is the caller graph for this function:

◆ k()

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

Return the turbulence kinetic energy.

Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.

Definition at line 199 of file realizableKE.H.

◆ epsilon()

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

Return the turbulence kinetic energy dissipation rate.

Definition at line 207 of file realizableKE.H.

◆ correct()

Member Data Documentation

◆ A0_

template<class BasicTurbulenceModel>
dimensionedScalar A0_
protected

Definition at line 90 of file realizableKE.H.

Referenced by rCmu(), read(), and realizableKE().

◆ C2_

template<class BasicTurbulenceModel>
dimensionedScalar C2_
protected

Definition at line 91 of file realizableKE.H.

Referenced by correct(), read(), and realizableKE().

◆ sigmak_

template<class BasicTurbulenceModel>
dimensionedScalar sigmak_
protected

Definition at line 92 of file realizableKE.H.

Referenced by read(), and realizableKE().

◆ sigmaEps_

template<class BasicTurbulenceModel>
dimensionedScalar sigmaEps_
protected

Definition at line 93 of file realizableKE.H.

Referenced by read(), and realizableKE().

◆ k_

template<class BasicTurbulenceModel>
volScalarField k_
protected

Definition at line 98 of file realizableKE.H.

Referenced by correct(), correctNut(), kSource(), rCmu(), and realizableKE().

◆ epsilon_

template<class BasicTurbulenceModel>
volScalarField epsilon_
protected

Definition at line 99 of file realizableKE.H.

Referenced by correct(), correctNut(), epsilonSource(), rCmu(), and realizableKE().


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