IDDESDelta.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2015 OpenFOAM Foundation
9  Copyright (C) 2016-2017 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::IDDESDelta
29 
30 Description
31  IDDESDelta used by the IDDES (improved low Re Spalart-Allmaras DES model)
32  The min and max delta are calculated using the face to face distance of
33  the cell.
34 
35 SourceFiles
36  IDDESDelta.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef LESModels_IDDESDelta_H
41 #define LESModels_IDDESDelta_H
42 
43 #include "LESdelta.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace LESModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class IDDESDelta Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class IDDESDelta
57 :
58  public LESdelta
59 {
60  // Private data
61 
62  //- Run-time selectable delta for hmax
63  // Defaults to the maxDeltaXYZ model if not supplied
64  autoPtr<LESdelta> hmaxPtr_;
65 
66  scalar Cw_;
67 
68 
69  // Private Member Functions
70 
71  //- No copy construct
72  IDDESDelta(const IDDESDelta&) = delete;
73 
74  //- No copy assignment
75  void operator=(const IDDESDelta&) = delete;
76 
77  //- Calculate the delta values
78  void calcDelta();
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("IDDESDelta");
85 
86 
87  // Constructors
88 
89  //- Construct from name, mesh and IOdictionary
91  (
92  const word& name,
94  const dictionary&
95  );
96 
97 
98  // Destructor
99 
100  ~IDDESDelta()
101  {}
102 
103 
104  // Member Functions
105 
106  //- Read the LESdelta dictionary
107  void read(const dictionary&);
108 
109  //- Return the hmax delta field
110  const volScalarField& hmax() const
111  {
112  return *hmaxPtr_;
113  }
114 
115  // Correct values
116  void correct();
117 };
118 
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 } // End namespace LESModels
123 } // End namespace Foam
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 #endif
128 
129 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::LESModels::IDDESDelta::read
void read(const dictionary &)
Read the LESdelta dictionary.
Definition: IDDESDelta.C:193
Foam::LESModels::IDDESDelta
Definition: IDDESDelta.H:55
Foam::LESdelta::turbulence
const turbulenceModel & turbulence() const
Return turbulenceModel reference.
Definition: LESdelta.H:134
Foam::LESModels::IDDESDelta::correct
void correct()
Definition: IDDESDelta.C:203
Foam::LESModels::IDDESDelta::~IDDESDelta
~IDDESDelta()
Definition: IDDESDelta.H:99
Foam::turbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition: turbulenceModel.H:63
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
LESdelta.H
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::LESdelta
Abstract base class for LES deltas.
Definition: LESdelta.H:53
Foam::name
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
Foam::LESModels::IDDESDelta::TypeName
TypeName("IDDESDelta")
Runtime type information.
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::LESModels::IDDESDelta::hmax
const volScalarField & hmax() const
Return the hmax delta field.
Definition: IDDESDelta.H:109