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-------------------------------------------------------------------------------
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::vanDriestDelta
29
30Description
31 Simple cube-root of cell volume delta used in incompressible LES models.
32
33SourceFiles
34 vanDriestDelta.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef vanDriestDelta_H
39#define vanDriestDelta_H
40
41#include "LESdelta.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47namespace LESModels
48{
49
50/*---------------------------------------------------------------------------*\
51 Class vanDriestDelta Declaration
52\*---------------------------------------------------------------------------*/
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
79public:
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// ************************************************************************* //
virtual void read(const dictionary &)
Read the LESdelta dictionary.
virtual ~vanDriestDelta()=default
Destructor.
TypeName("vanDriest")
Runtime type information.
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