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-2023 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  z (0 0 1);
39  Uref 10.0;
40  Zref 20.0;
41  z0 uniform 0.1;
42  zGround uniform 0.0;
43  }
44  \endverbatim
45 
46 See also
47  Foam::atmBoundaryLayer,
48  Foam::atmBoundaryLayerInletVelocityFvPatchVectorField,
49  Foam::atmBoundaryLayerInletKFvPatchScalarField
50 
51 SourceFiles
52  atmBoundaryLayerInletEpsilonFvPatchScalarField.C
53 
54 \*---------------------------------------------------------------------------*/
55 
56 #ifndef atmBoundaryLayerInletEpsilonFvPatchScalarField_H
57 #define atmBoundaryLayerInletEpsilonFvPatchScalarField_H
58 
59 #include "fvPatchFields.H"
61 #include "atmBoundaryLayer.H"
62 
63 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
64 
65 namespace Foam
66 {
67 
68 /*---------------------------------------------------------------------------*\
69  Class atmBoundaryLayerInletEpsilonFvPatchScalarField Declaration
70 \*---------------------------------------------------------------------------*/
71 
73 :
74  public inletOutletFvPatchScalarField,
75  public atmBoundaryLayer
76 {
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("atmBoundaryLayerInletEpsilon");
82 
83 
84  // Constructors
85 
86  //- Construct from patch, internal field and dictionary
88  (
89  const fvPatch&,
91  const dictionary&
92  );
93 
94  //- Construct by mapping given
95  // atmBoundaryLayerInletEpsilonFvPatchScalarField onto a new patch
97  (
99  const fvPatch&,
101  const fvPatchFieldMapper&
102  );
103 
104  //- Construct as copy setting internal field reference
106  (
109  );
110 
111  //- Construct and return a clone setting internal field reference
113  (
115  ) const
116  {
118  (
120  );
121  }
122 
123 
124  // Member Functions
125 
126  // Mapping functions
127 
128  //- Map the given fvPatchField onto this fvPatchField
129  virtual void map
130  (
131  const fvPatchScalarField&,
132  const fvPatchFieldMapper&
133  );
134 
135  //- Reset the fvPatchField to the given fvPatchField
136  // Used for mesh to mesh mapping
137  virtual void reset(const fvPatchScalarField&);
138 
139 
140  //- Write
141  virtual void write(Ostream&) const;
142 };
143 
144 
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
146 
147 } // End namespace Foam
148 
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 
151 #endif
152 
153 // ************************************************************************* //
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 fvPatchFieldMapper &)
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:160
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:87
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.