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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::IDDESDelta
29
30Description
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
35SourceFiles
36 IDDESDelta.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef LESModels_IDDESDelta_H
41#define LESModels_IDDESDelta_H
42
43#include "LESdelta.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49namespace LESModels
50{
51
52/*---------------------------------------------------------------------------*\
53 Class IDDESDelta Declaration
54\*---------------------------------------------------------------------------*/
56class 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
81public:
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
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// ************************************************************************* //
const volScalarField & hmax() const
Return the hmax delta field.
Definition: IDDESDelta.H:109
TypeName("IDDESDelta")
Runtime type information.
void read(const dictionary &)
Read the LESdelta dictionary.
Definition: IDDESDelta.C:193
Abstract base class for LES deltas.
Definition: LESdelta.H:54
const turbulenceModel & turbulence() const
Return turbulenceModel reference.
Definition: LESdelta.H:134
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Abstract base class for turbulence models (RAS, LES and laminar).
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73