Reynolds-stress turbulence model base class. More...
Public Types | |
typedef BasicTurbulenceModel::alphaField | alphaField |
typedef BasicTurbulenceModel::rhoField | rhoField |
typedef BasicTurbulenceModel::transportModel | transportModel |
Public Member Functions | |
ReynoldsStress (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 | ~ReynoldsStress ()=default |
Destructor. More... | |
virtual bool | read ()=0 |
Re-read model coefficients if they have changed. More... | |
virtual tmp< volScalarField > | nut () const |
Return the turbulence viscosity. More... | |
virtual tmp< scalarField > | nut (const label patchi) const |
Return the turbulence viscosity on patch. More... | |
virtual tmp< volScalarField > | k () const |
Return the turbulence kinetic energy. More... | |
virtual tmp< volSymmTensorField > | R () const |
Return the Reynolds stress tensor. More... | |
virtual tmp< volSymmTensorField > | devRhoReff () const |
Return the effective stress tensor. More... | |
virtual tmp< volSymmTensorField > | devRhoReff (const volVectorField &U) const |
Return the effective stress tensor based on a given velocity field. More... | |
virtual tmp< fvVectorMatrix > | divDevRhoReff (volVectorField &U) const |
Return the source term for the momentum equation. More... | |
virtual tmp< fvVectorMatrix > | divDevRhoReff (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::fvVectorMatrix > | DivDevRhoReff (const RhoFieldType &rho, volVectorField &U) const |
Protected Member Functions | |
void | boundNormalStress (volSymmTensorField &R) const |
void | correctWallShearStress (volSymmTensorField &R) const |
void | checkRealizabilityConditions (const volSymmTensorField &R) const |
virtual void | correctNut ()=0 |
Update the eddy-viscosity. More... | |
template<class RhoFieldType > | |
tmp< fvVectorMatrix > | DivDevRhoReff (const RhoFieldType &rho, volVectorField &U) const |
Return the source term for the momentum equation. More... | |
Protected Attributes | |
dimensionedScalar | couplingFactor_ |
volSymmTensorField | R_ |
volScalarField | nut_ |
Reynolds-stress turbulence model base class.
Realizability conditions (tag:S): Schumann, U. (1977). Realizability of Reynoldsâstress turbulence models. The Physics of Fluids, 20(5), 721-725. DOI:10.1063/1.861942
Definition at line 58 of file ReynoldsStress.H.
typedef BasicTurbulenceModel::alphaField alphaField |
Definition at line 101 of file ReynoldsStress.H.
typedef BasicTurbulenceModel::rhoField rhoField |
Definition at line 102 of file ReynoldsStress.H.
typedef BasicTurbulenceModel::transportModel transportModel |
Definition at line 103 of file ReynoldsStress.H.
ReynoldsStress | ( | 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 164 of file ReynoldsStress.C.
|
virtualdefault |
Destructor.
|
protected |
Definition at line 31 of file ReynoldsStress.C.
|
protected |
Definition at line 56 of file ReynoldsStress.C.
|
protected |
Definition at line 103 of file ReynoldsStress.C.
|
protectedpure virtual |
Update the eddy-viscosity.
Implemented in LRR< BasicTurbulenceModel >, SSG< BasicTurbulenceModel >, and DeardorffDiffStress< BasicTurbulenceModel >.
|
protected |
Return the source term for the momentum equation.
|
pure virtual |
Re-read model coefficients if they have changed.
Implemented in EBRSM< BasicTurbulenceModel >, LRR< BasicTurbulenceModel >, SSG< BasicTurbulenceModel >, and DeardorffDiffStress< BasicTurbulenceModel >.
Definition at line 236 of file ReynoldsStress.C.
|
inlinevirtual |
Return the turbulence viscosity.
Definition at line 140 of file ReynoldsStress.H.
|
inlinevirtual |
Return the turbulence viscosity on patch.
Definition at line 148 of file ReynoldsStress.H.
|
virtual |
Return the turbulence kinetic energy.
Reimplemented in LRR< BasicTurbulenceModel >, and SSG< BasicTurbulenceModel >.
Definition at line 252 of file ReynoldsStress.C.
|
virtual |
Return the Reynolds stress tensor.
Definition at line 244 of file ReynoldsStress.C.
|
virtual |
Return the effective stress tensor.
Definition at line 262 of file ReynoldsStress.C.
|
virtual |
Return the effective stress tensor based on a given velocity field.
Definition at line 271 of file ReynoldsStress.C.
|
virtual |
Return the source term for the momentum equation.
Definition at line 346 of file ReynoldsStress.C.
|
virtual |
Return the source term for the momentum equation.
Definition at line 357 of file ReynoldsStress.C.
|
virtual |
Validate the turbulence fields after construction.
Update turbulence viscosity and other derived fields as requires
Definition at line 367 of file ReynoldsStress.C.
|
pure virtual |
Solve the turbulence equations and correct the turbulence viscosity.
Implemented in EBRSM< BasicTurbulenceModel >, LRR< BasicTurbulenceModel >, SSG< BasicTurbulenceModel >, and DeardorffDiffStress< BasicTurbulenceModel >.
Definition at line 374 of file ReynoldsStress.C.
Foam::tmp<Foam::fvVectorMatrix> DivDevRhoReff | ( | const RhoFieldType & | rho, |
volVectorField & | U | ||
) | const |
Definition at line 299 of file ReynoldsStress.C.
|
protected |
Definition at line 69 of file ReynoldsStress.H.
|
protected |
Definition at line 73 of file ReynoldsStress.H.
|
protected |
Definition at line 74 of file ReynoldsStress.H.
Referenced by ReynoldsStress< RASModel< BasicTurbulenceModel > >::nut().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.