nonlinearEddyViscosity< BasicMomentumTransportModel > Class Template Referenceabstract

Eddy viscosity turbulence model with non-linear correction base class. More...

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

Public Types

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

 nonlinearEddyViscosity (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 ~nonlinearEddyViscosity ()
 Destructor. More...
 
virtual tmp< volSymmTensorFieldsigma () const
 Return the Reynolds stress tensor [m^2/s^2]. 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...
 
- Public Member Functions inherited from eddyViscosity< BasicMomentumTransportModel >
 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 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...
 

Protected Member Functions

virtual void correctNonlinearStress (const volTensorField &gradU)=0
 
- Protected Member Functions inherited from eddyViscosity< BasicMomentumTransportModel >
virtual void correctNut ()=0
 

Protected Attributes

volSymmTensorField nonlinearStress_
 
- Protected Attributes inherited from eddyViscosity< BasicMomentumTransportModel >
volScalarField nut_
 

Detailed Description

template<class BasicMomentumTransportModel>
class Foam::nonlinearEddyViscosity< BasicMomentumTransportModel >

Eddy viscosity turbulence model with non-linear correction base class.

Source files

Definition at line 49 of file nonlinearEddyViscosity.H.

Member Typedef Documentation

◆ alphaField

typedef BasicMomentumTransportModel::alphaField alphaField

Definition at line 70 of file nonlinearEddyViscosity.H.

◆ rhoField

typedef BasicMomentumTransportModel::rhoField rhoField

Definition at line 71 of file nonlinearEddyViscosity.H.

Constructor & Destructor Documentation

◆ nonlinearEddyViscosity()

nonlinearEddyViscosity ( 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 31 of file nonlinearEddyViscosity.C.

◆ ~nonlinearEddyViscosity()

virtual ~nonlinearEddyViscosity ( )
inlinevirtual

Destructor.

Definition at line 90 of file nonlinearEddyViscosity.H.

Member Function Documentation

◆ correctNonlinearStress()

virtual void correctNonlinearStress ( const volTensorField gradU)
protectedpure virtual

Implemented in ShihQuadraticKE, and LienCubicKE.

◆ sigma()

Return the Reynolds stress tensor [m^2/s^2].

Reimplemented from eddyViscosity< BasicMomentumTransportModel >.

Definition at line 77 of file nonlinearEddyViscosity.C.

◆ devTau()

Return the effective stress tensor.

Reimplemented from linearViscousStress< BasicMomentumTransportModel >.

Definition at line 90 of file nonlinearEddyViscosity.C.

References tmp< T >::ref().

Here is the call graph for this function:

◆ divDevTau() [1/2]

Foam::tmp< Foam::fvVectorMatrix > divDevTau ( volVectorField U) const
virtual

Return the source term for the momentum equation.

Reimplemented from linearViscousStress< BasicMomentumTransportModel >.

Definition at line 103 of file nonlinearEddyViscosity.C.

◆ divDevTau() [2/2]

Foam::tmp< Foam::fvVectorMatrix > divDevTau ( const volScalarField rho,
volVectorField U 
) const
virtual

Return the source term for the momentum equation.

Reimplemented from linearViscousStress< BasicMomentumTransportModel >.

Definition at line 118 of file nonlinearEddyViscosity.C.

References Foam::fvc::div(), rho, and U.

Here is the call graph for this function:

Member Data Documentation

◆ nonlinearStress_

volSymmTensorField nonlinearStress_
protected

Definition at line 60 of file nonlinearEddyViscosity.H.


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