Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
nonlinearEddyViscosity< BasicTurbulenceModel > Class Template Referenceabstract

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

Inheritance diagram for nonlinearEddyViscosity< BasicTurbulenceModel >:
Inheritance graph
[legend]
Collaboration diagram for nonlinearEddyViscosity< BasicTurbulenceModel >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 nonlinearEddyViscosity (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. More...
 
virtual ~nonlinearEddyViscosity ()
 Destructor. More...
 
virtual tmp< volSymmTensorFieldR () const
 Return the Reynolds stress tensor. More...
 
virtual tmp< volSymmTensorFielddevRhoReff () const
 Return the effective stress tensor. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (const volScalarField &rho, volVectorField &U) const
 Return the source term for the momentum equation. More...
 
- Public Member Functions inherited from eddyViscosity< BasicTurbulenceModel >
 eddyViscosity (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. 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< BasicTurbulenceModel >
 linearViscousStress (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. More...
 
virtual ~linearViscousStress ()
 Destructor. More...
 

Protected Member Functions

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

Protected Attributes

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

Detailed Description

template<class BasicTurbulenceModel>
class Foam::nonlinearEddyViscosity< BasicTurbulenceModel >

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 BasicTurbulenceModel::alphaField alphaField

Definition at line 70 of file nonlinearEddyViscosity.H.

◆ rhoField

typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 71 of file nonlinearEddyViscosity.H.

◆ transportModel

typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 72 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 transportModel transport,
const word propertiesName 
)

Construct from components.

Definition at line 34 of file nonlinearEddyViscosity.C.

◆ ~nonlinearEddyViscosity()

virtual ~nonlinearEddyViscosity ( )
inlinevirtual

Destructor.

Definition at line 92 of file nonlinearEddyViscosity.H.

Member Function Documentation

◆ correctNonlinearStress()

virtual void correctNonlinearStress ( const volTensorField gradU)
protectedpure virtual

Implemented in LienCubicKE, and ShihQuadraticKE.

◆ R()

Foam::tmp< Foam::volSymmTensorField > R ( ) const
virtual

Return the Reynolds stress tensor.

Reimplemented from eddyViscosity< BasicTurbulenceModel >.

Definition at line 80 of file nonlinearEddyViscosity.C.

Referenced by nonlinearEddyViscosity< incompressible::RASModel >::~nonlinearEddyViscosity().

Here is the caller graph for this function:

◆ devRhoReff()

Foam::tmp< Foam::volSymmTensorField > devRhoReff ( ) const
virtual

Return the effective stress tensor.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

Definition at line 93 of file nonlinearEddyViscosity.C.

Referenced by nonlinearEddyViscosity< incompressible::RASModel >::~nonlinearEddyViscosity().

Here is the caller graph for this function:

◆ divDevRhoReff() [1/2]

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

◆ divDevRhoReff() [2/2]

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

Return the source term for the momentum equation.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

Definition at line 122 of file nonlinearEddyViscosity.C.

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: