laminarBL.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::laminarBL
26 
27 Description
28  Laminar boundary-layer function yHat*(2 - yHat)
29 
30  where yHat is the normalised distance to the wall.
31 
32  Usage:
33  \verbatim
34  <name> laminarBL;
35  \endverbatim
36 
37 See also
38  Foam::Function1
39  Foam::Function1s::turbulentBL
40 
41 SourceFiles
42  laminarBL.C
43 
44 \*---------------------------------------------------------------------------*/
45 
46 #ifndef laminarBL_H
47 #define laminarBL_H
48 
49 #include "Function1.H"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 namespace Function1s
56 {
57 
58 /*---------------------------------------------------------------------------*\
59  Class laminarBL Declaration
60 \*---------------------------------------------------------------------------*/
61 
62 class laminarBL
63 :
64  public FieldFunction1<scalar, laminarBL>
65 {
66 
67 public:
68 
69  // Runtime type information
70  TypeName("laminarBL");
71 
72 
73  // Constructors
74 
75  //- Construct from name and dictionary
76  laminarBL
77  (
78  const word& name,
79  const unitConversions& units,
80  const dictionary& dict
81  );
82 
83 
84  //- Destructor
85  virtual ~laminarBL();
86 
87 
88  // Member Functions
89 
90  //- Return value for time t
91  virtual inline scalar value(const scalar t) const;
92 
93  //- Return the integral between times t1 and t2
94  virtual inline scalar integral
95  (
96  const scalar t1,
97  const scalar t2
98  ) const;
99 
100  //- Write data to dictionary stream
101  virtual void write(Ostream& os, const unitConversions& units) const;
102 
103 
104  // Member Operators
105 
106  //- Disallow default bitwise assignment
107  void operator=(const laminarBL&) = delete;
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Function1s
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #ifdef NoRepository
119  #include "laminarBLI.H"
120 #endif
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #endif
125 
126 // ************************************************************************* //
const word & name() const
Return the name of the entry.
Definition: Function1.C:78
Laminar boundary-layer function yHat*(2 - yHat)
Definition: laminarBL.H:64
virtual scalar value(const scalar t) const
Return value for time t.
Definition: laminarBLI.H:30
virtual scalar integral(const scalar t1, const scalar t2) const
Return the integral between times t1 and t2.
Definition: laminarBLI.H:37
virtual ~laminarBL()
Destructor.
Definition: laminarBL.C:54
virtual void write(Ostream &os, const unitConversions &units) const
Write data to dictionary stream.
Definition: laminarBL.C:61
laminarBL(const word &name, const unitConversions &units, const dictionary &dict)
Construct from name and dictionary.
Definition: laminarBL.C:42
void operator=(const laminarBL &)=delete
Disallow default bitwise assignment.
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