SpalartAllmarasDES< BasicMomentumTransportModel > Class Template Reference

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

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

Public Types

typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
typedef BasicMomentumTransportModel::transportModel transportModel
 
- Public Types inherited from LESeddyViscosity< BasicMomentumTransportModel >
typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
typedef BasicMomentumTransportModel::transportModel transportModel
 
- Public Types inherited from eddyViscosity< LESModel< BasicMomentumTransportModel > >
typedef LESModel< BasicMomentumTransportModel > ::alphaField alphaField
 
typedef LESModel< BasicMomentumTransportModel > ::rhoField rhoField
 
typedef LESModel< BasicMomentumTransportModel > ::transportModel transportModel
 
- Public Types inherited from linearViscousStress< LESModel< BasicMomentumTransportModel > >
typedef LESModel< BasicMomentumTransportModel > ::alphaField alphaField
 
typedef LESModel< BasicMomentumTransportModel > ::rhoField rhoField
 
typedef LESModel< BasicMomentumTransportModel > ::transportModel transportModel
 
- Public Types inherited from LESModel< BasicMomentumTransportModel >
typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 
typedef BasicMomentumTransportModel::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 &type=typeName)
 Construct from components. More...
 
 SpalartAllmarasDES (const SpalartAllmarasDES &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~SpalartAllmarasDES ()
 Destructor. More...
 
virtual bool read ()
 Read model coefficients if they have changed. More...
 
tmp< volScalarFieldDnuTildaEff () const
 Return the effective diffusivity for nuTilda. More...
 
virtual tmp< volScalarFieldk () const
 Return SGS kinetic energy. More...
 
tmp< volScalarFieldnuTilda () const
 
virtual void correct ()
 Correct nuTilda and related properties. More...
 
void operator= (const SpalartAllmarasDES &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from LESeddyViscosity< BasicMomentumTransportModel >
 LESeddyViscosity (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 Construct from components. More...
 
 LESeddyViscosity (const LESeddyViscosity &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~LESeddyViscosity ()
 Destructor. More...
 
virtual tmp< volScalarFieldepsilon () const
 Return sub-grid disipation rate. More...
 
void operator= (const LESeddyViscosity &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from eddyViscosity< LESModel< BasicMomentumTransportModel > >
 eddyViscosity (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 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< LESModel< BasicMomentumTransportModel > >
 linearViscousStress (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 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...
 
- Public Member Functions inherited from LESModel< BasicMomentumTransportModel >
 TypeName ("LES")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, LESModel, dictionary,(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport),(alpha, rho, U, alphaRhoPhi, phi, transport))
 
 LESModel (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 Construct from components. More...
 
 LESModel (const LESModel &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~LESModel ()
 Destructor. More...
 
virtual const dictionarycoeffDict () const
 Const access to the coefficients dictionary. More...
 
const dimensionedScalarkMin () const
 Return the lower allowable limit for k (default: small) More...
 
dimensionedScalarkMin ()
 Allow kMin to be changed. More...
 
const volScalarFielddelta () const
 Access function to filter width. More...
 
virtual tmp< volScalarFieldnuEff () const
 Return the effective viscosity. More...
 
virtual tmp< scalarFieldnuEff (const label patchi) const
 Return the effective viscosity on patch. More...
 
void operator= (const LESModel &)=delete
 Disallow default bitwise assignment. 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::InternalOmega (const volTensorField::Internal &gradU) const
 
tmp< volScalarField::InternalStilda (const volScalarField::Internal &chi, const volScalarField::Internal &fv1, const volScalarField::Internal &Omega, const volScalarField::Internal &dTilda) const
 
tmp< volScalarField::Internalr (const volScalarField::Internal &nur, const volScalarField::Internal &Omega, const volScalarField::Internal &dTilda) const
 
tmp< volScalarField::Internalfw (const volScalarField::Internal &Omega, const volScalarField::Internal &dTilda) const
 
virtual tmp< volScalarField::InternaldTilda (const volScalarField::Internal &chi, const volScalarField::Internal &fv1, const volTensorField::Internal &gradU) const
 Length scale. More...
 
virtual void cacheLESRegion (const volScalarField::Internal &dTilda) const
 Cache the LES region indicator field. More...
 
void correctNut (const volScalarField &fv1)
 
virtual void correctNut ()
 
- Protected Member Functions inherited from LESModel< BasicMomentumTransportModel >
virtual void printCoeffs (const word &type)
 Print model coefficients. More...
 

Protected Attributes

dimensionedScalar sigmaNut_
 
dimensionedScalar kappa_
 
dimensionedScalar Cb1_
 
dimensionedScalar Cb2_
 
dimensionedScalar Cw1_
 
dimensionedScalar Cw2_
 
dimensionedScalar Cw3_
 
dimensionedScalar Cv1_
 
dimensionedScalar Cs_
 
dimensionedScalar CDES_
 
dimensionedScalar ck_
 
volScalarField nuTilda_
 
const volScalarFieldy_
 Wall distance. More...
 
- Protected Attributes inherited from LESeddyViscosity< BasicMomentumTransportModel >
dimensionedScalar Ce_
 
- Protected Attributes inherited from eddyViscosity< LESModel< BasicMomentumTransportModel > >
volScalarField nut_
 
- Protected Attributes inherited from LESModel< BasicMomentumTransportModel >
dictionary LESDict_
 LES coefficients dictionary. More...
 
Switch turbulence_
 Turbulence on/off flag. More...
 
Switch printCoeffs_
 Flag to print the model coeffs at run-time. More...
 
dictionary coeffDict_
 Model coefficients dictionary. More...
 
dimensionedScalar kMin_
 Lower limit of k. More...
 
dimensionedScalar epsilonMin_
 Lower limit of epsilon. More...
 
dimensionedScalar omegaMin_
 Lower limit for omega. More...
 
autoPtr< Foam::LESdeltadelta_
 Run-time selectable delta model. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from LESModel< BasicMomentumTransportModel >
static autoPtr< LESModelNew (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 Return a reference to the selected LES model. More...
 

Detailed Description

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

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.
Source files

Definition at line 60 of file SpalartAllmarasDES.H.

Member Typedef Documentation

◆ alphaField

typedef BasicMomentumTransportModel::alphaField alphaField

Definition at line 153 of file SpalartAllmarasDES.H.

◆ rhoField

typedef BasicMomentumTransportModel::rhoField rhoField

Definition at line 154 of file SpalartAllmarasDES.H.

◆ transportModel

typedef BasicMomentumTransportModel::transportModel transportModel

Definition at line 155 of file SpalartAllmarasDES.H.

Constructor & Destructor Documentation

◆ SpalartAllmarasDES() [1/2]

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

Construct from components.

Definition at line 222 of file SpalartAllmarasDES.C.

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::correctNut().

Here is the caller graph for this function:

◆ SpalartAllmarasDES() [2/2]

SpalartAllmarasDES ( const SpalartAllmarasDES< BasicMomentumTransportModel > &  )
delete

Disallow default bitwise copy construction.

◆ ~SpalartAllmarasDES()

Member Function Documentation

◆ chi()

tmp< volScalarField > chi ( ) const
protected

Definition at line 39 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicMomentumTransportModel >::fv1(), and GeometricField< scalar, fvPatchField, volMesh >::New().

Here is the call graph for this function:

◆ fv1()

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

Definition at line 51 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicMomentumTransportModel >::fv2(), GeometricField< scalar, fvPatchField, volMesh >::New(), and Foam::pow3().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::chi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fv2()

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

Definition at line 67 of file SpalartAllmarasDES.C.

References DimensionedField< Type, GeoMesh >::New(), and SpalartAllmarasDES< BasicMomentumTransportModel >::Omega().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::fv1().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Omega()

tmp< volScalarField::Internal > Omega ( const volTensorField::Internal gradU) const
protected

Definition at line 83 of file SpalartAllmarasDES.C.

References Foam::mag(), DimensionedField< Type, GeoMesh >::New(), Foam::skew(), Foam::sqrt(), and SpalartAllmarasDES< BasicMomentumTransportModel >::Stilda().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::fv2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Stilda()

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

Definition at line 98 of file SpalartAllmarasDES.C.

References Foam::max(), DimensionedField< Type, GeoMesh >::New(), SpalartAllmarasDES< BasicMomentumTransportModel >::r(), and Foam::sqr().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::Omega().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ r()

tmp< volScalarField::Internal > r ( const volScalarField::Internal nur,
const volScalarField::Internal Omega,
const volScalarField::Internal dTilda 
) const
protected

Definition at line 120 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicMomentumTransportModel >::fw(), Foam::max(), Foam::min(), DimensionedField< Type, GeoMesh >::New(), and Foam::sqr().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::Stilda().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fw()

tmp< volScalarField::Internal > fw ( const volScalarField::Internal Omega,
const volScalarField::Internal dTilda 
) const
protected

Definition at line 149 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicMomentumTransportModel >::dTilda(), g, DimensionedField< Type, GeoMesh >::New(), Foam::pow(), and Foam::pow6().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::r().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dTilda()

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

◆ cacheLESRegion()

void cacheLESRegion ( const volScalarField::Internal dTilda) const
protectedvirtual

Cache the LES region indicator field.

Definition at line 184 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicMomentumTransportModel >::correctNut(), Foam::neg(), and DimensionedField< Type, GeoMesh >::New().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::dTilda().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ correctNut() [1/2]

void correctNut ( const volScalarField fv1)
protected

Definition at line 201 of file SpalartAllmarasDES.C.

References optionList::correct(), GeometricField< Type, PatchField, GeoMesh >::correctBoundaryConditions(), and options::New().

Here is the call graph for this function:

◆ correctNut() [2/2]

void correctNut ( )
protectedvirtual

Implements eddyViscosity< LESModel< BasicMomentumTransportModel > >.

Definition at line 212 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicMomentumTransportModel >::SpalartAllmarasDES().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::cacheLESRegion().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TypeName()

TypeName ( "SpalartAllmarasDES< BasicMomentumTransportModel >"  )

Runtime type information.

◆ read()

bool read ( )
virtual

Read model coefficients if they have changed.

Reimplemented from LESeddyViscosity< BasicMomentumTransportModel >.

Reimplemented in SpalartAllmarasIDDES< BasicMomentumTransportModel >.

Definition at line 360 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicMomentumTransportModel >::DnuTildaEff(), dimensioned< Type >::readIfPresent(), and Foam::sqr().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::~SpalartAllmarasDES().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DnuTildaEff()

tmp< volScalarField > DnuTildaEff ( ) const

Return the effective diffusivity for nuTilda.

Definition at line 389 of file SpalartAllmarasDES.C.

References GeometricField< scalar, fvPatchField, volMesh >::New().

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::read(), and SpalartAllmarasDES< BasicMomentumTransportModel >::~SpalartAllmarasDES().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ k()

◆ nuTilda()

◆ correct()

◆ operator=()

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

Disallow default bitwise assignment.

Referenced by SpalartAllmarasDES< BasicMomentumTransportModel >::nuTilda().

Here is the caller graph for this function:

Member Data Documentation

◆ sigmaNut_

dimensionedScalar sigmaNut_
protected

Definition at line 70 of file SpalartAllmarasDES.H.

◆ kappa_

dimensionedScalar kappa_
protected

Definition at line 71 of file SpalartAllmarasDES.H.

◆ Cb1_

dimensionedScalar Cb1_
protected

Definition at line 73 of file SpalartAllmarasDES.H.

◆ Cb2_

dimensionedScalar Cb2_
protected

Definition at line 74 of file SpalartAllmarasDES.H.

◆ Cw1_

dimensionedScalar Cw1_
protected

Definition at line 75 of file SpalartAllmarasDES.H.

◆ Cw2_

dimensionedScalar Cw2_
protected

Definition at line 76 of file SpalartAllmarasDES.H.

◆ Cw3_

dimensionedScalar Cw3_
protected

Definition at line 77 of file SpalartAllmarasDES.H.

◆ Cv1_

dimensionedScalar Cv1_
protected

Definition at line 78 of file SpalartAllmarasDES.H.

◆ Cs_

dimensionedScalar Cs_
protected

Definition at line 79 of file SpalartAllmarasDES.H.

◆ CDES_

dimensionedScalar CDES_
protected

Definition at line 80 of file SpalartAllmarasDES.H.

◆ ck_

dimensionedScalar ck_
protected

Definition at line 81 of file SpalartAllmarasDES.H.

◆ nuTilda_

volScalarField nuTilda_
protected

◆ y_

const volScalarField& y_
protected

Wall distance.

Note: different to wall distance in parent RASModel which is for near-wall cells only

Definition at line 90 of file SpalartAllmarasDES.H.


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