SpalartAllmaras< BasicMomentumTransportModel > Class Template Reference

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

Inheritance diagram for SpalartAllmaras< BasicMomentumTransportModel >:
Collaboration diagram for SpalartAllmaras< BasicMomentumTransportModel >:

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< volScalarFieldDnuTildaEff () const
 Return the effective diffusivity for nuTilda. More...
 
virtual tmp< volScalarFieldk () const
 Return the turbulence kinetic energy. More...
 
virtual tmp< volScalarFieldepsilon () const
 Return the turbulence kinetic energy dissipation rate. More...
 
virtual tmp< volScalarFieldomega () 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< volScalarFieldnut () const
 Return the turbulence viscosity. More...
 
virtual tmp< scalarFieldnut (const label patchi) const
 Return the turbulence viscosity on patch. More...
 
virtual tmp< volSymmTensorFieldsigma () 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< volSymmTensorFielddevTau () const
 Return the effective stress tensor. More...
 
virtual tmp< fvVectorMatrixdivDevTau (volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual tmp< fvVectorMatrixdivDevTau (const volScalarField &rho, volVectorField &U) const
 Return the source term for the momentum equation. More...
 

Protected Member Functions

tmp< volScalarFieldchi () const
 
tmp< volScalarFieldfv1 (const volScalarField &chi) const
 
tmp< volScalarField::Internalfv2 (const volScalarField::Internal &chi, const volScalarField::Internal &fv1) const
 
tmp< volScalarField::InternalStilda (const volScalarField::Internal &chi, const volScalarField::Internal &fv1) const
 
tmp< volScalarField::Internalfw (const volScalarField::Internal &Stilda) const
 
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_
 
volScalarField nuTilda_
 
- Protected Attributes inherited from eddyViscosity< RASModel< BasicMomentumTransportModel > >
volScalarField nut_
 

Detailed Description

template<class BasicMomentumTransportModel>
class Foam::RASModels::SpalartAllmaras< BasicMomentumTransportModel >

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;
    }
Source files

Definition at line 85 of file SpalartAllmaras.H.

Member Typedef Documentation

◆ alphaField

typedef BasicMomentumTransportModel::alphaField alphaField

Definition at line 142 of file SpalartAllmaras.H.

◆ rhoField

typedef BasicMomentumTransportModel::rhoField rhoField

Definition at line 143 of file SpalartAllmaras.H.

Constructor & Destructor Documentation

◆ SpalartAllmaras() [1/2]

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.

References Foam::type().

Here is the call graph for this function:

◆ SpalartAllmaras() [2/2]

SpalartAllmaras ( const SpalartAllmaras< BasicMomentumTransportModel > &  )
delete

Disallow default bitwise copy construction.

◆ ~SpalartAllmaras()

virtual ~SpalartAllmaras ( )
inlinevirtual

Destructor.

Definition at line 169 of file SpalartAllmaras.H.

Member Function Documentation

◆ chi()

tmp< volScalarField > chi
protected

Definition at line 42 of file SpalartAllmaras.C.

References GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::typedName().

Here is the call graph for this function:

◆ fv1()

tmp< volScalarField > fv1 ( const volScalarField chi) const
protected

Definition at line 49 of file SpalartAllmaras.C.

References GeometricField< Type, PatchField, GeoMesh >::New(), Foam::pow3(), and Foam::typedName().

Here is the call graph for this function:

◆ fv2()

tmp< volScalarField::Internal > fv2 ( const volScalarField::Internal chi,
const volScalarField::Internal fv1 
) const
protected

Definition at line 60 of file SpalartAllmaras.C.

References DimensionedField< Type, GeoMesh >::New(), and Foam::typedName().

Here is the call graph for this function:

◆ Stilda()

tmp< volScalarField::Internal > Stilda ( const volScalarField::Internal chi,
const volScalarField::Internal fv1 
) const
protected

Definition at line 76 of file SpalartAllmaras.C.

References Foam::fvc::grad(), Foam::mag(), Foam::max(), DimensionedField< Type, GeoMesh >::New(), Foam::skew(), Foam::sqr(), Foam::sqrt(), Foam::typedName(), and y.

Here is the call graph for this function:

◆ fw()

◆ correctNut() [1/2]

void correctNut ( const volScalarField fv1)
protected

Definition at line 138 of file SpalartAllmaras.C.

References GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), and dictionary::New().

Here is the call graph for this function:

◆ correctNut() [2/2]

void correctNut
protectedvirtual

◆ TypeName()

TypeName ( "SpalartAllmaras< BasicMomentumTransportModel >"  )

Runtime type information.

◆ read()

bool read
virtual

Read RASProperties dictionary.

Implements eddyViscosity< RASModel< BasicMomentumTransportModel > >.

Definition at line 279 of file SpalartAllmaras.C.

References Foam::read(), dimensioned< Type >::readIfPresent(), and Foam::sqr().

Here is the call graph for this function:

◆ DnuTildaEff()

tmp< volScalarField > DnuTildaEff

Return the effective diffusivity for nuTilda.

Definition at line 305 of file SpalartAllmaras.C.

References GeometricField< Type, PatchField, GeoMesh >::New().

Here is the call graph for this function:

◆ k()

tmp< volScalarField > k
virtual

Return the turbulence kinetic energy.

Implements eddyViscosity< RASModel< BasicMomentumTransportModel > >.

Definition at line 316 of file SpalartAllmaras.C.

References GeometricField< Type, PatchField, GeoMesh >::New().

Here is the call graph for this function:

◆ epsilon()

tmp< volScalarField > epsilon
virtual

Return the turbulence kinetic energy dissipation rate.

Definition at line 329 of file SpalartAllmaras.C.

References Foam::endl(), GeometricField< Type, PatchField, GeoMesh >::New(), and WarningInFunction.

Here is the call graph for this function:

◆ omega()

tmp< volScalarField > omega
virtual

Return the turbulence specific dissipation rate.

Definition at line 347 of file SpalartAllmaras.C.

References Foam::dimless, Foam::dimTime, Foam::endl(), GeometricField< Type, PatchField, GeoMesh >::New(), and WarningInFunction.

Here is the call graph for this function:

◆ correct()

◆ operator=()

void operator= ( const SpalartAllmaras< BasicMomentumTransportModel > &  )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ sigmaNut_

dimensionedScalar sigmaNut_
protected

Definition at line 96 of file SpalartAllmaras.H.

◆ kappa_

dimensionedScalar kappa_
protected

Definition at line 97 of file SpalartAllmaras.H.

◆ Cb1_

dimensionedScalar Cb1_
protected

Definition at line 99 of file SpalartAllmaras.H.

◆ Cb2_

dimensionedScalar Cb2_
protected

Definition at line 100 of file SpalartAllmaras.H.

◆ Cw1_

dimensionedScalar Cw1_
protected

Definition at line 101 of file SpalartAllmaras.H.

◆ Cw2_

dimensionedScalar Cw2_
protected

Definition at line 102 of file SpalartAllmaras.H.

◆ Cw3_

dimensionedScalar Cw3_
protected

Definition at line 103 of file SpalartAllmaras.H.

◆ Cv1_

dimensionedScalar Cv1_
protected

Definition at line 104 of file SpalartAllmaras.H.

◆ Cs_

dimensionedScalar Cs_
protected

Definition at line 105 of file SpalartAllmaras.H.

◆ nuTilda_

volScalarField nuTilda_
protected

Definition at line 110 of file SpalartAllmaras.H.


The documentation for this class was generated from the following files: