turbulentBL.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) 2021-2024 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::Function1s::turbulentBL
26 
27 Description
28  Turbulent boundary-layer function pow(yHat, exponent)
29 
30  where yHat is the normalised distance to the wall and the optional exponent
31  defaults to 1/7.
32 
33  Usage:
34  \verbatim
35  <name> turbulentBL;
36  \endverbatim
37  or
38  \verbatim
39  <name>
40  {
41  type turbulentBL;
42  exponent 0.143;
43  }
44  \endverbatim
45 
46 See also
47  Foam::Function1
48  Foam::Function1s::laminarBL
49 
50 SourceFiles
51  turbulentBL.C
52 
53 \*---------------------------------------------------------------------------*/
54 
55 #ifndef turbulentBL_H
56 #define turbulentBL_H
57 
58 #include "Function1.H"
59 
60 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
61 
62 namespace Foam
63 {
64 namespace Function1s
65 {
66 
67 /*---------------------------------------------------------------------------*\
68  Class turbulentBL Declaration
69 \*---------------------------------------------------------------------------*/
70 
71 class turbulentBL
72 :
73  public FieldFunction1<scalar, turbulentBL>
74 {
75  // Private data
76 
77  //- Exponent of the pow function
78  const scalar exponent_;
79 
80 
81 public:
82 
83  // Runtime type information
84  TypeName("turbulentBL");
85 
86 
87  // Constructors
88 
89  //- Construct from name and dictionary
91  (
92  const word& name,
93  const unitConversions& units,
94  const dictionary& dict
95  );
96 
97 
98  //- Destructor
99  virtual ~turbulentBL();
100 
101 
102  // Member Functions
103 
104  //- Return value for time t
105  virtual inline scalar value(const scalar t) const;
106 
107  //- Return the integral between times t1 and t2
108  virtual inline scalar integral
109  (
110  const scalar t1,
111  const scalar t2
112  ) const;
113 
114  //- Write data to dictionary stream
115  virtual void write(Ostream& os, const unitConversions& units) const;
116 
117 
118  // Member Operators
119 
120  //- Disallow default bitwise assignment
121  void operator=(const turbulentBL&) = delete;
122 };
123 
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 } // End namespace Function1s
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #ifdef NoRepository
133  #include "turbulentBLI.H"
134 #endif
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 #endif
139 
140 // ************************************************************************* //
const word & name() const
Return the name of the entry.
Definition: Function1.C:78
Turbulent boundary-layer function pow(yHat, exponent)
Definition: turbulentBL.H:73
virtual ~turbulentBL()
Destructor.
Definition: turbulentBL.C:55
virtual scalar value(const scalar t) const
Return value for time t.
Definition: turbulentBLI.H:30
virtual scalar integral(const scalar t1, const scalar t2) const
Return the integral between times t1 and t2.
Definition: turbulentBLI.H:37
virtual void write(Ostream &os, const unitConversions &units) const
Write data to dictionary stream.
Definition: turbulentBL.C:62
void operator=(const turbulentBL &)=delete
Disallow default bitwise assignment.
turbulentBL(const word &name, const unitConversions &units, const dictionary &dict)
Construct from name and dictionary.
Definition: turbulentBL.C:42
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
dictionary dict