Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
kOmegaSST< TurbulenceModel, BasicTurbulenceModel > Class Template Reference

Implementation of the k-omega-SST turbulence model for incompressible and compressible flows. More...

Inheritance diagram for kOmegaSST< TurbulenceModel, BasicTurbulenceModel >:
Inheritance graph
[legend]
Collaboration diagram for kOmegaSST< TurbulenceModel, BasicTurbulenceModel >:
Collaboration graph
[legend]

Public Types

typedef BasicTurbulenceModel::alphaField alphaField
 
typedef BasicTurbulenceModel::rhoField rhoField
 
typedef BasicTurbulenceModel::transportModel transportModel
 
- Public Types inherited from TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >
typedef Alpha alphaField
 
typedef Rho rhoField
 
typedef TransportModel transportModel
 

Public Member Functions

 kOmegaSST (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. More...
 
virtual ~kOmegaSST ()
 Destructor. More...
 
virtual bool read ()
 Re-read model coefficients if they have changed. More...
 
tmp< volScalarFieldDkEff (const volScalarField &F1) const
 Return the effective diffusivity for k. More...
 
tmp< volScalarFieldDomegaEff (const volScalarField &F1) const
 Return the effective diffusivity for omega. More...
 
virtual tmp< volScalarFieldk () const
 Return the turbulence kinetic energy. More...
 
virtual tmp< volScalarFieldepsilon () const
 Return the turbulence kinetic energy dissipation rate. More...
 
virtual tmp< volScalarFieldomega () const
 Return the turbulence kinetic energy dissipation rate. More...
 
virtual void correct ()
 Solve the turbulence equations and correct the turbulence viscosity. More...
 
- Public Member Functions inherited from TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >
 declareRunTimeNewSelectionTable (autoPtr, TurbulenceModel, dictionary,(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName),(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName))
 
 TurbulenceModel (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct. More...
 
virtual ~TurbulenceModel ()
 Destructor. More...
 
const alphaFieldalpha () const
 Access function to phase fraction. More...
 
const transportModeltransport () const
 Access function to incompressible transport model. More...
 
virtual tmp< volScalarFieldnu () const
 Return the laminar viscosity. More...
 
virtual tmp< scalarFieldnu (const label patchi) const
 Return the laminar viscosity on patchi. More...
 

Protected Member Functions

virtual tmp< volScalarFieldF1 (const volScalarField &CDkOmega) const
 
virtual tmp< volScalarFieldF2 () const
 
virtual tmp< volScalarFieldF3 () const
 
virtual tmp< volScalarFieldF23 () const
 
tmp< volScalarFieldblend (const volScalarField &F1, const dimensionedScalar &psi1, const dimensionedScalar &psi2) const
 
tmp< volScalarField::Internalblend (const volScalarField::Internal &F1, const dimensionedScalar &psi1, const dimensionedScalar &psi2) const
 
tmp< volScalarFieldalphaK (const volScalarField &F1) const
 
tmp< volScalarFieldalphaOmega (const volScalarField &F1) const
 
tmp< volScalarField::Internalbeta (const volScalarField::Internal &F1) const
 
tmp< volScalarField::Internalgamma (const volScalarField::Internal &F1) const
 
virtual void correctNut (const volScalarField &S2, const volScalarField &F2)
 
virtual void correctNut ()
 
virtual tmp< volScalarField::InternalPk (const volScalarField::Internal &G) const
 Return k production rate. More...
 
virtual tmp< volScalarField::InternalepsilonByk (const volScalarField::Internal &F1, const volScalarField::Internal &F2) const
 Return epsilon/k which for standard RAS is betaStar*omega. More...
 
virtual tmp< fvScalarMatrixkSource () const
 
virtual tmp< fvScalarMatrixomegaSource () const
 
virtual tmp< fvScalarMatrixQsas (const volScalarField::Internal &S2, const volScalarField::Internal &gamma, const volScalarField::Internal &beta) const
 

Protected Attributes

dimensionedScalar alphaK1_
 
dimensionedScalar alphaK2_
 
dimensionedScalar alphaOmega1_
 
dimensionedScalar alphaOmega2_
 
dimensionedScalar gamma1_
 
dimensionedScalar gamma2_
 
dimensionedScalar beta1_
 
dimensionedScalar beta2_
 
dimensionedScalar betaStar_
 
dimensionedScalar a1_
 
dimensionedScalar b1_
 
dimensionedScalar c1_
 
Switch F3_
 
const volScalarFieldy_
 Wall distance. More...
 
volScalarField k_
 
volScalarField omega_
 
- Protected Attributes inherited from TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >
const alphaFieldalpha_
 
const transportModeltransport_
 

Additional Inherited Members

- Static Public Member Functions inherited from TurbulenceModel< Alpha, Rho, BasicTurbulenceModel, TransportModel >
static autoPtr< TurbulenceModelNew (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
 Return a reference to the selected turbulence model. More...
 

Detailed Description

template<class TurbulenceModel, class BasicTurbulenceModel>
class Foam::kOmegaSST< TurbulenceModel, BasicTurbulenceModel >

Implementation of the k-omega-SST turbulence model for incompressible and compressible flows.

Turbulence model described in:

    Menter, F. R. & Esch, T. (2001).
    Elements of Industrial Heat Transfer Prediction.
    16th Brazilian Congress of Mechanical Engineering (COBEM).

with updated coefficients from

    Menter, F. R., Kuntz, M., and Langtry, R. (2003).
    Ten Years of Industrial Experience with the SST Turbulence Model.
    Turbulence, Heat and Mass Transfer 4, ed: K. Hanjalic, Y. Nagano,
    & M. Tummers, Begell House, Inc., 625 - 632.

but with the consistent production terms from the 2001 paper as form in the 2003 paper is a typo, see

    http://turbmodels.larc.nasa.gov/sst.html

and the addition of the optional F3 term for rough walls from

    Hellsten, A. (1998).
    "Some Improvements in Menter’s k-omega-SST turbulence model"
    29th AIAA Fluid Dynamics Conference, AIAA-98-2554.

Note that this implementation is written in terms of alpha diffusion coefficients rather than the more traditional sigma (alpha = 1/sigma) so that the blending can be applied to all coefficuients in a consistent manner. The paper suggests that sigma is blended but this would not be consistent with the blending of the k-epsilon and k-omega models.

Also note that the error in the last term of equation (2) relating to sigma has been corrected.

Wall-functions are applied in this implementation by using equations (14) to specify the near-wall omega as appropriate.

The blending functions (15) and (16) are not currently used because of the uncertainty in their origin, range of applicability and that if y+ becomes sufficiently small blending u_tau in this manner clearly becomes nonsense.

The default model coefficients are

    kOmegaSSTCoeffs
    {
        alphaK1     0.85;
        alphaK2     1.0;
        alphaOmega1 0.5;
        alphaOmega2 0.856;
        beta1       0.075;
        beta2       0.0828;
        betaStar    0.09;
        gamma1      5/9;
        gamma2      0.44;
        a1          0.31;
        b1          1.0;
        c1          10.0;
        F3          no;
    }
Source files

Definition at line 112 of file kOmegaSSTBase.H.

Member Typedef Documentation

◆ alphaField

typedef BasicTurbulenceModel::alphaField alphaField

Definition at line 249 of file kOmegaSSTBase.H.

◆ rhoField

typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 250 of file kOmegaSSTBase.H.

◆ transportModel

typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 251 of file kOmegaSSTBase.H.

Constructor & Destructor Documentation

◆ kOmegaSST()

kOmegaSST ( 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.

Definition at line 213 of file kOmegaSSTBase.C.

◆ ~kOmegaSST()

virtual ~kOmegaSST ( )
inlinevirtual

Destructor.

Reimplemented in kOmegaSST< BasicTurbulenceModel >.

Definition at line 271 of file kOmegaSSTBase.H.

Member Function Documentation

◆ F1()

virtual tmp<volScalarField> F1 ( const volScalarField CDkOmega) const
protectedvirtual

◆ F2()

virtual tmp<volScalarField> F2 ( ) const
protectedvirtual

Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::gamma().

Here is the caller graph for this function:

◆ F3()

virtual tmp<volScalarField> F3 ( ) const
protectedvirtual

◆ F23()

virtual tmp<volScalarField> F23 ( ) const
protectedvirtual

◆ blend() [1/2]

tmp<volScalarField> blend ( const volScalarField F1,
const dimensionedScalar psi1,
const dimensionedScalar psi2 
) const
inlineprotected

◆ blend() [2/2]

tmp<volScalarField::Internal> blend ( const volScalarField::Internal F1,
const dimensionedScalar psi1,
const dimensionedScalar psi2 
) const
inlineprotected

Definition at line 179 of file kOmegaSSTBase.H.

◆ alphaK()

tmp<volScalarField> alphaK ( const volScalarField F1) const
inlineprotected

Definition at line 188 of file kOmegaSSTBase.H.

Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::DkEff().

Here is the caller graph for this function:

◆ alphaOmega()

tmp<volScalarField> alphaOmega ( const volScalarField F1) const
inlineprotected

Definition at line 193 of file kOmegaSSTBase.H.

Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::DomegaEff().

Here is the caller graph for this function:

◆ beta()

tmp<volScalarField::Internal> beta ( const volScalarField::Internal F1) const
inlineprotected

◆ gamma()

tmp<volScalarField::Internal> gamma ( const volScalarField::Internal F1) const
inlineprotected

◆ correctNut() [1/2]

void correctNut ( const volScalarField S2,
const volScalarField F2 
)
protectedvirtual

Reimplemented in kOmegaSSTSato< BasicTurbulenceModel >.

Definition at line 115 of file kOmegaSSTBase.C.

◆ correctNut() [2/2]

void correctNut ( )
protectedvirtual

Definition at line 131 of file kOmegaSSTBase.C.

Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::gamma().

Here is the caller graph for this function:

◆ Pk()

tmp< volScalarField::Internal > Pk ( const volScalarField::Internal G) const
protectedvirtual

◆ epsilonByk()

tmp< volScalarField::Internal > epsilonByk ( const volScalarField::Internal F1,
const volScalarField::Internal F2 
) const
protectedvirtual

Return epsilon/k which for standard RAS is betaStar*omega.

Definition at line 151 of file kOmegaSSTBase.C.

Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::gamma(), and kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::Pk().

Here is the caller graph for this function:

◆ kSource()

tmp< fvScalarMatrix > kSource ( ) const
protectedvirtual

Definition at line 162 of file kOmegaSSTBase.C.

Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::gamma().

Here is the caller graph for this function:

◆ omegaSource()

tmp< fvScalarMatrix > omegaSource ( ) const
protectedvirtual

Definition at line 177 of file kOmegaSSTBase.C.

Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::gamma().

Here is the caller graph for this function:

◆ Qsas()

tmp< fvScalarMatrix > Qsas ( const volScalarField::Internal S2,
const volScalarField::Internal gamma,
const volScalarField::Internal beta 
) const
protectedvirtual

◆ read()

bool read ( )
virtual

Re-read model coefficients if they have changed.

Reimplemented in kOmegaSSTLM< BasicTurbulenceModel >, kOmegaSSTSato< BasicTurbulenceModel >, kOmegaSSTSAS< BasicTurbulenceModel >, and kOmegaSSTDES< BasicTurbulenceModel >.

Definition at line 389 of file kOmegaSSTBase.C.

Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::~kOmegaSST().

Here is the caller graph for this function:

◆ DkEff()

tmp<volScalarField> DkEff ( const volScalarField F1) const
inline

Return the effective diffusivity for k.

Definition at line 281 of file kOmegaSSTBase.H.

◆ DomegaEff()

tmp<volScalarField> DomegaEff ( const volScalarField F1) const
inline

Return the effective diffusivity for omega.

Definition at line 290 of file kOmegaSSTBase.H.

◆ k()

virtual tmp<volScalarField> k ( ) const
inlinevirtual

Return the turbulence kinetic energy.

Definition at line 303 of file kOmegaSSTBase.H.

◆ epsilon()

virtual tmp<volScalarField> epsilon ( ) const
inlinevirtual

Return the turbulence kinetic energy dissipation rate.

Definition at line 309 of file kOmegaSSTBase.H.

◆ omega()

virtual tmp<volScalarField> omega ( ) const
inlinevirtual

Return the turbulence kinetic energy dissipation rate.

Definition at line 328 of file kOmegaSSTBase.H.

◆ correct()

void correct ( )
virtual

Solve the turbulence equations and correct the turbulence viscosity.

Reimplemented in kOmegaSSTLM< BasicTurbulenceModel >, and kOmegaSSTSato< BasicTurbulenceModel >.

Definition at line 417 of file kOmegaSSTBase.C.

Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::omega().

Here is the caller graph for this function:

Member Data Documentation

◆ alphaK1_

dimensionedScalar alphaK1_
protected

Definition at line 129 of file kOmegaSSTBase.H.

◆ alphaK2_

dimensionedScalar alphaK2_
protected

Definition at line 130 of file kOmegaSSTBase.H.

◆ alphaOmega1_

dimensionedScalar alphaOmega1_
protected

Definition at line 132 of file kOmegaSSTBase.H.

◆ alphaOmega2_

dimensionedScalar alphaOmega2_
protected

Definition at line 133 of file kOmegaSSTBase.H.

◆ gamma1_

dimensionedScalar gamma1_
protected

Definition at line 135 of file kOmegaSSTBase.H.

◆ gamma2_

dimensionedScalar gamma2_
protected

Definition at line 136 of file kOmegaSSTBase.H.

◆ beta1_

dimensionedScalar beta1_
protected

Definition at line 138 of file kOmegaSSTBase.H.

◆ beta2_

dimensionedScalar beta2_
protected

Definition at line 139 of file kOmegaSSTBase.H.

◆ betaStar_

dimensionedScalar betaStar_
protected

Definition at line 141 of file kOmegaSSTBase.H.

◆ a1_

dimensionedScalar a1_
protected

Definition at line 143 of file kOmegaSSTBase.H.

◆ b1_

dimensionedScalar b1_
protected

Definition at line 144 of file kOmegaSSTBase.H.

◆ c1_

dimensionedScalar c1_
protected

Definition at line 145 of file kOmegaSSTBase.H.

◆ F3_

Switch F3_
protected

Definition at line 147 of file kOmegaSSTBase.H.

◆ y_

const volScalarField& y_
protected

Wall distance.

Note: different to wall distance in parent RASModel which is for near-wall cells only

Definition at line 155 of file kOmegaSSTBase.H.

◆ k_

volScalarField k_
protected

◆ omega_

volScalarField omega_
protected

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