#include <SpalartAllmarasBase.H>


Public Types | |
| typedef BasicEddyViscosityModel::alphaField | alphaField |
| typedef BasicEddyViscosityModel::rhoField | rhoField |
| typedef BasicEddyViscosityModel::transportModel | transportModel |
Public Member Functions | |
| SpalartAllmarasBase (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName) | |
| Construct from components. | |
| virtual | ~SpalartAllmarasBase ()=default |
| Destructor. | |
| virtual bool | read () |
| Re-read model coefficients if they have changed. | |
| tmp< volScalarField > | DnuTildaEff () const |
| Return the effective diffusivity for nuTilda. | |
| virtual tmp< volScalarField > | k () const |
| Return the (estimated) turbulent kinetic energy. | |
| virtual tmp< volScalarField > | epsilon () const |
| Return the (estimated) turbulent kinetic energy dissipation rate. | |
| virtual tmp< volScalarField > | omega () const |
| Return the (estimated) specific dissipation rate. | |
| tmp< volScalarField > | nuTilda () const |
| Return the modified kinematic viscosity. | |
| virtual void | correct () |
| Correct nuTilda and related properties. | |
Protected Member Functions | |
| tmp< volScalarField > | chi () const |
| tmp< volScalarField > | fv1 (const volScalarField &chi) const |
| tmp< volScalarField > | fv2 (const volScalarField &chi, const volScalarField &fv1) const |
| tmp< volScalarField > | ft2 (const volScalarField &chi) const |
| tmp< volScalarField > | Omega (const volTensorField &gradU) const |
| tmp< volScalarField > | r (const volScalarField &nur, const volScalarField &Stilda, const volScalarField &dTilda) const |
| tmp< volScalarField::Internal > | fw (const volScalarField &Stilda, const volScalarField &dTilda) const |
| virtual tmp< volScalarField > | Stilda (const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU, const volScalarField &dTilda) const |
| virtual tmp< volScalarField > | dTilda (const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const =0 |
| Length scale. | |
| void | correctNut (const volScalarField &fv1) |
| virtual void | correctNut () |
Protected Attributes | |
| dimensionedScalar | sigmaNut_ |
| dimensionedScalar | kappa_ |
| dimensionedScalar | Cb1_ |
| dimensionedScalar | Cb2_ |
| dimensionedScalar | Cw1_ |
| dimensionedScalar | Cw2_ |
| dimensionedScalar | Cw3_ |
| dimensionedScalar | Cv1_ |
| dimensionedScalar | Cs_ |
| dimensionedScalar | ck_ |
| Switch | ft2_ |
| dimensionedScalar | Ct3_ |
| dimensionedScalar | Ct4_ |
| volScalarField | nuTilda_ |
| Modified kinematic viscosity [m^2/s]. | |
| const volScalarField & | y_ |
| Wall distance. | |
Definition at line 76 of file SpalartAllmarasBase.H.
| typedef BasicEddyViscosityModel::alphaField alphaField |
Definition at line 185 of file SpalartAllmarasBase.H.
| typedef BasicEddyViscosityModel::rhoField rhoField |
Definition at line 186 of file SpalartAllmarasBase.H.
| typedef BasicEddyViscosityModel::transportModel transportModel |
Definition at line 187 of file SpalartAllmarasBase.H.
| SpalartAllmarasBase | ( | const word & | type, |
| const alphaField & | alpha, | ||
| const rhoField & | rho, | ||
| const volVectorField & | U, | ||
| const surfaceScalarField & | alphaRhoPhi, | ||
| const surfaceScalarField & | phi, | ||
| const transportModel & | transport, | ||
| const word & | propertiesName = turbulenceModel::propertiesName ) |
|
virtualdefault |
Destructor.
|
protected |
Definition at line 35 of file SpalartAllmarasBase.C.
Referenced by correct(), SpalartAllmaras< Foam::EddyDiffusivity< Foam::fluidThermoCompressibleTurbulenceModel > >::dTilda(), dTilda(), epsilon(), ft2(), fv1(), fv2(), and k().

|
protected |
Definition at line 42 of file SpalartAllmarasBase.C.
References chi(), Cv1_, and Foam::pow3().
Referenced by correct(), correctNut(), SpalartAllmaras< Foam::EddyDiffusivity< Foam::fluidThermoCompressibleTurbulenceModel > >::dTilda(), dTilda(), epsilon(), fv2(), and k().


|
protected |
|
protected |
Definition at line 64 of file SpalartAllmarasBase.C.
References chi(), Ct3_, Ct4_, Foam::dimless, Foam::exp(), ft2_, tmp< T >::New(), IOobjectOption::NO_READ, IOobjectOption::NO_WRITE, Foam::sqr(), and Foam::Zero.
Referenced by correct().


|
protected |
Definition at line 91 of file SpalartAllmarasBase.C.
References Foam::mag(), Foam::skew(), and Foam::sqrt().

|
protected |
Definition at line 101 of file SpalartAllmarasBase.C.
References dTilda(), kappa_, Foam::max(), Foam::min(), Foam::sqr(), Stilda(), and Foam::tr().
Referenced by fw().


|
protected |
Definition at line 120 of file SpalartAllmarasBase.C.
References Cw2_, Cw3_, dTilda(), g, nuTilda_, Foam::pow(), Foam::pow6(), r(), and Stilda().
Referenced by correct().


|
protectedvirtual |
Definition at line 134 of file SpalartAllmarasBase.C.
Referenced by correct(), fw(), and r().

|
protectedpure virtual |
Length scale.
Implemented in SpalartAllmaras< BasicTurbulenceModel >, SpalartAllmaras< EddyDiffusivity< fluidThermoCompressibleTurbulenceModel > >, and SpalartAllmaras< Foam::EddyDiffusivity< Foam::fluidThermoCompressibleTurbulenceModel > >.
Referenced by correct(), fw(), and r().


|
protected |
Definition at line 154 of file SpalartAllmarasBase.C.
Referenced by correct(), and correctNut().

|
protectedvirtual |
Reimplemented in SpalartAllmaras< EddyDiffusivity< fluidThermoCompressibleTurbulenceModel > >, and SpalartAllmaras< Foam::EddyDiffusivity< Foam::fluidThermoCompressibleTurbulenceModel > >.
Definition at line 166 of file SpalartAllmarasBase.C.
References correctNut(), and fv1().
Referenced by SpalartAllmaras< BasicTurbulenceModel >::correctNut().


|
virtual |
| tmp< volScalarField > DnuTildaEff | ( | ) | const |
Return the effective diffusivity for nuTilda.
Definition at line 376 of file SpalartAllmarasBase.C.
References IOobject::groupName(), tmp< T >::New(), nuTilda_, and sigmaNut_.
Referenced by correct().


|
virtual |
Return the (estimated) turbulent kinetic energy.
Definition at line 387 of file SpalartAllmarasBase.C.
References Foam::cbrt(), chi(), fv1(), Foam::fvc::grad(), IOobject::groupName(), Foam::mag(), tmp< T >::New(), nuTilda_, Foam::sqrt(), and Foam::symm().

|
virtual |
Return the (estimated) turbulent kinetic energy dissipation rate.
Definition at line 402 of file SpalartAllmarasBase.C.
References chi(), fv1(), IOobject::groupName(), k, tmp< T >::New(), nuTilda_, Foam::sqr(), and Foam::sqrt().

|
virtual |
Return the (estimated) specific dissipation rate.
Definition at line 418 of file SpalartAllmarasBase.C.
References Foam::dimLength, Foam::dimTime, IOobject::groupName(), tmp< T >::New(), and Foam::sqr().

|
inline |
Return the modified kinematic viscosity.
Definition at line 244 of file SpalartAllmarasBase.H.
References nuTilda_.
|
virtual |
Correct nuTilda and related properties.
Definition at line 433 of file SpalartAllmarasBase.C.
References alpha, Foam::bound(), Cb1_, Cb2_, chi(), tmp< T >::clear(), correctNut(), Cw1_, Foam::fvm::ddt(), Foam::fvm::div(), DnuTildaEff(), dTilda(), ft2(), fv1(), fvOptions, fw(), Foam::fvc::grad(), kappa_, Foam::fvm::laplacian(), Foam::magSqr(), options::New(), nuTilda_, tmp< T >::ref(), rho, sigmaNut_, solve(), Foam::fvm::Sp(), Foam::sqr(), Stilda(), U, and Foam::Zero.

|
protected |
Definition at line 99 of file SpalartAllmarasBase.H.
Referenced by correct(), DnuTildaEff(), and read().
|
protected |
Definition at line 100 of file SpalartAllmarasBase.H.
|
protected |
Definition at line 102 of file SpalartAllmarasBase.H.
|
protected |
Definition at line 103 of file SpalartAllmarasBase.H.
|
protected |
Definition at line 104 of file SpalartAllmarasBase.H.
|
protected |
Definition at line 105 of file SpalartAllmarasBase.H.
|
protected |
Definition at line 106 of file SpalartAllmarasBase.H.
|
protected |
Definition at line 107 of file SpalartAllmarasBase.H.
|
protected |
Definition at line 108 of file SpalartAllmarasBase.H.
Referenced by read().
|
protected |
Definition at line 109 of file SpalartAllmarasBase.H.
Referenced by read().
|
protected |
Definition at line 111 of file SpalartAllmarasBase.H.
|
protected |
Definition at line 112 of file SpalartAllmarasBase.H.
|
protected |
Definition at line 113 of file SpalartAllmarasBase.H.
|
protected |
Modified kinematic viscosity [m^2/s].
Definition at line 121 of file SpalartAllmarasBase.H.
Referenced by chi(), correct(), DnuTildaEff(), epsilon(), fw(), k(), and nuTilda().
|
protected |
Wall distance.
Note: different to wall distance in parent RASModel which is for near-wall cells only
Definition at line 129 of file SpalartAllmarasBase.H.