IDDESDelta.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-2020 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::IDDESDelta
26 
27 Description
28  IDDESDelta used by the IDDES (improved low Re Spalart-Allmaras DES model)
29  The min and max delta are calculated using the double distance of the min or
30  max from the face centre to the cell centre.
31 
32 SourceFiles
33  IDDESDelta.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef IDDESDelta_H
38 #define IDDESDelta_H
39 
40 #include "maxDeltaxyz.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace LESModels
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class IDDESDelta Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class IDDESDelta
54 :
55  public LESdelta
56 {
57  // Private Data
58 
59  maxDeltaxyz hmax_;
60 
61  scalar Cw_;
62 
63 
64  // Private Member Functions
65 
66  //- Calculate the delta values
67  void calcDelta();
68 
69 
70 public:
71 
72  //- Runtime type information
73  TypeName("IDDESDelta");
74 
75 
76  // Constructors
77 
78  //- Construct from name, mesh and IOdictionary
80  (
81  const word& name,
83  const dictionary&
84  );
85 
86  //- Disallow default bitwise copy construction
87  IDDESDelta(const IDDESDelta&) = delete;
88 
89 
90  // Destructor
91 
92  ~IDDESDelta()
93  {}
94 
95 
96  // Member Functions
97 
98  //- Read the LESdelta dictionary
99  void read(const dictionary&);
100 
101  //- Return the hmax delta field
102  const volScalarField& hmax() const
103  {
104  return hmax_;
105  }
106 
107  // Correct values
108  void correct();
109 
110 
111  // Member Operators
112 
113  //- Disallow default bitwise assignment
114  void operator=(const IDDESDelta&) = delete;
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace LESModels
121 } // End namespace Foam
122 
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 
125 #endif
126 
127 // ************************************************************************* //
TypeName("IDDESDelta")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
const momentumTransportModel & turbulence() const
Return momentumTransportModel reference.
Definition: LESdelta.H:124
Abstract base class for LES deltas.
Definition: LESdelta.H:50
void read(const dictionary &)
Read the LESdelta dictionary.
Definition: IDDESDelta.C:157
A class for handling words, derived from string.
Definition: word.H:59
IDDESDelta(const word &name, const momentumTransportModel &turbulence, const dictionary &)
Construct from name, mesh and IOdictionary.
Definition: IDDESDelta.C:129
Delta calculated by taking the maximum distance between the cell centre and any face centre...
Definition: maxDeltaxyz.H:53
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
void operator=(const IDDESDelta &)=delete
Disallow default bitwise assignment.
Abstract base class for turbulence models (RAS, LES and laminar).
IDDESDelta used by the IDDES (improved low Re Spalart-Allmaras DES model) The min and max delta are c...
Definition: IDDESDelta.H:52
const volScalarField & hmax() const
Return the hmax delta field.
Definition: IDDESDelta.H:101
Namespace for OpenFOAM.