atmBoundaryLayerInletEpsilonFvPatchScalarField.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) 2011-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::atmBoundaryLayerInletEpsilonFvPatchScalarField
26 
27 Description
28  This boundary condition specifies an inlet value for the turbulence
29  dissipation, \f$\epsilon\f$, appropriate for atmospheric boundary layers.
30 
31  See Foam::atmBoundaryLayer for details.
32 
33  Example of the boundary condition specification:
34  \verbatim
35  ground
36  {
37  type atmBoundaryLayerInletEpsilon;
38  flowDir (1 0 0);
39  zDir (0 0 1);
40  Uref 10.0;
41  Zref 20.0;
42  z0 uniform 0.1;
43  zGround uniform 0.0;
44  }
45  \endverbatim
46 
47 See also
48  Foam::atmBoundaryLayer,
49  Foam::atmBoundaryLayerInletVelocityFvPatchVectorField,
50  Foam::atmBoundaryLayerInletKFvPatchScalarField
51 
52 SourceFiles
53  atmBoundaryLayerInletEpsilonFvPatchScalarField.C
54 
55 \*---------------------------------------------------------------------------*/
56 
57 #ifndef atmBoundaryLayerInletEpsilonFvPatchScalarField_H
58 #define atmBoundaryLayerInletEpsilonFvPatchScalarField_H
59 
60 #include "fvPatchFields.H"
62 #include "atmBoundaryLayer.H"
63 
64 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 
66 namespace Foam
67 {
68 
69 /*---------------------------------------------------------------------------*\
70  Class atmBoundaryLayerInletEpsilonFvPatchScalarField Declaration
71 \*---------------------------------------------------------------------------*/
72 
74 :
75  public inletOutletFvPatchScalarField,
76  public atmBoundaryLayer
77 {
78 
79 public:
80 
81  //- Runtime type information
82  TypeName("atmBoundaryLayerInletEpsilon");
83 
84 
85  // Constructors
86 
87  //- Construct from patch, internal field and dictionary
89  (
90  const fvPatch&,
92  const dictionary&
93  );
94 
95  //- Construct by mapping given
96  // atmBoundaryLayerInletEpsilonFvPatchScalarField onto a new patch
98  (
100  const fvPatch&,
102  const fieldMapper&
103  );
104 
105  //- Construct as copy setting internal field reference
107  (
110  );
111 
112  //- Construct and return a clone setting internal field reference
114  (
116  ) const
117  {
119  (
121  );
122  }
123 
124 
125  // Member Functions
126 
127  // Mapping functions
128 
129  //- Map the given fvPatchField onto this fvPatchField
130  virtual void map(const fvPatchScalarField&, const fieldMapper&);
131 
132  //- Reset the fvPatchField to the given fvPatchField
133  // Used for mesh to mesh mapping
134  virtual void reset(const fvPatchScalarField&);
135 
136 
137  //- Write
138  virtual void write(Ostream&) const;
139 };
140 
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 } // End namespace Foam
145 
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 
148 #endif
149 
150 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
This boundary condition specifies an inlet value for the turbulence dissipation, ,...
virtual void reset(const fvPatchScalarField &)
Reset the fvPatchField to the given fvPatchField.
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
virtual void map(const fvPatchScalarField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
atmBoundaryLayerInletEpsilonFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
TypeName("atmBoundaryLayerInletEpsilon")
Runtime type information.
This class provides functions to evaluate the velocity and turbulence distributions appropriate for a...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Abstract base class for field mapping.
Definition: fieldMapper.H:48
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:88
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.