PrandtlDelta.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::PrandtlDelta
26 
27 Description
28  Apply Prandtl mixing-length based damping function to the specified
29  geometric delta to improve near-wall behavior or LES SGS models.
30 
31  \verbatim
32  delta = min(geometricDelta, (kappa/Cdelta)*y)
33  \endverbatim
34 
35  Example specification in the momentumTransport dictionary:
36  \verbatim
37  delta Prandtl;
38 
39  kappa 0.41;
40 
41  PrandtlCoeffs
42  {
43  delta cubeRootVol;
44 
45  cubeRootVolCoeffs
46  {
47  deltaCoeff 1;
48  }
49 
50  Cdelta 0.158;
51  }
52  \endverbatim
53 
54 SourceFiles
55  PrandtlDelta.C
56 
57 \*---------------------------------------------------------------------------*/
58 
59 #ifndef PrandtlDelta_H
60 #define PrandtlDelta_H
61 
62 #include "LESdelta.H"
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 namespace Foam
67 {
68 namespace LESModels
69 {
70 
71 /*---------------------------------------------------------------------------*\
72  Class PrandtlDelta Declaration
73 \*---------------------------------------------------------------------------*/
74 
75 class PrandtlDelta
76 :
77  public LESdelta
78 {
79  // Private Data
80 
81  autoPtr<LESdelta> geometricDelta_;
82  scalar kappa_;
83  scalar Cdelta_;
84 
85 
86  // Private Member Functions
87 
88  // Calculate the delta values
89  void calcDelta();
90 
91 
92 public:
93 
94  //- Runtime type information
95  TypeName("Prandtl");
96 
97 
98  // Constructors
99 
100  //- Construct from name, momentumTransportModel and dictionary
102  (
103  const word& name,
105  const dictionary&
106  );
107 
108  //- Disallow default bitwise copy construction
109  PrandtlDelta(const PrandtlDelta&) = delete;
110 
111 
112  //- Destructor
113  virtual ~PrandtlDelta()
114  {}
115 
116 
117  // Member Functions
118 
119  //- Read the LESdelta dictionary
120  virtual void read(const dictionary&);
121 
122  // Correct values
123  virtual void correct();
124 
125 
126  // Member Operators
127 
128  //- Disallow default bitwise assignment
129  void operator=(const PrandtlDelta&) = delete;
130 };
131 
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 } // End namespace LESModels
136 } // End namespace Foam
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 #endif
141 
142 // ************************************************************************* //
TypeName("Prandtl")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
const momentumTransportModel & turbulence() const
Return momentumTransportModel reference.
Definition: LESdelta.H:124
Abstract base class for LES deltas.
Definition: LESdelta.H:50
A class for handling words, derived from string.
Definition: word.H:59
void operator=(const PrandtlDelta &)=delete
Disallow default bitwise assignment.
Apply Prandtl mixing-length based damping function to the specified geometric delta to improve near-w...
Definition: PrandtlDelta.H:74
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
Abstract base class for turbulence models (RAS, LES and laminar).
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
virtual void read(const dictionary &)
Read the LESdelta dictionary.
Definition: PrandtlDelta.C:89
PrandtlDelta(const word &name, const momentumTransportModel &turbulence, const dictionary &)
Construct from name, momentumTransportModel and dictionary.
Definition: PrandtlDelta.C:57
virtual ~PrandtlDelta()
Destructor.
Definition: PrandtlDelta.H:112
Namespace for OpenFOAM.