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 Types inherited from LESeddyViscosity< BasicTurbulenceModel >
typedef BasicTurbulenceModel::alphaField alphaField
 
typedef BasicTurbulenceModel::rhoField rhoField
 
typedef BasicTurbulenceModel::transportModel transportModel
 
- Public Types inherited from eddyViscosity< LESModel< BasicTurbulenceModel > >
typedef LESModel< BasicTurbulenceModel >::alphaField alphaField
 
typedef LESModel< BasicTurbulenceModel >::rhoField rhoField
 
typedef LESModel< BasicTurbulenceModel >::transportModel transportModel
 
- Public Types inherited from linearViscousStress< LESModel< BasicTurbulenceModel > >
typedef LESModel< BasicTurbulenceModel >::alphaField alphaField
 
typedef LESModel< BasicTurbulenceModel >::rhoField rhoField
 
typedef LESModel< BasicTurbulenceModel >::transportModel transportModel
 
- Public Types inherited from LESModel< BasicTurbulenceModel >
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 ()
 Destructor. More...
 
virtual bool read ()
 Read LESProperties dictionary. More...
 
tmp< volScalarFieldDnuTildaEff () const
 Return the effective diffusivity for nuTilda. More...
 
virtual tmp< volScalarFieldk () const
 Return SGS kinetic energy. More...
 
tmp< volScalarFieldnuTilda () const
 
virtual tmp< volScalarFieldLESRegion () const
 Return the LES field indicator. More...
 
virtual void correct ()
 Correct nuTilda and related properties. More...
 
