vanDriestDelta.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) 2019 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::vanDriestDelta
29 
30 Description
31  Simple cube-root of cell volume delta used in incompressible LES models.
32 
33 SourceFiles
34  vanDriestDelta.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef vanDriestDelta_H
39 #define vanDriestDelta_H
40 
41 #include "LESdelta.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace LESModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class vanDriestDelta Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class vanDriestDelta
55 :
56  public LESdelta
57 {
58  // Private data
59 
60  autoPtr<LESdelta> geometricDelta_;
61  scalar kappa_;
62  scalar Aplus_;
63  scalar Cdelta_;
64  label calcInterval_;
65 
66 
67  // Private Member Functions
68 
69  //- No copy construct
70  vanDriestDelta(const vanDriestDelta&) = delete;
71 
72  //- No copy assignment
73  void operator=(const vanDriestDelta&) = delete;
74 
75  // Calculate the delta values
76  void calcDelta();
77 
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("vanDriest");
83 
84 
85  // Constructors
86 
87  //- Construct from name, turbulenceModel and dictionary
89  (
90  const word& name,
92  const dictionary&
93  );
94 
95 
96  //- Destructor
97  virtual ~vanDriestDelta() = default;
98 
99 
100  // Member Functions
101 
102  //- Read the LESdelta dictionary
103  virtual void read(const dictionary&);
104 
105  // Correct values
106  virtual void correct();
107 };
108 
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 } // End namespace LESModels
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
Foam::LESModels::vanDriestDelta
Definition: vanDriestDelta.H:53
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::LESModels::vanDriestDelta::correct
virtual void correct()
Definition: vanDriestDelta.C:166
Foam::LESdelta::turbulence
const turbulenceModel & turbulence() const
Return turbulenceModel reference.
Definition: LESdelta.H:134
Foam::turbulenceModel
Abstract base class for turbulence models (RAS, LES and laminar).
Definition: turbulenceModel.H:63
Foam::LESModels::vanDriestDelta::read
virtual void read(const dictionary &)
Read the LESdelta dictionary.
Definition: vanDriestDelta.C:152
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
Foam::LESModels::vanDriestDelta::~vanDriestDelta
virtual ~vanDriestDelta()=default
Destructor.
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::vanDriestDelta::TypeName
TypeName("vanDriest")
Runtime type information.