Spalart-Allmaras 1-eqn mixing-length model for incompressible external flows. More...
#include <incompressibleRASModels/SpalartAllmaras.H>
Spalart-Allmaras 1-eqn mixing-length model for incompressible 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;
kappa 0.41;
}
Definition at line 85 of file SpalartAllmaras.H.
Inheritance diagram for SpalartAllmaras:
Collaboration diagram for SpalartAllmaras:Public Member Functions | |
| TypeName ("SpalartAllmaras") | |
| Runtime type information.
| |
| SpalartAllmaras (const volVectorField &U, const surfaceScalarField &phi, transportModel &transport) | |
| Construct from components.
| |
| virtual | ~SpalartAllmaras () |
| Destructor.
| |
| virtual tmp< volScalarField > | nut () const |
| Return the turbulence viscosity.
| |
| tmp< volScalarField > | DnuTildaEff () const |
| Return the effective diffusivity for nuTilda.
| |
| 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 > | devReff () const |
| Return the effective stress tensor including the laminar stress.
| |
| virtual tmp< fvVectorMatrix > | divDevReff (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 volVectorField & | U, |
| const surfaceScalarField & | phi, | ||
| transportModel & | transport | ||
| ) |
Construct from components.
Definition at line 106 of file SpalartAllmaras.C.
| virtual ~SpalartAllmaras | ( | ) | [inline, virtual]
|
Destructor.
Definition at line 152 of file SpalartAllmaras.H.
| TypeName | ( | "SpalartAllmaras" | ) |
Runtime type information.
| virtual tmp<volScalarField> nut | ( | ) | const [inline, virtual]
|
Return the turbulence viscosity.
Implements incompressible::RASModel.
Definition at line 159 of file SpalartAllmaras.H.
Referenced by SpalartAllmaras::R().
| tmp< volScalarField > DnuTildaEff | ( | ) | const |
Return the effective diffusivity for nuTilda.
Definition at line 223 of file SpalartAllmaras.C.
References incompressible::turbulenceModel::nu().
Referenced by SpalartAllmaras::correct().
| tmp< volScalarField > k | ( | ) | const [virtual]
|
Return the turbulence kinetic energy.
Implements incompressible::RASModel.
Definition at line 232 of file SpalartAllmaras.C.
References incompressible::turbulenceModel::mesh_, incompressible::turbulenceModel::runTime_, and Time::timeName().
Referenced by SpalartAllmaras::R().
| tmp< volScalarField > epsilon | ( | ) | const [virtual]
|
Return the turbulence kinetic energy dissipation rate.
Implements incompressible::RASModel.
Definition at line 251 of file SpalartAllmaras.C.
References incompressible::turbulenceModel::mesh_, incompressible::turbulenceModel::runTime_, and Time::timeName().
| tmp< volSymmTensorField > R | ( | ) | const [virtual]
|
Return the Reynolds stress tensor.
Implements incompressible::RASModel.
Definition at line 270 of file SpalartAllmaras.C.
References Foam::fvc::grad(), Foam::I, SpalartAllmaras::k(), incompressible::turbulenceModel::mesh_, IOobject::NO_READ, IOobject::NO_WRITE, SpalartAllmaras::nut(), incompressible::turbulenceModel::runTime_, Time::timeName(), Foam::twoSymm(), and incompressible::turbulenceModel::U_.
| tmp< volSymmTensorField > devReff | ( | ) | const [virtual]
|
Return the effective stress tensor including the laminar stress.
Implements incompressible::RASModel.
Definition at line 290 of file SpalartAllmaras.C.
References Foam::dev(), Foam::fvc::grad(), incompressible::turbulenceModel::mesh_, IOobject::NO_READ, IOobject::NO_WRITE, incompressible::RASModel::nuEff(), incompressible::turbulenceModel::runTime_, Time::timeName(), Foam::twoSymm(), and incompressible::turbulenceModel::U_.
| tmp< fvVectorMatrix > divDevReff | ( | volVectorField & | U ) | const [virtual]
|
Return the source term for the momentum equation.
Implements incompressible::RASModel.
Definition at line 310 of file SpalartAllmaras.C.
References Foam::dev(), Foam::fvc::div(), Foam::fvc::grad(), Foam::fvm::laplacian(), incompressible::RASModel::nuEff(), and Foam::T().
| void correct | ( | ) | [virtual]
|
Solve the turbulence equations and correct the turbulence viscosity.
Implements incompressible::RASModel.
Definition at line 345 of file SpalartAllmaras.C.
References Foam::bound(), polyMesh::changing(), wallDist::correct(), GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), Foam::fvm::ddt(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::fvc::div(), Foam::fvm::div(), SpalartAllmaras::DnuTildaEff(), Foam::fvc::grad(), GeometricField< Type, PatchField, GeoMesh >::internalField(), Foam::fvm::laplacian(), Foam::mag(), Foam::magSqr(), incompressible::turbulenceModel::mesh_, incompressible::turbulenceModel::phi_, Foam::skew(), Foam::solve(), Foam::fvm::Sp(), Foam::sqr(), Foam::sqrt(), incompressible::RASModel::turbulence_, and incompressible::turbulenceModel::U_.
| bool read | ( | ) | [virtual]
|
Read RASProperties dictionary.
Implements incompressible::RASModel.
Definition at line 322 of file SpalartAllmaras.C.
References incompressible::RASModel::coeffDict(), dimensioned< Type >::readIfPresent(), and Foam::sqr().