AtmosphericBoundaryLayerTurbulentEpsilon_DimensionedFieldFunction.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) 2026 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::DimensionedFieldFunctions::AtmosphericBoundaryLayerTurbulentEpsilon
26 
27 Description
28  Runtime selectable DimensionedFieldFunction to set the turbulent dissipation
29  rate, \f$\epsilon\f$, for an atmospheric boundary layer.
30 
31  See Foam::atmosphericBoundaryLayer for details.
32 
33 Usage
34  Example to set the epsilon internal field:
35  \verbatim
36  internalField
37  {
38  type atmosphericBoundaryLayerTurbulentEpsilon;
39  libs ("libatmosphericModels.so");
40  }
41  \endverbatim
42 
43 See also
44  Foam::atmosphericBoundaryLayer
45  Foam::atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField
46 
47 SourceFiles
48  AtmosphericBoundaryLayerTurbulentEpsilon_DimensionedFieldFunction.C
49 
50 \*---------------------------------------------------------------------------*/
51 
52 #ifndef AtmosphericBoundaryLayerTurbulentEpsilon_DimensionedFieldFunction_H
53 #define AtmosphericBoundaryLayerTurbulentEpsilon_DimensionedFieldFunction_H
54 
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 namespace Foam
60 {
61 namespace DimensionedFieldFunctions
62 {
63 
64 /*---------------------------------------------------------------------------*\
65  Class AtmosphericBoundaryLayerTurbulentEpsilon Declaration
66 \*---------------------------------------------------------------------------*/
67 
68 template<class DimensionedFieldType>
70 :
71  public DimensionedFieldFunction<DimensionedFieldType>
72 {
73  typedef typename DimensionedFieldType::Type_ Type;
74  typedef typename DimensionedFieldType::GeoMesh_::Zone Zone;
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("atmosphericBoundaryLayerTurbulentEpsilon");
81 
82 
83  // Constructors
84 
85  //- Construct with dictionary to initialise given field
87  (
88  const dictionary& dict,
89  DimensionedFieldType& field
90  );
91 
92  //- Construct a copy for the given field
94  (
96  DimensionedFieldType& field
97  );
98 
99  //- Construct and return a clone for the specified field
101  clone(DimensionedFieldType& field) const;
102 
103 
104  //- Destructor
106  {}
107 
108 
109  // Member Functions
110 
111  //- Evaluate the function and set the field
112  virtual void evaluate();
113 
114  //- Write data to dictionary stream
115  virtual void write(Ostream& os) const;
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace DimensionedFieldFunctions
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #ifdef NoRepository
128 #endif
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
Base class for run-time selectable internal and patch field initialisation evaluation and update with...
virtual autoPtr< DimensionedFieldFunction< DimensionedFieldType > > clone() const
Construct and return a clone for the specified field.
Runtime selectable DimensionedFieldFunction to set the turbulent dissipation rate,...
AtmosphericBoundaryLayerTurbulentEpsilon(const dictionary &dict, DimensionedFieldType &field)
Construct with dictionary to initialise given field.
TypeName("atmosphericBoundaryLayerTurbulentEpsilon")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Namespace for OpenFOAM.
dictionary dict