- Public Member Functions inherited from LESeddyViscosity< BasicTurbulenceModel >
 LESeddyViscosity (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
 Construct from components. More...
 
virtual ~LESeddyViscosity ()
 Destructor. More...
 
virtual tmp< volScalarFieldepsilon () const
 Return sub-grid disipation rate. More...
 
- Public Member Functions inherited from eddyViscosity< LESModel< BasicTurbulenceModel > >
 eddyViscosity (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct from components. More...
 
virtual ~eddyViscosity ()
 Destructor. More...
 
volScalarFieldevNut ()
 Return non-const access to the turbulence viscosity. 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< volSymmTensorFieldR () const
 Return the Reynolds stress tensor. More...
 
- Public Member Functions inherited from linearViscousStress< LESModel< BasicTurbulenceModel > >
 linearViscousStress (const word &modelName, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct from components. More...
 
virtual ~linearViscousStress ()
 Destructor. More...
 
virtual tmp< volSymmTensorFielddevRhoReff () const
 Return the effective stress tensor. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (volVectorField &U) const
 Return the source term for the momentum equation. More...
 
virtual tmp< fvVectorMatrixdivDevRhoReff (const volScalarField &rho, volVectorField &U) const
 Return the source term for the momentum equation. More...
 
- Public Member Functions inherited from LESModel< BasicTurbulenceModel >
 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, const word &propertiesName ),(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName))
 
 LESModel (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
 Construct from components. 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...
 

Protected Member Functions

tmp< volScalarFieldchi () const
 
tmp< volScalarFieldfv1 (const volScalarField &chi) const
 
tmp< volScalarFieldfv2 (const volScalarField &chi, const volScalarField &fv1) const
 
tmp< volScalarFieldS (const volTensorField &gradU) const
 
tmp< volScalarFieldOmega (const volTensorField &gradU) const
 
tmp< volScalarFieldStilda (const volScalarField &chi, const volScalarField &fv1, const volScalarField &Omega, const volScalarField &dTilda) const
 
tmp< volScalarFieldr (const volScalarField &nur, const volScalarField &Omega, const volScalarField &dTilda) const
 
tmp< volScalarFieldfw (const volScalarField &Omega, const volScalarField &dTilda) const
 
virtual tmp< volScalarFielddTilda (const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const
 Length scale. More...
 
void correctNut (const volScalarField &fv1)
 
virtual void correctNut ()
 
- Protected Member Functions inherited from LESModel< BasicTurbulenceModel >
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< BasicTurbulenceModel >
dimensionedScalar Ce_
 
- Protected Attributes inherited from eddyViscosity< LESModel< BasicTurbulenceModel > >
volScalarField nut_
 
- Protected Attributes inherited from LESModel< BasicTurbulenceModel >
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...
 
autoPtr< Foam::LESdeltadelta_
 Run-time selectable delta model. More...
 

Additional Inherited Members

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

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

Definition at line 63 of file SpalartAllmarasDES.H.

Member Typedef Documentation

typedef BasicTurbulenceModel::alphaField alphaField

Definition at line 154 of file SpalartAllmarasDES.H.

typedef BasicTurbulenceModel::rhoField rhoField

Definition at line 155 of file SpalartAllmarasDES.H.

typedef BasicTurbulenceModel::transportModel transportModel

Definition at line 156 of file SpalartAllmarasDES.H.

Constructor & Destructor Documentation

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 189 of file SpalartAllmarasDES.C.

virtual ~SpalartAllmarasDES ( )
inlinevirtual

Member Function Documentation

tmp< volScalarField > chi ( ) const
protected

Definition at line 38 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicTurbulenceModel >::fv1(), and nu.

Here is the call graph for this function:

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

Definition at line 46 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicTurbulenceModel >::fv2(), and Foam::pow3().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 57 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicTurbulenceModel >::S().

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

Here is the call graph for this function:

Here is the caller graph for this function:

tmp< volScalarField > S ( const volTensorField gradU) const
protected

Definition at line 68 of file SpalartAllmarasDES.C.

References Foam::mag(), SpalartAllmarasDES< BasicTurbulenceModel >::Omega(), Foam::sqrt(), and Foam::symm().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 78 of file SpalartAllmarasDES.C.

References Foam::mag(), Foam::skew(), Foam::sqrt(), and SpalartAllmarasDES< BasicTurbulenceModel >::Stilda().

Referenced by SpalartAllmarasDES< BasicTurbulenceModel >::S().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 88 of file SpalartAllmarasDES.C.

References Foam::max(), SpalartAllmarasDES< BasicTurbulenceModel >::r(), and Foam::sqr().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 109 of file SpalartAllmarasDES.C.

References DimensionedField< Type, GeoMesh >::dimensions(), SpalartAllmarasDES< BasicTurbulenceModel >::fw(), Foam::max(), Foam::min(), Foam::sqr(), and Foam::tr().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 139 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicTurbulenceModel >::dTilda(), g, Foam::pow(), and Foam::pow6().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Length scale.

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

Definition at line 153 of file SpalartAllmarasDES.C.

References SpalartAllmarasDES< BasicTurbulenceModel >::correctNut(), delta, dimensionedInternalField(), and Foam::min().

Referenced by SpalartAllmarasDES< BasicTurbulenceModel >::fw().

Here is the call graph for this function:

Here is the caller graph for this function:

void correctNut ( const volScalarField fv1)
protected

Definition at line 167 of file SpalartAllmarasDES.C.

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

Here is the call graph for this function:

void correctNut ( )
protectedvirtual

Implements eddyViscosity< LESModel< BasicTurbulenceModel > >.

Definition at line 179 of file SpalartAllmarasDES.C.

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

Here is the caller graph for this function:

TypeName ( "SpalartAllmarasDES< BasicTurbulenceModel >"  )

Runtime type information.

bool read ( )
virtual

Read LESProperties dictionary.

Reimplemented from LESeddyViscosity< BasicTurbulenceModel >.

Reimplemented in SpalartAllmarasIDDES< BasicTurbulenceModel >.

Definition at line 330 of file SpalartAllmarasDES.C.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

tmp< volScalarField > DnuTildaEff ( ) const

Return the effective diffusivity for nuTilda.

Definition at line 359 of file SpalartAllmarasDES.C.

References nu.

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

Here is the caller graph for this function:

tmp< volScalarField > k ( ) const
virtual

Return SGS kinetic energy.

Implements eddyViscosity< LESModel< BasicTurbulenceModel > >.

Definition at line 369 of file SpalartAllmarasDES.C.

References Foam::fvc::grad(), nut, and Foam::sqr().

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

Here is the call graph for this function:

Here is the caller graph for this function:

tmp<volScalarField> nuTilda ( ) const
inline
tmp< volScalarField > LESRegion ( ) const
virtual

Return the LES field indicator.

Definition at line 378 of file SpalartAllmarasDES.C.

References Foam::fvc::grad(), Foam::neg(), IOobject::NO_READ, and IOobject::NO_WRITE.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void correct ( )
virtual

Member Data Documentation

dimensionedScalar sigmaNut_
protected

Definition at line 80 of file SpalartAllmarasDES.H.

dimensionedScalar kappa_
protected

Definition at line 81 of file SpalartAllmarasDES.H.

dimensionedScalar Cb1_
protected

Definition at line 83 of file SpalartAllmarasDES.H.

dimensionedScalar Cb2_
protected

Definition at line 84 of file SpalartAllmarasDES.H.

dimensionedScalar Cw1_
protected

Definition at line 85 of file SpalartAllmarasDES.H.

dimensionedScalar Cw2_
protected

Definition at line 86 of file SpalartAllmarasDES.H.

dimensionedScalar Cw3_
protected

Definition at line 87 of file SpalartAllmarasDES.H.

dimensionedScalar Cv1_
protected

Definition at line 88 of file SpalartAllmarasDES.H.

dimensionedScalar Cs_
protected

Definition at line 89 of file SpalartAllmarasDES.H.

dimensionedScalar CDES_
protected

Definition at line 90 of file SpalartAllmarasDES.H.

dimensionedScalar ck_
protected

Definition at line 91 of file SpalartAllmarasDES.H.

volScalarField nuTilda_
protected
const volScalarField& y_
protected

Wall distance.

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

Definition at line 100 of file SpalartAllmarasDES.H.


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