ReynoldsStress< BasicMomentumTransportModel > Class Template Referenceabstract

Reynolds-stress turbulence model base class. More...

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

Public Types

typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 

Public Member Functions

 ReynoldsStress (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 ~ReynoldsStress ()
 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
 Return the turbulence kinetic energy. 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...
 
virtual void validate ()
 Validate the turbulence fields after construction. More...
 
virtual void correct ()=0
 Solve the turbulence equations and correct the turbulence viscosity. More...
 
template<class RhoFieldType >
Foam::tmp< Foam::fvVectorMatrixDivDevRhoReff (const RhoFieldType &rho, volVectorField &U) const
 

Protected Member Functions

void boundNormalStress (volSymmTensorField &R) const
 
void correctWallShearStress (volSymmTensorField &R) const
 
virtual void correctNut ()=0
 Update the eddy-viscosity. More...
 
virtual tmp< fvSymmTensorMatrixRSource () const
 Source term for the R equation. More...
 
template<class RhoFieldType >
tmp< fvVectorMatrixDivDevRhoReff (const RhoFieldType &rho, volVectorField &U) const
 Return the source term for the momentum equation. More...
 

Protected Attributes

dimensionedScalar couplingFactor_
 
volSymmTensorField R_
 
volScalarField nut_
 

Detailed Description

template<class BasicMomentumTransportModel>
class Foam::ReynoldsStress< BasicMomentumTransportModel >

Reynolds-stress turbulence model base class.

Source files

Definition at line 47 of file ReynoldsStress.H.

Member Typedef Documentation

◆ alphaField

typedef BasicMomentumTransportModel::alphaField alphaField

Definition at line 88 of file ReynoldsStress.H.

◆ rhoField

typedef BasicMomentumTransportModel::rhoField rhoField

Definition at line 89 of file ReynoldsStress.H.

Constructor & Destructor Documentation

◆ ReynoldsStress()

ReynoldsStress ( 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 121 of file ReynoldsStress.C.

◆ ~ReynoldsStress()

virtual ~ReynoldsStress ( )
inlinevirtual

Destructor.

Definition at line 108 of file ReynoldsStress.H.

Member Function Documentation

◆ boundNormalStress()

void boundNormalStress ( volSymmTensorField R) const
protected

Definition at line 33 of file ReynoldsStress.C.

References R.

◆ correctWallShearStress()

void correctWallShearStress ( volSymmTensorField R) const
protected

Definition at line 58 of file ReynoldsStress.C.

References forAll, patches, patchi, and R.

◆ correctNut()

virtual void correctNut ( )
protectedpure virtual

◆ RSource()

Foam::tmp< Foam::fvSymmTensorMatrix > RSource
protectedvirtual

Source term for the R equation.

Definition at line 105 of file ReynoldsStress.C.

References Foam::dimTime, and Foam::dimVolume.

◆ DivDevRhoReff() [1/2]

tmp<fvVectorMatrix> DivDevRhoReff ( const RhoFieldType &  rho,
volVectorField U 
) const
protected

Return the source term for the momentum equation.

◆ read()

bool read
pure virtual

Re-read model coefficients if they have changed.

Implemented in SSG< BasicMomentumTransportModel >, LRR< BasicMomentumTransportModel >, and DeardorffDiffStress< BasicMomentumTransportModel >.

Definition at line 192 of file ReynoldsStress.C.

References Foam::blockMeshTools::read().

Here is the call graph for this function:

◆ nut() [1/2]

virtual tmp<volScalarField> nut ( ) const
inlinevirtual

Return the turbulence viscosity.

Definition at line 118 of file ReynoldsStress.H.

References ReynoldsStress< BasicMomentumTransportModel >::nut_.

◆ nut() [2/2]

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

Return the turbulence viscosity on patch.

Definition at line 124 of file ReynoldsStress.H.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), ReynoldsStress< BasicMomentumTransportModel >::nut_, and patchi.

Here is the call graph for this function:

◆ k()

Return the turbulence kinetic energy.

Reimplemented in SSG< BasicMomentumTransportModel >, and LRR< BasicMomentumTransportModel >.

Definition at line 208 of file ReynoldsStress.C.

References tmp< T >::ref(), and Foam::tr().

Here is the call graph for this function:

◆ sigma()

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

Definition at line 200 of file ReynoldsStress.C.

◆ devTau()

Return the effective stress tensor.

Definition at line 218 of file ReynoldsStress.C.

References Foam::dev(), Foam::fvc::grad(), Foam::compressible::New(), and Foam::twoSymm().

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.

Definition at line 272 of file ReynoldsStress.C.

References U.

◆ divDevTau() [2/2]

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

Return the source term for the momentum equation.

Definition at line 283 of file ReynoldsStress.C.

References rho, and U.

◆ validate()

void validate
virtual

Validate the turbulence fields after construction.

Update turbulence viscosity and other derived fields as requires

Definition at line 294 of file ReynoldsStress.C.

◆ correct()

void correct
pure virtual

Solve the turbulence equations and correct the turbulence viscosity.

Implemented in SSG< BasicMomentumTransportModel >, LRR< BasicMomentumTransportModel >, and DeardorffDiffStress< BasicMomentumTransportModel >.

Definition at line 301 of file ReynoldsStress.C.

References Foam::MULES::correct().

Here is the call graph for this function:

◆ DivDevRhoReff() [2/2]

Foam::tmp<Foam::fvVectorMatrix> DivDevRhoReff ( const RhoFieldType &  rho,
volVectorField U 
) const

Member Data Documentation

◆ couplingFactor_

dimensionedScalar couplingFactor_
protected

Definition at line 58 of file ReynoldsStress.H.

◆ R_

volSymmTensorField R_
protected

Definition at line 62 of file ReynoldsStress.H.

◆ nut_

volScalarField nut_
protected

Definition at line 63 of file ReynoldsStress.H.

Referenced by ReynoldsStress< BasicMomentumTransportModel >::nut().


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