eddyViscosity< BasicMomentumTransportModel > Class Template Referenceabstract

Eddy viscosity turbulence model base class. More...

Inheritance diagram for eddyViscosity< BasicMomentumTransportModel >:
Collaboration diagram for eddyViscosity< BasicMomentumTransportModel >:

Public Types

typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
typedef BasicMomentumTransportModel::transportModel transportModel
 
- Public Types inherited from linearViscousStress< BasicMomentumTransportModel >
typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
typedef BasicMomentumTransportModel::transportModel transportModel
 

Public Member Functions

 eddyViscosity (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 Construct from components. More...
 
virtual ~eddyViscosity ()
 Destructor. More...
 
virtual bool read ()=0
 Re-read model coefficients if they have changed. More...
 
virtual tmp< volScalarFieldnut () const
 Return the turbulence viscosity. More...
 
virtual tmp< scalarFieldnut (const label patchi) const
 Return the turbulence viscosity on patch. More...
 
virtual tmp< volScalarFieldk () const =0
 Return the turbulence kinetic energy. More...
 
virtual tmp< volSymmTensorFieldsigma () const
 Return the Reynolds stress tensor [m^2/s^2]. More...
 
virtual void validate ()
 Validate the turbulence fields after construction. More...
 
virtual void correct ()=0
 Solve the turbulence equations and correct the turbulence viscosity. More...
 
- Public Member Functions inherited from linearViscousStress< BasicMomentumTransportModel >
 linearViscousStress (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 Construct from components. More...
 
virtual ~linearViscousStress ()
 Destructor. More...
 
virtual tmp< volSymmTensorFielddevTau () const
 Return the effective stress tensor. More...
 
virtual tmp< fvVectorMatrixdivDevTau (volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual tmp< fvVectorMatrixdivDevTau (const volScalarField &rho, volVectorField &U) const
 Return the source term for the momentum equation. More...
 

Protected Member Functions

virtual void correctNut ()=0
 

Protected Attributes

volScalarField nut_
 

Detailed Description

template<class BasicMomentumTransportModel>
class Foam::eddyViscosity< BasicMomentumTransportModel >

Eddy viscosity turbulence model base class.

Source files

Definition at line 49 of file eddyViscosity.H.

Member Typedef Documentation

◆ alphaField

typedef BasicMomentumTransportModel::alphaField alphaField

Definition at line 70 of file eddyViscosity.H.

◆ rhoField

typedef BasicMomentumTransportModel::rhoField rhoField

Definition at line 71 of file eddyViscosity.H.

◆ transportModel

typedef BasicMomentumTransportModel::transportModel transportModel

Definition at line 72 of file eddyViscosity.H.

Constructor & Destructor Documentation

◆ eddyViscosity()

eddyViscosity ( const word modelName,
const alphaField alpha,
const rhoField rho,
const volVectorField U,
const surfaceScalarField alphaRhoPhi,
const surfaceScalarField phi,
const transportModel transport 
)

Construct from components.

Definition at line 34 of file eddyViscosity.C.

◆ ~eddyViscosity()

virtual ~eddyViscosity ( )
inlinevirtual

Destructor.

Definition at line 91 of file eddyViscosity.H.

Member Function Documentation

◆ correctNut()

◆ read()

bool read ( )
pure virtual

Re-read model coefficients if they have changed.

Implements linearViscousStress< BasicMomentumTransportModel >.

Implemented in kOmegaSST< eddyViscosity< RASModel< BasicMomentumTransportModel > >, BasicMomentumTransportModel >, kkLOmega, kOmegaSSTLM< BasicMomentumTransportModel >, mixtureKEpsilon< BasicMomentumTransportModel >, v2f< BasicMomentumTransportModel >, kOmegaSSTSato< BasicMomentumTransportModel >, SpalartAllmarasDES< BasicMomentumTransportModel >, SpalartAllmaras< BasicMomentumTransportModel >, kineticTheoryModel, kEpsilonLopesdaCosta< BasicMomentumTransportModel >, kOmegaSSTSAS< BasicMomentumTransportModel >, dynamicKEqn< BasicMomentumTransportModel >, realizableKE< BasicMomentumTransportModel >, SpalartAllmarasIDDES< BasicMomentumTransportModel >, RNGkEpsilon< BasicMomentumTransportModel >, LienCubicKE, kOmega2006< BasicMomentumTransportModel >, LaheyKEpsilon< BasicMomentumTransportModel >, LaunderSharmaKE< BasicMomentumTransportModel >, kEpsilon< BasicMomentumTransportModel >, NicenoKEqn< BasicMomentumTransportModel >, kEpsilon< compressible::momentumTransportModel >, Smagorinsky< BasicMomentumTransportModel >, LienLeschziner, SmagorinskyZhang< BasicMomentumTransportModel >, continuousGasKEpsilon< BasicMomentumTransportModel >, qZeta, kOmega< BasicMomentumTransportModel >, WALE< BasicMomentumTransportModel >, buoyantKEpsilon< BasicMomentumTransportModel >, continuousGasKEqn< BasicMomentumTransportModel >, kEqn< BasicMomentumTransportModel >, ShihQuadraticKE, LamBremhorstKE, phasePressureModel, dynamicLagrangian< BasicMomentumTransportModel >, PDRkEpsilon, and LESeddyViscosity< BasicMomentumTransportModel >.

Definition at line 73 of file eddyViscosity.C.

Referenced by eddyViscosity< LESModel< BasicMomentumTransportModel > >::~eddyViscosity().

Here is the caller graph for this function:

◆ nut() [1/2]

virtual tmp<volScalarField> nut ( ) const
inlinevirtual

Return the turbulence viscosity.

Definition at line 101 of file eddyViscosity.H.

◆ nut() [2/2]

virtual tmp<scalarField> nut ( const label  patchi) const
inlinevirtual

Return the turbulence viscosity on patch.

Definition at line 107 of file eddyViscosity.H.

◆ k()

◆ sigma()

◆ validate()

void validate ( )
virtual

Validate the turbulence fields after construction.

Update turbulence viscosity and other derived fields as requires

Reimplemented in kkLOmega.

Definition at line 112 of file eddyViscosity.C.

Referenced by eddyViscosity< LESModel< BasicMomentumTransportModel > >::nut().

Here is the caller graph for this function:

◆ correct()

void correct ( )
pure virtual

Solve the turbulence equations and correct the turbulence viscosity.

Implements linearViscousStress< BasicMomentumTransportModel >.

Implemented in kOmegaSST< eddyViscosity< RASModel< BasicMomentumTransportModel > >, BasicMomentumTransportModel >, kkLOmega, kOmegaSSTLM< BasicMomentumTransportModel >, v2f< BasicMomentumTransportModel >, mixtureKEpsilon< BasicMomentumTransportModel >, kineticTheoryModel, kEpsilonLopesdaCosta< BasicMomentumTransportModel >, qZeta, SpalartAllmarasDES< BasicMomentumTransportModel >, kOmega2006< BasicMomentumTransportModel >, SpalartAllmaras< BasicMomentumTransportModel >, kOmegaSSTSato< BasicMomentumTransportModel >, realizableKE< BasicMomentumTransportModel >, RNGkEpsilon< BasicMomentumTransportModel >, LienCubicKE, LaunderSharmaKE< BasicMomentumTransportModel >, dynamicKEqn< BasicMomentumTransportModel >, kEpsilon< BasicMomentumTransportModel >, kEpsilon< compressible::momentumTransportModel >, kOmega< BasicMomentumTransportModel >, LienLeschziner, ShihQuadraticKE, phasePressureModel, LamBremhorstKE, LaheyKEpsilon< BasicMomentumTransportModel >, Smagorinsky< BasicMomentumTransportModel >, kEqn< BasicMomentumTransportModel >, dynamicLagrangian< BasicMomentumTransportModel >, WALE< BasicMomentumTransportModel >, and PDRkEpsilon.

Definition at line 119 of file eddyViscosity.C.

Referenced by LamBremhorstKE::correct(), ShihQuadraticKE::correct(), LienLeschziner::correct(), LienCubicKE::correct(), qZeta::correct(), kkLOmega::correct(), and eddyViscosity< LESModel< BasicMomentumTransportModel > >::nut().

Here is the caller graph for this function:

Member Data Documentation

◆ nut_

volScalarField nut_
protected

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