Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SpalartAllmarasDES< BasicTurbulenceModel > Class Template Reference

SpalartAllmarasDES DES turbulence model for incompressible and compressible flows. More...

Inheritance diagram for SpalartAllmarasDES< BasicTurbulenceModel >:
Inheritance graph
[legend]
Collaboration diagram for SpalartAllmarasDES< BasicTurbulenceModel >:
Collaboration graph
[legend]

Public Types

typedef BasicTurbulenceModel::alphaField alphaField
 
typedef BasicTurbulenceModel::rhoField rhoField
 
typedef BasicTurbulenceModel::transportModel transportModel
 

Public Member Functions

 TypeName ("SpalartAllmarasDES")
 Runtime type information. More...
 
 SpalartAllmarasDES (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
 Construct from components. More...
 
virtual ~SpalartAllmarasDES ()=default
 Destructor. More...
 
virtual bool read ()
 Re-read model coefficients if they have changed. More...
 
virtual tmp< volScalarFieldLESRegion () const
 Return the LES field indicator. More...
 

Protected Member Functions

virtual tmp< volScalarFieldpsi (const volScalarField &chi, const volScalarField &fv1) const
 Return the low Reynolds number correction function. More...
 
virtual tmp< volScalarFieldlengthScaleLES (const volScalarField &chi, const volScalarField &fv1) const
 Return the LES length scale. More...
 
virtual tmp< volScalarFieldStilda (const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU, const volScalarField &dTilda) const
 Return the production term. More...
 
virtual tmp< volScalarFielddTilda (const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const
 Return the length scale. More...
 
virtual void correctNut ()
 

Protected Attributes

Switch useSigma_
 Switch to activate grey-area enhanced sigma-(D)DES. More...
 
dimensionedScalar CDES_
 DES coefficient. More...
 
Switch lowReCorrection_
 Flag for low Reynolds number correction. More...
 
dimensionedScalar fwStar_
 

Detailed Description

template<class BasicTurbulenceModel>
class Foam::LESModels::SpalartAllmarasDES< BasicTurbulenceModel >

SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.

Reference:

    Spalart, P. R., Jou, W. H., Strelets, M., & Allmaras, S. R. (1997).
    Comments on the feasibility of LES for wings, and on a hybrid
    RANS/LES approach.
    Advances in DNS/LES, 1, 4-8.

Including the low Reynolds number correction documented in

    Spalart, P. R., Deck, S., Shur, M. L., Squires,
    K. D., Strelets, M. K., & Travin, A. (2006).
    A new version of detached-eddy simulation,
    resistant to ambiguous grid densities.
    Theoretical and computational fluid dynamics, 20(3), 181-195.
    DOI:10.1007/s00162-006-0015-0
Note
The default value of the DES constant implemented was calibrated for OpenFOAM using decaying isotropic turbulence and agrees with the value suggested in the reference publication.
Source files

Definition at line 78 of file SpalartAllmarasDES.H.

Member Typedef Documentation

◆ alphaField

typedef BasicTurbulenceModel::alphaField alphaField

Definition at line 163 of file SpalartAllmarasDES.H.

◆ rhoField

typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 164 of file SpalartAllmarasDES.H.

◆ transportModel

typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 165 of file SpalartAllmarasDES.H.

Constructor & Destructor Documentation

◆ SpalartAllmarasDES()

SpalartAllmarasDES ( const alphaField alpha,
const rhoField rho,
const volVectorField U,
const surfaceScalarField alphaRhoPhi,
const surfaceScalarField phi,
const transportModel transport,
const word propertiesName = turbulenceModel::propertiesName,
const word type = typeName 
)

Construct from components.

Definition at line 163 of file SpalartAllmarasDES.C.

References Foam::endl(), dimensioned< Type >::getOrAddToDict(), Foam::type(), and WarningInFunction.

Here is the call graph for this function:

◆ ~SpalartAllmarasDES()

virtual ~SpalartAllmarasDES ( )
virtualdefault

Destructor.

Member Function Documentation

◆ psi()

tmp< volScalarField > psi ( const volScalarField chi,
const volScalarField fv1 
) const
protectedvirtual

Return the low Reynolds number correction function.

Definition at line 37 of file SpalartAllmarasDES.C.

References Foam::dimless, Foam::constant::electromagnetic::e, Foam::max(), mesh, Foam::min(), tmp< T >::New(), IOobjectOption::NO_READ, IOobjectOption::NO_WRITE, psi, IOobject::scopedName(), Foam::sqr(), Foam::sqrt(), timeName, Foam::type(), and Foam::Zero.

Here is the call graph for this function:

◆ lengthScaleLES()

tmp< volScalarField > lengthScaleLES ( const volScalarField chi,
const volScalarField fv1 
) const
protectedvirtual

Return the LES length scale.

Definition at line 82 of file SpalartAllmarasDES.C.

References delta, and psi.

◆ Stilda()

tmp< volScalarField > Stilda ( const volScalarField chi,
const volScalarField fv1,
const volTensorField gradU,
const volScalarField dTilda 
) const
protectedvirtual

Return the production term.

Reimplemented in SpalartAllmarasDDES< BasicTurbulenceModel >.

Definition at line 93 of file SpalartAllmarasDES.C.

References Foam::max(), Foam::pos(), and Foam::sqr().

Here is the call graph for this function:

◆ dTilda()

tmp< volScalarField > dTilda ( const volScalarField chi,
const volScalarField fv1,
const volTensorField gradU 
) const
protectedvirtual

Return the length scale.

Reimplemented in SpalartAllmarasIDDES< BasicTurbulenceModel >, and SpalartAllmarasDDES< BasicTurbulenceModel >.

Definition at line 133 of file SpalartAllmarasDES.C.

References Foam::min(), and tmp< T >::ref().

Here is the call graph for this function:

◆ correctNut()

void correctNut ( )
protectedvirtual

Definition at line 149 of file SpalartAllmarasDES.C.

◆ TypeName()

TypeName ( "SpalartAllmarasDES< BasicTurbulenceModel >"  )

Runtime type information.

◆ read()

bool read ( )
virtual

Re-read model coefficients if they have changed.

Reimplemented in SpalartAllmarasIDDES< BasicTurbulenceModel >, and SpalartAllmarasDDES< BasicTurbulenceModel >.

Definition at line 242 of file SpalartAllmarasDES.C.

References Foam::read().

Here is the call graph for this function:

◆ LESRegion()

tmp< volScalarField > LESRegion ( ) const
virtual

Return the LES field indicator.

Definition at line 260 of file SpalartAllmarasDES.C.

References Foam::fvc::grad(), Foam::neg(), tmp< T >::New(), IOobjectOption::NO_READ, IOobjectOption::NO_WRITE, and IOobject::scopedName().

Here is the call graph for this function:

Member Data Documentation

◆ useSigma_

Switch useSigma_
protected

Switch to activate grey-area enhanced sigma-(D)DES.

Definition at line 102 of file SpalartAllmarasDES.H.

◆ CDES_

dimensionedScalar CDES_
protected

DES coefficient.

Definition at line 109 of file SpalartAllmarasDES.H.

◆ lowReCorrection_

Switch lowReCorrection_
protected

Flag for low Reynolds number correction.

Definition at line 114 of file SpalartAllmarasDES.H.

◆ fwStar_

dimensionedScalar fwStar_
protected

Definition at line 115 of file SpalartAllmarasDES.H.


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