Loading...
Searching...
No Matches
nonlinearEddyViscosity< BasicTurbulenceModel > Class Template Referenceabstract

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

#include <nonlinearEddyViscosity.H>

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

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.
virtual ~nonlinearEddyViscosity ()=default
 Destructor.
virtual tmp< volSymmTensorFieldR () const
 Return the Reynolds stress tensor.
virtual tmp< volSymmTensorFielddevRhoReff () const
 Return the effective stress tensor.
virtual tmp< volSymmTensorFielddevRhoReff (const volVectorField &U) const
 Return the effective stress tensor based on a given velocity field.
virtual tmp< fvVectorMatrixdivDevRhoReff (volVectorField &U) const
 Return the source term for the momentum equation.
virtual tmp< fvVectorMatrixdivDevRhoReff (const volScalarField &rho, volVectorField &U) const
 Return the source term for the momentum equation.
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.
virtual ~eddyViscosity ()=default
 Destructor.
virtual bool read ()=0
 Re-read model coefficients if they have changed.
virtual tmp< volScalarFieldnut () const
 Return the turbulence viscosity.
virtual tmp< scalarFieldnut (const label patchi) const
 Return the turbulence viscosity on patch.
virtual tmp< volScalarFieldk () const =0
 Return the turbulence kinetic energy.
virtual void validate ()
 Validate the turbulence fields after construction.
virtual void correct ()=0
 Solve the turbulence equations and correct the turbulence viscosity.
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.
virtual ~linearViscousStress ()=default
 Destructor.

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 51 of file nonlinearEddyViscosity.H.

Member Typedef Documentation

◆ alphaField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::alphaField alphaField

Definition at line 72 of file nonlinearEddyViscosity.H.

◆ rhoField

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 73 of file nonlinearEddyViscosity.H.

◆ transportModel

template<class BasicTurbulenceModel>
typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 74 of file nonlinearEddyViscosity.H.

Constructor & Destructor Documentation

◆ nonlinearEddyViscosity()

template<class BasicTurbulenceModel>
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 28 of file nonlinearEddyViscosity.C.

References alpha, Foam::dimVelocity, eddyViscosity< BasicTurbulenceModel >::eddyViscosity(), nonlinearStress_, phi, rho, Foam::sqr(), timeName, U, and Foam::Zero.

Here is the call graph for this function:

◆ ~nonlinearEddyViscosity()

template<class BasicTurbulenceModel>
virtual ~nonlinearEddyViscosity ( )
virtualdefault

Destructor.

References rho, and U.

Member Function Documentation

◆ correctNonlinearStress()

template<class BasicTurbulenceModel>
virtual void correctNonlinearStress ( const volTensorField & gradU)
protectedpure virtual

Implemented in LienCubicKE, and ShihQuadraticKE.

◆ R()

template<class BasicTurbulenceModel>
Foam::tmp< Foam::volSymmTensorField > R ( ) const
virtual

Return the Reynolds stress tensor.

Reimplemented from eddyViscosity< BasicTurbulenceModel >.

Definition at line 70 of file nonlinearEddyViscosity.C.

References nonlinearStress_, eddyViscosity< BasicTurbulenceModel >::R(), and tmp< T >::ref().

Here is the call graph for this function:

◆ devRhoReff() [1/2]

template<class BasicTurbulenceModel>
Foam::tmp< Foam::volSymmTensorField > devRhoReff ( ) const
virtual

Return the effective stress tensor.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

Definition at line 83 of file nonlinearEddyViscosity.C.

References devRhoReff().

Referenced by devRhoReff().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ devRhoReff() [2/2]

template<class BasicTurbulenceModel>
Foam::tmp< Foam::volSymmTensorField > devRhoReff ( const volVectorField & U) const
virtual

Return the effective stress tensor based on a given velocity field.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

Definition at line 91 of file nonlinearEddyViscosity.C.

References linearViscousStress< BasicTurbulenceModel >::devRhoReff(), nonlinearStress_, tmp< T >::ref(), and U.

Here is the call graph for this function:

◆ divDevRhoReff() [1/2]

template<class BasicTurbulenceModel>
Foam::tmp< Foam::fvVectorMatrix > divDevRhoReff ( volVectorField & U) const
virtual

Return the source term for the momentum equation.

Reimplemented from linearViscousStress< BasicTurbulenceModel >.

Definition at line 108 of file nonlinearEddyViscosity.C.

References U.

◆ divDevRhoReff() [2/2]

template<class BasicTurbulenceModel>
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 123 of file nonlinearEddyViscosity.C.

Member Data Documentation

◆ nonlinearStress_

template<class BasicTurbulenceModel>
volSymmTensorField nonlinearStress_
protected

Definition at line 62 of file nonlinearEddyViscosity.H.

Referenced by devRhoReff(), nonlinearEddyViscosity(), and R().


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