kOmegaSSTDDES.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) 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::LESModels::kOmegaSSTDDES
26 
27 Group
28  grpDESTurbulence
29 
30 Description
31  k-omega-SST DDES turbulence model for incompressible and compressible flows
32 
33  Reference:
34  \verbatim
35  Gritskevich, M.S., Garbaruk, A.V., Schuetze, J., Menter, F.R. (2011)
36  Development of DDES and IDDES Formulations for the k-omega
37  Shear Stress Transport Model, Flow, Turbulence and Combustion,
38  pp. 1-19
39  \endverbatim
40 
41 SourceFiles
42  kOmegaSSTDDES.C
43 
44 \*---------------------------------------------------------------------------*/
45 
46 #ifndef kOmegaSSTDDES_H
47 #define kOmegaSSTDDES_H
48 
49 #include "kOmegaSSTDES.H"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 namespace LESModels
56 {
57 
58 /*---------------------------------------------------------------------------*\
59  Class kOmegaSSTDDES Declaration
60 \*---------------------------------------------------------------------------*/
61 
62 template<class BasicTurbulenceModel>
63 class kOmegaSSTDDES
64 :
65  public kOmegaSSTDES<BasicTurbulenceModel>
66 {
67  // Private Member Functions
68 
69  tmp<volScalarField> fd(const volScalarField& magGradU) const;
70 
71  tmp<volScalarField> rd(const volScalarField& magGradU) const;
72 
73  // Disallow default bitwise copy construct and assignment
76 
77 
78 protected:
79 
80  // Protected data
81 
82  // Model coefficients
83 
86 
87 
88  // Protected Member Functions
89 
90  //- Length scale
92  (
93  const volScalarField& magGradU,
94  const volScalarField& CDES
95  ) const;
96 
97 
98 public:
99 
100  typedef typename BasicTurbulenceModel::alphaField alphaField;
101  typedef typename BasicTurbulenceModel::rhoField rhoField;
102  typedef typename BasicTurbulenceModel::transportModel transportModel;
103 
104 
105  //- Runtime type information
106  TypeName("kOmegaSSTDDES");
107 
108 
109  // Constructors
110 
111  //- Construct from components
113  (
114  const alphaField& alpha,
115  const rhoField& rho,
116  const volVectorField& U,
117  const surfaceScalarField& alphaRhoPhi,
118  const surfaceScalarField& phi,
119  const transportModel& transport,
120  const word& propertiesName = turbulenceModel::propertiesName,
121  const word& type = typeName
122  );
123 
124 
125  //- Destructor
126  virtual ~kOmegaSSTDDES()
127  {}
128 
129 
130  // Member Functions
131 
132  //- Re-read model coefficients if they have changed
133  virtual bool read();
134 };
135 
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 } // End namespace LESModels
140 } // End namespace Foam
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #ifdef NoRepository
145 # include "kOmegaSSTDDES.C"
146 #endif
147 
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 
150 #endif
151 
152 // ************************************************************************* //
Foam::LESModels::kOmegaSSTDDES::kOmegaSSTDDES
kOmegaSSTDDES(const kOmegaSSTDDES &)
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::LESModels::kOmegaSSTDES
k-omega-SST DES turbulence model for incompressible and compressible flows
Definition: kOmegaSSTDES.H:65
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
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::LESModels::kOmegaSSTDDES::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition: kOmegaSSTDDES.H:100
Foam::turbulenceModel::propertiesName
static const word propertiesName
Default name of the turbulence properties dictionary.
Definition: turbulenceModel.H:97
Foam::LESModels::kOmegaSSTDDES::dTilda
virtual tmp< volScalarField > dTilda(const volScalarField &magGradU, const volScalarField &CDES) const
Length scale.
Definition: kOmegaSSTDDES.C:79
U
U
Definition: pEqn.H:46
kOmegaSSTDDES.C
Foam::LESModels::kOmegaSSTDDES::~kOmegaSSTDDES
virtual ~kOmegaSSTDDES()
Destructor.
Definition: kOmegaSSTDDES.H:125
Foam::LESModels::kOmegaSSTDDES
k-omega-SST DDES turbulence model for incompressible and compressible flows
Definition: kOmegaSSTDDES.H:62
Foam::dimensioned
Generic dimensioned Type class.
Definition: dimensionedScalarFwd.H:41
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::LESModels::kOmegaSSTDDES::Cd1_
dimensionedScalar Cd1_
Definition: kOmegaSSTDDES.H:83
Foam::LESModels::kOmegaSSTDDES::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition: kOmegaSSTDDES.H:99
Foam::LESModels::kOmegaSSTDES::CDES
virtual tmp< volScalarField > CDES(const volScalarField &F1) const
Blending for CDES parameter.
Definition: kOmegaSSTDES.H:90
rho
rho
Definition: pEqn.H:3
Foam::LESModels::kOmegaSSTDDES::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition: kOmegaSSTDDES.H:101
Foam::LESModels::kOmegaSSTDDES::read
virtual bool read()
Re-read model coefficients if they have changed.
Definition: kOmegaSSTDDES.C:160
Foam::LESModels::kOmegaSSTDDES::fd
tmp< volScalarField > fd(const volScalarField &magGradU) const
Definition: kOmegaSSTDDES.C:67
Foam::LESModels::kOmegaSSTDDES::Cd2_
dimensionedScalar Cd2_
Definition: kOmegaSSTDDES.H:84
Foam::LESModels::kOmegaSSTDDES::operator=
kOmegaSSTDDES & operator=(const kOmegaSSTDDES &)
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
Foam::LESModels::kOmegaSSTDDES::TypeName
TypeName("kOmegaSSTDDES")
Runtime type information.
kOmegaSSTDES.H
Foam::LESModels::kOmegaSSTDDES::rd
tmp< volScalarField > rd(const volScalarField &magGradU) const
Definition: kOmegaSSTDDES.C:39