SpalartAllmarasIDDES.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2011-2016 OpenFOAM Foundation
9 Copyright (C) 2019 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::LESModels::SpalartAllmarasIDDES
29
30Group
31 grpDESTurbulence
32
33Description
34 SpalartAllmaras IDDES turbulence model for incompressible and compressible
35 flows
36
37 Reference:
38 \verbatim
39 Shur, M. L., Spalart, P. R., Strelets, M. K., & Travin, A. K. (2008).
40 A hybrid RANS-LES approach with delayed-DES and wall-modelled LES
41 capabilities.
42 International Journal of Heat and Fluid Flow, 29(6), 1638-1649.
43 \endverbatim
44
45SourceFiles
46 SpalartAllmarasIDDES.C
47
48\*---------------------------------------------------------------------------*/
49
50#ifndef SpalartAllmarasIDDES_H
51#define SpalartAllmarasIDDES_H
52
53#include "SpalartAllmarasDES.H"
54#include "IDDESDelta.H"
55
56// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57
58namespace Foam
59{
60namespace LESModels
61{
62
63/*---------------------------------------------------------------------------*\
64 Class SpalartAllmarasIDDES Declaration
65\*---------------------------------------------------------------------------*/
66
67template<class BasicTurbulenceModel>
69:
70 public SpalartAllmarasDES<BasicTurbulenceModel>
71{
72 // Private Member Functions
73
74 //- Check that the supplied delta is an IDDESDelta
75 const IDDESDelta& setDelta() const;
76
77 tmp<volScalarField> alpha() const;
78 tmp<volScalarField> ft(const volScalarField& magGradU) const;
79 tmp<volScalarField> fl(const volScalarField& magGradU) const;
80
82 (
83 const volScalarField& nur,
84 const volScalarField& magGradU
85 ) const;
86
87 //- Delay function
88 tmp<volScalarField> fdt(const volScalarField& magGradU) const;
89
90 //- No copy construct
92
93 //- No copy assignment
94 void operator=(const SpalartAllmarasIDDES&) = delete;
95
96
97protected:
98
99 // Protected data
100
101 // Model coefficients
107
108 // Fields
110 const IDDESDelta& IDDESDelta_;
111
112 // Protected Member Functions
113
114 //- Length scale
116 (
117 const volScalarField& chi,
118 const volScalarField& fv1,
119 const volTensorField& gradU
120 ) const;
121
122
123public:
125 typedef typename BasicTurbulenceModel::alphaField alphaField;
126 typedef typename BasicTurbulenceModel::rhoField rhoField;
127 typedef typename BasicTurbulenceModel::transportModel transportModel;
128
129
130 //- Runtime type information
131 TypeName("SpalartAllmarasIDDES");
132
133
134 // Constructors
135
136 //- Construct from components
138 (
139 const alphaField& alpha,
140 const rhoField& rho,
141 const volVectorField& U,
142 const surfaceScalarField& alphaRhoPhi,
143 const surfaceScalarField& phi,
144 const transportModel& transport,
145 const word& propertiesName = turbulenceModel::propertiesName,
146 const word& type = typeName
147 );
148
149
150 //- Destructor
151 virtual ~SpalartAllmarasIDDES() = default;
152
153
154 // Member Functions
155
156 //- Re-read model coefficients if they have changed
157 virtual bool read();
158};
159
160
161// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162
163} // End namespace LESModels
164} // End namespace Foam
165
166// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167
168#ifdef NoRepository
169 #include "SpalartAllmarasIDDES.C"
170#endif
171
172// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173
174#endif
175
176// ************************************************************************* //
surfaceScalarField & phi
SpalartAllmarasDES DES turbulence model for incompressible and compressible flows.
tmp< volScalarField > chi() const
tmp< volScalarField > fv1(const volScalarField &chi) const
SpalartAllmaras IDDES turbulence model for incompressible and compressible flows.
BasicTurbulenceModel::alphaField alphaField
BasicTurbulenceModel::rhoField rhoField
virtual ~SpalartAllmarasIDDES()=default
Destructor.
BasicTurbulenceModel::transportModel transportModel
TypeName("SpalartAllmarasIDDES")
Runtime type information.
virtual tmp< volScalarField > dTilda(const volScalarField &chi, const volScalarField &fv1, const volTensorField &gradU) const
Length scale.
virtual bool read()
Re-read model coefficients if they have changed.
A class for managing temporary objects.
Definition: tmp.H:65
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
Definition: word.H:68
U
Definition: pEqn.H:72
Namespace for OpenFOAM.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition: MSwindows.C:598
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73