SpalartAllmarasIDDES.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2022 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::SpalartAllmarasIDDES
26 
27 Description
28  SpalartAllmaras IDDES turbulence model for incompressible and compressible
29  flows
30 
31  Reference:
32  \verbatim
33  Shur, M. L., Spalart, P. R., Strelets, M. K., & Travin, A. K. (2008).
34  A hybrid RANS-LES approach with delayed-DES and wall-modelled LES
35  capabilities.
36  International Journal of Heat and Fluid Flow, 29(6), 1638-1649.
37  \endverbatim
38 
39 SourceFiles
40  SpalartAllmarasIDDES.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef SpalartAllmarasIDDES_H
45 #define SpalartAllmarasIDDES_H
46 
47 #include "SpalartAllmarasDES.H"
48 #include "IDDESDelta.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 namespace LESModels
55 {
56 
57 /*---------------------------------------------------------------------------*\
58  Class SpalartAllmarasIDDES Declaration
59 \*---------------------------------------------------------------------------*/
60 
61 template<class BasicMomentumTransportModel>
63 :
64  public SpalartAllmarasDES<BasicMomentumTransportModel>
65 {
66  // Private Data
67 
68  // Model constants
69 
70  dimensionedScalar fwStar_;
73 
74  // Fields
75 
76  const IDDESDelta& IDDESDelta_;
77 
78 
79  // Private Member Functions
80 
81  tmp<volScalarField::Internal> IDDESalpha() const;
82 
84  (
85  const volScalarField::Internal& magGradU
86  ) const;
87 
89  (
90  const volScalarField::Internal& magGradU
91  ) const;
92 
94  (
95  const volScalarField::Internal& nur,
96  const volScalarField::Internal& magGradU
97  ) const;
98 
99  //- Delay function
101  (
102  const volScalarField::Internal& magGradU
103  ) const;
104 
105 
106 protected:
107 
108  // Protected Member Functions
109 
110  //- Length scale
112  (
115  const volTensorField::Internal& gradU
116  ) const;
117 
118 
119 public:
120 
121  typedef typename BasicMomentumTransportModel::alphaField alphaField;
122  typedef typename BasicMomentumTransportModel::rhoField rhoField;
123 
124 
125  //- Runtime type information
126  TypeName("SpalartAllmarasIDDES");
127 
128 
129  // Constructors
130 
131  //- Construct from components
133  (
134  const alphaField& alpha,
135  const rhoField& rho,
136  const volVectorField& U,
137  const surfaceScalarField& alphaRhoPhi,
138  const surfaceScalarField& phi,
139  const viscosity& viscosity,
140  const word& type = typeName
141  );
142 
143  //- Disallow default bitwise copy construction
145 
146 
147  //- Destructor
148  virtual ~SpalartAllmarasIDDES()
149  {}
150 
151 
152  // Member Functions
153 
154  //- Read model coefficients if they have changed
155  virtual bool read();
156 
157 
158  // Member Operators
159 
160  //- Disallow default bitwise assignment
161  void operator=(const SpalartAllmarasIDDES&) = delete;
162 };
163 
164 
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 
167 } // End namespace LESModels
168 } // End namespace Foam
169 
170 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
171 
172 #ifdef NoRepository
173  #include "SpalartAllmarasIDDES.C"
174 #endif
175 
176 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 
178 #endif
179 
180 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
IDDESDelta used by the IDDES (improved low Re Spalart-Allmaras DES model) The min and max delta are c...
Definition: IDDESDelta.H:55
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::rhoField rhoField
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.
BasicMomentumTransportModel::alphaField alphaField
SpalartAllmarasIDDES(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity, const word &type=typeName)
Construct from components.
virtual tmp< volScalarField::Internal > dTilda(const volScalarField::Internal &chi, const volScalarField::Internal &fv1, const volTensorField::Internal &gradU) const
Length scale.
void operator=(const SpalartAllmarasIDDES &)=delete
Disallow default bitwise assignment.
TypeName("SpalartAllmarasIDDES")
Runtime type information.
virtual bool read()
Read model coefficients if they have changed.
BasicMomentumTransportModel::rhoField rhoField
A class for managing temporary objects.
Definition: tmp.H:55
Abstract base class for all fluid physical properties.
Definition: viscosity.H:50
A class for handling words, derived from string.
Definition: word.H:62
U
Definition: pEqn.H:72
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
Namespace for OpenFOAM.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Definition: POSIX.C:488