Spalart-Allmaras one-eqn mixing-length model for compressible external flows. More...
#include <compressibleRASModels/SpalartAllmaras.H>
Spalart-Allmaras one-eqn mixing-length model for compressible external flows.
"A One-Equation Turbulence Model for Aerodynamic Flows" P.R. Spalart, S.R. Allmaras, La Recherche Aerospatiale, No. 1, 1994, pp. 5--21. Extended according to: "An Unstructured Grid Generation and Adaptive Solution Technique for High Reynolds Number Compressible Flows" G.A. Ashford, Ph.D. thesis, University of Michigan, 1996.
The default model coefficients correspond to the following:
SpalartAllmarasCoeffs { Cb1 0.1355; Cb2 0.622; Cw2 0.3; Cw3 2.0; Cv1 7.1; Cv2 5.0; sigmaNut0.66666; Prt 1.0;// only for compressible kappa 0.41; }
Definition at line 87 of file SpalartAllmaras.H.
Public Member Functions | |
TypeName ("SpalartAllmaras") | |
Runtime type information.
| |
SpalartAllmaras (const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const basicThermo &thermophysicalModel) | |
Construct from components.
| |
virtual | ~SpalartAllmaras () |
Destructor.
| |
tmp< volScalarField > | DnuTildaEff () const |
Return the effective diffusivity for nuTilda.
| |
virtual tmp< volScalarField > | mut () const |
Return the turbulence viscosity.
| |
virtual tmp< volScalarField > | alphaEff () const |
Return the effective turbulent thermal diffusivity.
| |
virtual tmp< volScalarField > | k () const |
Return the turbulence kinetic energy.
| |
virtual tmp< volScalarField > | epsilon () const |
Return the turbulence kinetic energy dissipation rate.
| |
virtual tmp< volSymmTensorField > | R () const |
Return the Reynolds stress tensor.
| |
virtual tmp< volSymmTensorField > | devRhoReff () const |
Return the effective stress tensor including the laminar stress.
| |
virtual tmp< fvVectorMatrix > | divDevRhoReff (volVectorField &U) const |
Return the source term for the momentum equation.
| |
virtual void | correct () |
Solve the turbulence equations and correct the turbulence viscosity.
| |
virtual bool | read () |
Read RASProperties dictionary.
|
SpalartAllmaras | ( | const volScalarField & | rho, |
const volVectorField & | U, | ||
const surfaceScalarField & | phi, | ||
const basicThermo & | thermophysicalModel | ||
) |
Construct from components.
Definition at line 108 of file SpalartAllmaras.C.
virtual ~SpalartAllmaras | ( | ) | [inline, virtual]
|
Destructor.
Definition at line 155 of file SpalartAllmaras.H.
TypeName | ( | "SpalartAllmaras" | ) |
Runtime type information.
tmp<volScalarField> DnuTildaEff | ( | ) | const [inline]
|
Return the effective diffusivity for nuTilda.
Definition at line 162 of file SpalartAllmaras.H.
References SpalartAllmaras::DnuTildaEff(), mu, and turbulenceModel::rho_.
Referenced by SpalartAllmaras::DnuTildaEff().
virtual tmp<volScalarField> mut | ( | ) | const [inline, virtual]
|
Return the turbulence viscosity.
Implements RASModel.
Definition at line 175 of file SpalartAllmaras.H.
References SpalartAllmaras::mut().
Referenced by SpalartAllmaras::mut().
virtual tmp<volScalarField> alphaEff | ( | ) | const [inline, virtual]
|
Return the effective turbulent thermal diffusivity.
Implements RASModel.
Definition at line 181 of file SpalartAllmaras.H.
References turbulenceModel::alpha(), and SpalartAllmaras::alphaEff().
Referenced by SpalartAllmaras::alphaEff().
virtual tmp<volScalarField> k | ( | ) | const [inline, virtual]
|
Return the turbulence kinetic energy.
Implements RASModel.
Definition at line 190 of file SpalartAllmaras.H.
References turbulenceModel::mesh_, turbulenceModel::runTime_, and Time::timeName().
virtual tmp<volScalarField> epsilon | ( | ) | const [inline, virtual]
|
Return the turbulence kinetic energy dissipation rate.
Implements RASModel.
Definition at line 209 of file SpalartAllmaras.H.
References SpalartAllmaras::epsilon(), turbulenceModel::mesh_, turbulenceModel::runTime_, and Time::timeName().
Referenced by SpalartAllmaras::epsilon().
tmp< volSymmTensorField > R | ( | ) | const [virtual]
|
Return the Reynolds stress tensor.
Implements RASModel.
Definition at line 251 of file SpalartAllmaras.C.
References Foam::dev(), Foam::fvc::grad(), Foam::I, k(), IOobject::NO_READ, IOobject::NO_WRITE, and Foam::twoSymm().
tmp< volSymmTensorField > devRhoReff | ( | ) | const [virtual]
|
Return the effective stress tensor including the laminar stress.
Implements RASModel.
Definition at line 271 of file SpalartAllmaras.C.
References Foam::dev(), Foam::fvc::grad(), muEff(), IOobject::NO_READ, IOobject::NO_WRITE, and Foam::twoSymm().
tmp< fvVectorMatrix > divDevRhoReff | ( | volVectorField & | U ) | const [virtual]
|
Return the source term for the momentum equation.
Implements RASModel.
Definition at line 291 of file SpalartAllmaras.C.
References Foam::dev2(), Foam::fvc::div(), Foam::fvc::grad(), Foam::fvm::laplacian(), muEff(), and Foam::T().
void correct | ( | ) | [virtual]
|
Solve the turbulence equations and correct the turbulence viscosity.
Implements RASModel.
Definition at line 328 of file SpalartAllmaras.C.
References Foam::bound(), correct(), Foam::fvm::ddt(), Foam::fvm::div(), Foam::fvc::grad(), GeometricField< Type, PatchField, GeoMesh >::internalField(), Foam::fvm::laplacian(), Foam::mag(), Foam::magSqr(), Foam::skew(), Foam::solve(), Foam::fvm::Sp(), Foam::sqr(), and Foam::sqrt().
bool read | ( | ) | [virtual]
|
Read RASProperties dictionary.
Implements RASModel.
Definition at line 303 of file SpalartAllmaras.C.
References dimensioned< Type >::readIfPresent(), and Foam::sqr().