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

Launder and Sharma low-Reynolds k-epsilon turbulence model for incompressible and compressible and combusting flows including rapid distortion theory (RDT) based compression term. More...

#include <LaunderSharmaKE.H>

Inheritance diagram for LaunderSharmaKE< BasicTurbulenceModel >:
Collaboration diagram for LaunderSharmaKE< 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 ("LaunderSharmaKE")
 Runtime type information.
 LaunderSharmaKE (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 ~LaunderSharmaKE ()=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< volScalarFieldfMu () const
tmp< volScalarFieldf2 () const
virtual void correctNut ()
virtual tmp< fvScalarMatrixkSource () const
virtual tmp< fvScalarMatrixepsilonSource () const

Protected Attributes

dimensionedScalar Cmu_
dimensionedScalar C1_
dimensionedScalar C2_
dimensionedScalar C3_
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::LaunderSharmaKE< BasicTurbulenceModel >

Launder and Sharma low-Reynolds k-epsilon turbulence model for incompressible and compressible and combusting flows including rapid distortion theory (RDT) based compression term.

References:

    Launder, B. E., & Sharma, B. I. (1974).
    Application of the energy-dissipation model of turbulence to the
    calculation of flow near a spinning disc.
    Letters in heat and mass transfer, 1(2), 131-137.

    For the RDT-based compression term:
    El Tahry, S. H. (1983).
    k-epsilon equation for compressible reciprocating engine flows.
    Journal of Energy, 7(4), 345-353.

The default model coefficients are

    LaunderSharmaKECoeffs
    {
        Cmu         0.09;
        C1          1.44;
        C2          1.92;
        C3          -0.33;
        alphah      1.0;    // only for compressible
        alphahk     1.0;    // only for compressible
        alphaEps    0.76923;
    }
Source files

Definition at line 83 of file LaunderSharmaKE.H.

Member Typedef Documentation

◆ alphaField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::alphaField alphaField

Definition at line 132 of file LaunderSharmaKE.H.

◆ rhoField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 133 of file LaunderSharmaKE.H.

◆ transportModel

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 134 of file LaunderSharmaKE.H.

Constructor & Destructor Documentation

◆ LaunderSharmaKE()

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

References alpha, Foam::bound(), C1_, C2_, C3_, Cmu_, 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:

◆ ~LaunderSharmaKE()

template<class BasicTurbulenceModel>
virtual ~LaunderSharmaKE ( )
virtualdefault

Destructor.

Member Function Documentation

◆ fMu()

template<class BasicTurbulenceModel>
tmp< volScalarField > fMu ( ) const
protected

Definition at line 36 of file LaunderSharmaKE.C.

References epsilon_, Foam::exp(), k_, nu, and Foam::sqr().

Referenced by correctNut().

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

◆ f2()

template<class BasicTurbulenceModel>
tmp< volScalarField > f2 ( ) const
protected

Definition at line 43 of file LaunderSharmaKE.C.

References epsilon_, Foam::exp(), k_, Foam::min(), nu, and Foam::sqr().

Referenced by correct().

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

◆ correctNut()

template<class BasicTurbulenceModel>
void correctNut ( )
protectedvirtual

Implements eddyViscosity< RASModel< BasicTurbulenceModel > >.

Definition at line 52 of file LaunderSharmaKE.C.

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

Referenced by correct().

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

◆ kSource()

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

Definition at line 63 of file LaunderSharmaKE.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 74 of file LaunderSharmaKE.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 ( "LaunderSharmaKE< 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 205 of file LaunderSharmaKE.C.

References C1_, C2_, C3_, Cmu_, 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 177 of file LaunderSharmaKE.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 192 of file LaunderSharmaKE.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 207 of file LaunderSharmaKE.H.

◆ epsilon()

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

Return the turbulence kinetic energy dissipation rate.

Definition at line 215 of file LaunderSharmaKE.H.

◆ correct()

Member Data Documentation

◆ Cmu_

template<class BasicTurbulenceModel>
dimensionedScalar Cmu_
protected

Definition at line 106 of file LaunderSharmaKE.H.

Referenced by correctNut(), LaunderSharmaKE(), and read().

◆ C1_

template<class BasicTurbulenceModel>
dimensionedScalar C1_
protected

Definition at line 107 of file LaunderSharmaKE.H.

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

◆ C2_

template<class BasicTurbulenceModel>
dimensionedScalar C2_
protected

Definition at line 108 of file LaunderSharmaKE.H.

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

◆ C3_

template<class BasicTurbulenceModel>
dimensionedScalar C3_
protected

Definition at line 109 of file LaunderSharmaKE.H.

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

◆ sigmak_

template<class BasicTurbulenceModel>
dimensionedScalar sigmak_
protected

Definition at line 110 of file LaunderSharmaKE.H.

Referenced by LaunderSharmaKE(), and read().

◆ sigmaEps_

template<class BasicTurbulenceModel>
dimensionedScalar sigmaEps_
protected

Definition at line 111 of file LaunderSharmaKE.H.

Referenced by LaunderSharmaKE(), and read().

◆ k_

template<class BasicTurbulenceModel>
volScalarField k_
protected

Definition at line 116 of file LaunderSharmaKE.H.

Referenced by correct(), correctNut(), f2(), fMu(), kSource(), and LaunderSharmaKE().

◆ epsilon_

template<class BasicTurbulenceModel>
volScalarField epsilon_
protected

Definition at line 117 of file LaunderSharmaKE.H.

Referenced by correct(), correctNut(), epsilonSource(), f2(), fMu(), and LaunderSharmaKE().


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