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-2018 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 and internal field
88  (
89  const fvPatch&,
91  );
92 
93  //- Construct from patch, internal field and dictionary
95  (
96  const fvPatch&,
98  const dictionary&
99  );
100 
101  //- Construct by mapping given
102  // atmBoundaryLayerInletEpsilonFvPatchScalarField onto a new patch
104  (
106  const fvPatch&,
108  const fvPatchFieldMapper&
109  );
110 
111  //- Construct and return a clone
112  virtual tmp<fvPatchScalarField> clone() const
113  {
115  (
117  );
118  }
119 
120  //- Construct as copy setting internal field reference
122  (
125  );
126 
127  //- Construct and return a clone setting internal field reference
129  (
131  ) const
132  {
134  (
136  );
137  }
138 
139 
140  // Member functions
141 
142  // Mapping functions
143 
144  //- Map (and resize as needed) from self given a mapping object
145  virtual void autoMap
146  (
147  const fvPatchFieldMapper&
148  );
149 
150  //- Reverse map the given fvPatchField onto this fvPatchField
151  virtual void rmap
152  (
153  const fvPatchScalarField&,
154  const labelList&
155  );
156 
157 
158  //- Write
159  virtual void write(Ostream&) const;
160 };
161 
162 
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 
165 } // End namespace Foam
166 
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 
169 #endif
170 
171 // ************************************************************************* //
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:137
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:66
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Foam::fvPatchFieldMapper.
TypeName("atmBoundaryLayerInletEpsilon")
Runtime type information.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
This boundary condition specifies an inlet value for the turbulence dissipation, , appropriate for atmospheric boundary layers.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
atmBoundaryLayerInletEpsilonFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for managing temporary objects.
Definition: PtrList.H:53
Namespace for OpenFOAM.