Spalart-Allmaras one-eqn mixing-length model for incompressible and compressible external flows. More...


Public Types | |
| typedef BasicMomentumTransportModel::alphaField | alphaField |
| typedef BasicMomentumTransportModel::rhoField | rhoField |
Public Types inherited from eddyViscosity< RASModel< BasicMomentumTransportModel > > | |
| typedef BasicMomentumTransportModel::alphaField | alphaField |
| typedef BasicMomentumTransportModel::rhoField | rhoField |
Public Types inherited from linearViscousStress< BasicMomentumTransportModel > | |
| typedef BasicMomentumTransportModel::alphaField | alphaField |
| typedef BasicMomentumTransportModel::rhoField | rhoField |
Public Member Functions | |
| TypeName ("SpalartAllmaras") | |
| Runtime type information. More... | |
| SpalartAllmaras (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName) | |
| Construct from components. More... | |
| SpalartAllmaras (const SpalartAllmaras &)=delete | |
| Disallow default bitwise copy construction. More... | |
| virtual | ~SpalartAllmaras () |
| Destructor. More... | |
| virtual bool | read () |
| Read RASProperties dictionary. More... | |
| tmp< volScalarField > | DnuTildaEff () const |
| Return the effective diffusivity for nuTilda. More... | |
| virtual tmp< volScalarField > | k () const |
| Return the turbulence kinetic energy. More... | |
| virtual tmp< volScalarField > | epsilon () const |
| Return the turbulence kinetic energy dissipation rate. More... | |
| virtual tmp< volScalarField > | omega () const |
| Return the turbulence specific dissipation rate. More... | |
| virtual void | correct () |
| Solve the turbulence equations and correct the turbulence viscosity. More... | |
| void | operator= (const SpalartAllmaras &)=delete |
| Disallow default bitwise assignment. More... | |
Public Member Functions inherited from eddyViscosity< RASModel< BasicMomentumTransportModel > > | |
| eddyViscosity (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 | ~eddyViscosity () |
| Destructor. 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< volSymmTensorField > | R () const |
| Return the Reynolds stress tensor [m^2/s^2]. More... | |
| virtual void | validate () |
| Validate the turbulence fields after construction. More... | |
Public Member Functions inherited from linearViscousStress< BasicMomentumTransportModel > | |
| linearViscousStress (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 | ~linearViscousStress () |
| Destructor. More... | |
| virtual tmp< surfaceVectorField > | devTau () const |
| Return the effective surface stress. More... | |
| virtual tmp< fvVectorMatrix > | divDevTau (volVectorField &U) const |
| Return the source term for the momentum equation. More... | |
| virtual tmp< fvVectorMatrix > | divDevTau (const volScalarField &rho, volVectorField &U) const |
| Return the source term for the momentum equation. More... | |
| template<class RhoFieldType > | |
| Foam::tmp< Foam::fvVectorMatrix > | DivDevTau (const RhoFieldType &rho, volVectorField &U) const |
Protected Member Functions | |
| tmp< volScalarField > | chi () const |
| tmp< volScalarField > | fv1 (const volScalarField &chi) const |
| tmp< volScalarField::Internal > | fv2 (const volScalarField::Internal &chi, const volScalarField::Internal &fv1) const |
| tmp< volScalarField::Internal > | Stilda (const volScalarField::Internal &chi, const volScalarField::Internal &fv1) const |
| tmp< volScalarField::Internal > | fw (const volScalarField::Internal &Stilda) const |
| void | correctNut (const volScalarField &fv1) |
| virtual void | correctNut () |
Protected Member Functions inherited from linearViscousStress< BasicMomentumTransportModel > | |
| template<class RhoFieldType > | |
| tmp< fvVectorMatrix > | DivDevTau (const RhoFieldType &rho, volVectorField &U) const |
| Return the source term for the momentum equation. More... | |
Protected Attributes | |
| dimensionedScalar | sigmaNut_ |
| dimensionedScalar | kappa_ |
| dimensionedScalar | Cb1_ |
| dimensionedScalar | Cb2_ |
| dimensionedScalar | Cw1_ |
| dimensionedScalar | Cw2_ |
| dimensionedScalar | Cw3_ |
| dimensionedScalar | Cv1_ |
| dimensionedScalar | Cs_ |
| volScalarField | nuTilda_ |
Protected Attributes inherited from eddyViscosity< RASModel< BasicMomentumTransportModel > > | |
| volScalarField | nut_ |
Spalart-Allmaras one-eqn mixing-length model for incompressible and compressible external flows.
Reference:
Spalart, P.R., & Allmaras, S.R. (1994).
A one-equation turbulence model for aerodynamic flows.
La Recherche Aerospatiale, 1, 5-21.
The model is implemented without the trip-term and hence the ft2 term is not needed.
It is necessary to limit the Stilda generation term as the model generates unphysical results if this term becomes negative which occurs for complex flow. Several approaches have been proposed to limit Stilda but it is not clear which is the most appropriate. Here the limiter proposed by Spalart is implemented in which Stilda is clipped at Cs*Omega with the default value of Cs = 0.3.
The default model coefficients are
SpalartAllmarasCoeffs
{
Cb1 0.1355;
Cb2 0.622;
Cw2 0.3;
Cw3 2.0;
Cv1 7.1;
Cs 0.3;
sigmaNut 0.66666;
kappa 0.41;
}
Definition at line 85 of file SpalartAllmaras.H.
| typedef BasicMomentumTransportModel::alphaField alphaField |
Definition at line 142 of file SpalartAllmaras.H.
| typedef BasicMomentumTransportModel::rhoField rhoField |
Definition at line 143 of file SpalartAllmaras.H.
| SpalartAllmaras | ( | const alphaField & | alpha, |
| const rhoField & | rho, | ||
| const volVectorField & | U, | ||
| const surfaceScalarField & | alphaRhoPhi, | ||
| const surfaceScalarField & | phi, | ||
| const viscosity & | viscosity, | ||
| const word & | type = typeName |
||
| ) |
Construct from components.
Definition at line 159 of file SpalartAllmaras.C.
|
delete |
Disallow default bitwise copy construction.
|
inlinevirtual |
Destructor.
Definition at line 169 of file SpalartAllmaras.H.
|
protected |
Definition at line 42 of file SpalartAllmaras.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::New(), and Foam::typedName().

|
protected |
Definition at line 49 of file SpalartAllmaras.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::New(), Foam::pow3(), and Foam::typedName().

|
protected |
Definition at line 60 of file SpalartAllmaras.C.
References DimensionedField< Type, GeoMesh, PrimitiveField >::New(), and Foam::typedName().

|
protected |
Definition at line 76 of file SpalartAllmaras.C.
References Foam::fvc::grad(), Foam::mag(), Foam::max(), DimensionedField< Type, GeoMesh, PrimitiveField >::New(), Foam::skew(), Foam::sqr(), Foam::sqrt(), Foam::typedName(), and y.

|
protected |
Definition at line 104 of file SpalartAllmaras.C.
References DimensionedField< Type, GeoMesh, PrimitiveField >::dimensions(), Foam::max(), Foam::min(), DimensionedField< Type, GeoMesh, PrimitiveField >::New(), Foam::pow(), Foam::pow6(), Foam::sqr(), Foam::typedName(), and y.

|
protected |
Definition at line 138 of file SpalartAllmaras.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::correctBoundaryConditions(), and dictionary::New().

|
protectedvirtual |
Implements eddyViscosity< RASModel< BasicMomentumTransportModel > >.
Definition at line 150 of file SpalartAllmaras.C.
| TypeName | ( | "SpalartAllmaras< BasicMomentumTransportModel >" | ) |
Runtime type information.
|
virtual |
Read RASProperties dictionary.
Implements eddyViscosity< RASModel< BasicMomentumTransportModel > >.
Definition at line 209 of file SpalartAllmaras.C.
References Foam::read(), and Foam::sqr().

| tmp< volScalarField > DnuTildaEff |
Return the effective diffusivity for nuTilda.
Definition at line 235 of file SpalartAllmaras.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::New().

|
virtual |
Return the turbulence kinetic energy.
Implements eddyViscosity< RASModel< BasicMomentumTransportModel > >.
Definition at line 246 of file SpalartAllmaras.C.
References GeometricField< Type, GeoMesh, PrimitiveField >::New().

|
virtual |
Return the turbulence kinetic energy dissipation rate.
Definition at line 259 of file SpalartAllmaras.C.
References Foam::endl(), GeometricField< Type, GeoMesh, PrimitiveField >::New(), and WarningInFunction.

|
virtual |
Return the turbulence specific dissipation rate.
Definition at line 277 of file SpalartAllmaras.C.
References Foam::dimless, Foam::dimTime, Foam::endl(), GeometricField< Type, GeoMesh, PrimitiveField >::New(), and WarningInFunction.

|
virtual |
Solve the turbulence equations and correct the turbulence viscosity.
Implements eddyViscosity< RASModel< BasicMomentumTransportModel > >.
Definition at line 294 of file SpalartAllmaras.C.
References alpha(), Foam::bound(), fvConstraints::constrain(), Foam::MULES::correct(), Foam::fvm::ddt(), Foam::fvm::div(), fvConstraints(), fvModels(), Foam::fvc::grad(), Foam::fvm::laplacian(), Foam::magSqr(), dictionary::New(), tmp< T >::ref(), rho, Foam::solve(), fvModels::source(), Foam::fvm::Sp(), Foam::sqr(), and y.

|
delete |
Disallow default bitwise assignment.
|
protected |
Definition at line 96 of file SpalartAllmaras.H.
|
protected |
Definition at line 97 of file SpalartAllmaras.H.
|
protected |
Definition at line 99 of file SpalartAllmaras.H.
|
protected |
Definition at line 100 of file SpalartAllmaras.H.
|
protected |
Definition at line 101 of file SpalartAllmaras.H.
|
protected |
Definition at line 102 of file SpalartAllmaras.H.
|
protected |
Definition at line 103 of file SpalartAllmaras.H.
|
protected |
Definition at line 104 of file SpalartAllmaras.H.
|
protected |
Definition at line 105 of file SpalartAllmaras.H.
|
protected |
Definition at line 110 of file SpalartAllmaras.H.