kOmegaSST.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 | Copyright (C) 2011-2015 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::RASModels::kOmegaSST
26 
27 Group
28  grpRASTurbulence
29 
30 Description
31  Implementation of the k-omega-SST turbulence model for
32  incompressible and compressible flows.
33 
34  Light wrapper around base class.
35 
36  Turbulence model described in:
37  \verbatim
38  Menter, F. R. & Esch, T. (2001).
39  Elements of Industrial Heat Transfer Prediction.
40  16th Brazilian Congress of Mechanical Engineering (COBEM).
41  \endverbatim
42 
43  with updated coefficients from
44  \verbatim
45  Menter, F. R., Kuntz, M., and Langtry, R. (2003).
46  Ten Years of Industrial Experience with the SST Turbulence Model.
47  Turbulence, Heat and Mass Transfer 4, ed: K. Hanjalic, Y. Nagano,
48  & M. Tummers, Begell House, Inc., 625 - 632.
49  \endverbatim
50 
51  but with the consistent production terms from the 2001 paper as form in the
52  2003 paper is a typo, see
53  \verbatim
54  http://turbmodels.larc.nasa.gov/sst.html
55  \endverbatim
56 
57  and the addition of the optional F3 term for rough walls from
58  \verbatim
59  Hellsten, A. (1998).
60  "Some Improvements in Menter’s k-omega-SST turbulence model"
61  29th AIAA Fluid Dynamics Conference, AIAA-98-2554.
62  \endverbatim
63 
64  Note that this implementation is written in terms of alpha diffusion
65  coefficients rather than the more traditional sigma (alpha = 1/sigma) so
66  that the blending can be applied to all coefficuients in a consistent
67  manner. The paper suggests that sigma is blended but this would not be
68  consistent with the blending of the k-epsilon and k-omega models.
69 
70  Also note that the error in the last term of equation (2) relating to
71  sigma has been corrected.
72 
73  Wall-functions are applied in this implementation by using equations (14)
74  to specify the near-wall omega as appropriate.
75 
76  The blending functions (15) and (16) are not currently used because of the
77  uncertainty in their origin, range of applicability and that if y+ becomes
78  sufficiently small blending u_tau in this manner clearly becomes nonsense.
79 
80  The default model coefficients are
81  \verbatim
82  kOmegaSSTCoeffs
83  {
84  alphaK1 0.85;
85  alphaK2 1.0;
86  alphaOmega1 0.5;
87  alphaOmega2 0.856;
88  beta1 0.075;
89  beta2 0.0828;
90  betaStar 0.09;
91  gamma1 5/9;
92  gamma2 0.44;
93  a1 0.31;
94  b1 1.0;
95  c1 10.0;
96  F3 no;
97  }
98  \endverbatim
99 
100 SourceFiles
101  kOmegaSST.C
102 
103 SeeAlso
104  kOmegaSSTBase.H
105 
106 \*---------------------------------------------------------------------------*/
107 
108 #ifndef kOmegaSST_H
109 #define kOmegaSST_H
110 
111 #include "kOmegaSSTBase.H"
112 #include "RASModel.H"
113 #include "eddyViscosity.H"
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 namespace Foam
118 {
119 namespace RASModels
120 {
121 
122 /*---------------------------------------------------------------------------*\
123  Class kOmegaSST Declaration
124 \*---------------------------------------------------------------------------*/
125 
126 template<class BasicTurbulenceModel>
127 class kOmegaSST
128 :
129  public kOmegaSSTBase<eddyViscosity<RASModel<BasicTurbulenceModel> > >
130 {
131 
132 protected:
133 
134  // Protecetd Member Functions
135 
136  virtual void correctNut(const volScalarField& S2);
137  virtual void correctNut();
138 
139 
140 public:
141 
142  typedef typename BasicTurbulenceModel::alphaField alphaField;
143  typedef typename BasicTurbulenceModel::rhoField rhoField;
144  typedef typename BasicTurbulenceModel::transportModel transportModel;
145 
146 
147  //- Runtime type information
148  TypeName("kOmegaSST");
149 
150 
151  // Constructors
152 
153  //- Construct from components
154  kOmegaSST
155  (
156  const alphaField& alpha,
157  const rhoField& rho,
158  const volVectorField& U,
159  const surfaceScalarField& alphaRhoPhi,
160  const surfaceScalarField& phi,
161  const transportModel& transport,
162  const word& propertiesName = turbulenceModel::propertiesName,
163  const word& type = typeName
164  );
165 
166 
167  //- Destructor
168  virtual ~kOmegaSST()
169  {}
170 };
171 
172 
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 
175 } // End namespace RASModels
176 } // End namespace Foam
177 
178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 #ifdef NoRepository
180 # include "kOmegaSST.C"
181 #endif
182 
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
184 #endif
185 
186 // ************************************************************************* //
Foam::RASModels::kOmegaSST::~kOmegaSST
virtual ~kOmegaSST()
Destructor.
Definition: kOmegaSST.H:167
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::RASModels::kOmegaSST
Implementation of the k-omega-SST turbulence model for incompressible and compressible flows.
Definition: kOmegaSST.H:126
Foam::RASModels::kOmegaSST::kOmegaSST
kOmegaSST(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: kOmegaSST.C:62
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition: readThermalProperties.H:216
Foam::turbulenceModel::propertiesName
static const word propertiesName
Default name of the turbulence properties dictionary.
Definition: turbulenceModel.H:97
Foam::RASModels::kOmegaSST::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: kOmegaSST.H:141
U
U
Definition: pEqn.H:46
eddyViscosity.H
Foam::RASModels::kOmegaSST::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: kOmegaSST.H:142
kOmegaSSTBase.H
Foam::RASModels::kOmegaSST::TypeName
TypeName("kOmegaSST")
Runtime type information.
RASModel.H
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::RASModels::kOmegaSST::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: kOmegaSST.H:143
rho
rho
Definition: pEqn.H:3
Foam::RASModels::kOmegaSST::correctNut
virtual void correctNut()
Definition: kOmegaSST.C:52
Foam::type
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
Definition: POSIX.C:588
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
kOmegaSST.C
Foam::kOmegaSSTBase
Base class implementation of the k-omega-SST turbulence model for incompressible and compressible flo...
Definition: kOmegaSSTBase.H:115