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

Launder, Reece and Rodi Reynolds-stress turbulence model for incompressible and compressible flows. More...

#include <LRR.H>

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

Public Types

typedef BasicTurbulenceModel::alphaField alphaField
typedef BasicTurbulenceModel::rhoField rhoField
typedef BasicTurbulenceModel::transportModel transportModel
Public Types inherited from ReynoldsStress< RASModel< BasicTurbulenceModel > >
typedef BasicTurbulenceModel::alphaField alphaField
typedef BasicTurbulenceModel::rhoField rhoField
typedef BasicTurbulenceModel::transportModel transportModel

Public Member Functions

 TypeName ("LRR")
 Runtime type information.
 LRR (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 ~LRR ()=default
 Destructor.
virtual bool read ()
 Read model coefficients if they have changed.
virtual tmp< volScalarFieldk () const
 Return the turbulence kinetic energy.
virtual tmp< volScalarFieldepsilon () const
 Return the turbulence kinetic energy dissipation rate.
tmp< volSymmTensorFieldDREff () const
 Return the effective diffusivity for R.
tmp< volSymmTensorFieldDepsilonEff () const
 Return the effective diffusivity for epsilon.
virtual void correct ()
 Solve the turbulence equations and correct eddy-Viscosity and.
Public Member Functions inherited from ReynoldsStress< RASModel< BasicTurbulenceModel > >
Foam::tmp< Foam::fvVectorMatrixDivDevRhoReff (const RhoFieldType &rho, volVectorField &U) const
 ReynoldsStress (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 ~ReynoldsStress ()=default
 Destructor.
virtual tmp< volScalarFieldnut () const
 Return the turbulence viscosity.
virtual tmp< volSymmTensorFieldR () const
 Return the Reynolds stress tensor.
virtual tmp< volSymmTensorFielddevRhoReff () const
 Return the effective stress tensor.
virtual tmp< fvVectorMatrixdivDevRhoReff (volVectorField &U) const
 Return the source term for the momentum equation.
virtual void validate ()
 Validate the turbulence fields after construction.

Protected Member Functions

virtual void correctNut ()
 Update the eddy-viscosity.
Protected Member Functions inherited from ReynoldsStress< RASModel< BasicTurbulenceModel > >
void boundNormalStress (volSymmTensorField &R) const
void correctWallShearStress (volSymmTensorField &R) const
void checkRealizabilityConditions (const volSymmTensorField &R) const

Protected Attributes

dimensionedScalar Cmu_
dimensionedScalar C1_
dimensionedScalar C2_
dimensionedScalar Ceps1_
dimensionedScalar Ceps2_
dimensionedScalar Cs_
dimensionedScalar Ceps_
Switch wallReflection_
dimensionedScalar kappa_
dimensionedScalar Cref1_
dimensionedScalar Cref2_
volScalarField k_
volScalarField epsilon_
Protected Attributes inherited from ReynoldsStress< RASModel< BasicTurbulenceModel > >
dimensionedScalar couplingFactor_
volSymmTensorField R_
volScalarField nut_

Detailed Description

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

Launder, Reece and Rodi Reynolds-stress turbulence model for incompressible and compressible flows.

Reference:

    Launder, B. E., Reece, G. J., & Rodi, W. (1975).
    Progress in the development of a Reynolds-stress turbulence closure.
    Journal of fluid mechanics, 68(03), 537-566.

Including the recommended generalized gradient diffusion model of Daly and Harlow:

    Daly, B. J., & Harlow, F. H. (1970).
    Transport equations in turbulence.
    Physics of Fluids (1958-1988), 13(11), 2634-2649.

Optional Gibson-Launder wall-reflection is also provided:

    Gibson, M. M., & Launder, B. E. (1978).
    Ground effects on pressure fluctuations in the
    atmospheric boundary layer.
    Journal of Fluid Mechanics, 86(03), 491-511.

The default model coefficients are:

    LRRCoeffs
    {
        Cmu             0.09;
        C1              1.8;
        C2              0.6;
        Ceps1           1.44;
        Ceps2           1.92;
        Cs              0.25;
        Ceps            0.15;

        wallReflection  yes;
        kappa           0.41
        Cref1           0.5;
        Cref2           0.3;

        couplingFactor  0.0;
    }
Source files

Definition at line 99 of file LRR.H.

Member Typedef Documentation

◆ alphaField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::alphaField alphaField

Definition at line 157 of file LRR.H.

◆ rhoField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 158 of file LRR.H.

◆ transportModel

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 159 of file LRR.H.

Constructor & Destructor Documentation

◆ LRR()

template<class BasicTurbulenceModel>
LRR ( 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 )

◆ ~LRR()

template<class BasicTurbulenceModel>
virtual ~LRR ( )
virtualdefault

Destructor.

Member Function Documentation

◆ correctNut()

template<class BasicTurbulenceModel>
void correctNut ( )
protectedvirtual

Update the eddy-viscosity.

Implements ReynoldsStress< RASModel< BasicTurbulenceModel > >.

Definition at line 36 of file LRR.C.

References Cmu_, optionList::correct(), epsilon_, k_, options::New(), ReynoldsStress< 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:

◆ TypeName()

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

Runtime type information.

◆ read()

template<class BasicTurbulenceModel>
bool read ( )
virtual

Read model coefficients if they have changed.

Implements ReynoldsStress< RASModel< BasicTurbulenceModel > >.

Definition at line 213 of file LRR.C.

References C1_, C2_, Ceps1_, Ceps2_, Ceps_, Cmu_, Cref1_, Cref2_, Cs_, kappa_, read(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::ReynoldsStress(), and wallReflection_.

Referenced by read().

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

◆ k()

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

Return the turbulence kinetic energy.

Reimplemented from ReynoldsStress< RASModel< BasicTurbulenceModel > >.

Definition at line 202 of file LRR.H.

◆ epsilon()

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

Return the turbulence kinetic energy dissipation rate.

Definition at line 210 of file LRR.H.

◆ DREff()

template<class BasicTurbulenceModel>
tmp< volSymmTensorField > DREff ( ) const

Return the effective diffusivity for R.

Definition at line 238 of file LRR.C.

References Cs_, epsilon_, Foam::I, k_, nu, and ReynoldsStress< RASModel< BasicTurbulenceModel > >::R_.

Referenced by correct().

Here is the caller graph for this function:

◆ DepsilonEff()

template<class BasicTurbulenceModel>
tmp< volSymmTensorField > DepsilonEff ( ) const

Return the effective diffusivity for epsilon.

Definition at line 252 of file LRR.C.

References Ceps_, epsilon_, Foam::I, k_, nu, and ReynoldsStress< RASModel< BasicTurbulenceModel > >::R_.

Referenced by correct().

Here is the caller graph for this function:

◆ correct()

Member Data Documentation

◆ Cmu_

template<class BasicTurbulenceModel>
dimensionedScalar Cmu_
protected

Definition at line 122 of file LRR.H.

Referenced by correct(), correctNut(), LRR(), and read().

◆ C1_

template<class BasicTurbulenceModel>
dimensionedScalar C1_
protected

Definition at line 124 of file LRR.H.

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

◆ C2_

template<class BasicTurbulenceModel>
dimensionedScalar C2_
protected

Definition at line 125 of file LRR.H.

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

◆ Ceps1_

template<class BasicTurbulenceModel>
dimensionedScalar Ceps1_
protected

Definition at line 127 of file LRR.H.

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

◆ Ceps2_

template<class BasicTurbulenceModel>
dimensionedScalar Ceps2_
protected

Definition at line 128 of file LRR.H.

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

◆ Cs_

template<class BasicTurbulenceModel>
dimensionedScalar Cs_
protected

Definition at line 129 of file LRR.H.

Referenced by DREff(), LRR(), and read().

◆ Ceps_

template<class BasicTurbulenceModel>
dimensionedScalar Ceps_
protected

Definition at line 130 of file LRR.H.

Referenced by DepsilonEff(), LRR(), and read().

◆ wallReflection_

template<class BasicTurbulenceModel>
Switch wallReflection_
protected

Definition at line 135 of file LRR.H.

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

◆ kappa_

template<class BasicTurbulenceModel>
dimensionedScalar kappa_
protected

Definition at line 136 of file LRR.H.

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

◆ Cref1_

template<class BasicTurbulenceModel>
dimensionedScalar Cref1_
protected

Definition at line 137 of file LRR.H.

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

◆ Cref2_

template<class BasicTurbulenceModel>
dimensionedScalar Cref2_
protected

Definition at line 138 of file LRR.H.

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

◆ k_

template<class BasicTurbulenceModel>
volScalarField k_
protected

Definition at line 143 of file LRR.H.

Referenced by correct(), correctNut(), DepsilonEff(), DREff(), and LRR().

◆ epsilon_

template<class BasicTurbulenceModel>
volScalarField epsilon_
protected

Definition at line 144 of file LRR.H.

Referenced by correct(), correctNut(), DepsilonEff(), DREff(), and LRR().


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