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
 
- Public Types inherited from linearViscousStress< BasicMomentumTransportModel >
typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 

Public Member Functions

 eddyViscosity (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
 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 viscosity &viscosity)
 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.

Constructor & Destructor Documentation

◆ eddyViscosity()

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

Construct from components.

Definition at line 34 of file eddyViscosity.C.

◆ ~eddyViscosity()

virtual ~eddyViscosity ( )
inlinevirtual

Destructor.

Definition at line 90 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 >, LaunderSharmaKE< BasicMomentumTransportModel >, kEpsilon< BasicMomentumTransportModel >, kEpsilon< compressible::momentumTransportModel >, LaheyKEpsilon< BasicMomentumTransportModel >, LienLeschziner, NicenoKEqn< BasicMomentumTransportModel >, continuousGasKEpsilon< BasicMomentumTransportModel >, Smagorinsky< BasicMomentumTransportModel >, qZeta, kOmega< BasicMomentumTransportModel >, SmagorinskyZhang< 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 100 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 106 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 >, kEpsilonLopesdaCosta< BasicMomentumTransportModel >, kineticTheoryModel, qZeta, realizableKE< BasicMomentumTransportModel >, RNGkEpsilon< BasicMomentumTransportModel >, LienCubicKE, SpalartAllmarasDES< BasicMomentumTransportModel >, SpalartAllmaras< BasicMomentumTransportModel >, kOmega2006< BasicMomentumTransportModel >, LaunderSharmaKE< BasicMomentumTransportModel >, kEpsilon< BasicMomentumTransportModel >, kEpsilon< compressible::momentumTransportModel >, kOmegaSSTSato< BasicMomentumTransportModel >, LienLeschziner, dynamicKEqn< BasicMomentumTransportModel >, kOmega< BasicMomentumTransportModel >, ShihQuadraticKE, LamBremhorstKE, phasePressureModel, kEqn< BasicMomentumTransportModel >, dynamicLagrangian< BasicMomentumTransportModel >, LaheyKEpsilon< BasicMomentumTransportModel >, Smagorinsky< 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: