atmBoundaryLayerInletEpsilonFvPatchScalarField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2018 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField
28 
29 Group
30  grpRASBoundaryConditions grpInletBoundaryConditions
31 
32 Description
33  This boundary condition specifies an inlet value for the turbulence
34  dissipation, \f$\epsilon\f$, appropriate for atmospheric boundary layers.
35 
36  See Foam::atmBoundaryLayer for details.
37 
38  Example of the boundary condition specification:
39  \verbatim
40  ground
41  {
42  type atmBoundaryLayerInletEpsilon;
43  z (0 0 1);
44  Uref 10.0;
45  Zref 20.0;
46  z0 uniform 0.1;
47  zGround uniform 0.0;
48  }
49  \endverbatim
50 
51 See also
52  Foam::atmBoundaryLayer,
53  Foam::atmBoundaryLayerInletVelocityFvPatchVectorField,
54  Foam::atmBoundaryLayerInletKFvPatchScalarField
55 
56 SourceFiles
57  atmBoundaryLayerInletEpsilonFvPatchScalarField.C
58 
59 \*---------------------------------------------------------------------------*/
60 
61 #ifndef atmBoundaryLayerInletEpsilonFvPatchScalarField_H
62 #define atmBoundaryLayerInletEpsilonFvPatchScalarField_H
63 
64 #include "fvPatchFields.H"
66 #include "atmBoundaryLayer.H"
67 
68 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
69 
70 namespace Foam
71 {
72 
73 /*---------------------------------------------------------------------------*\
74  Class atmBoundaryLayerInletEpsilonFvPatchScalarField Declaration
75 \*---------------------------------------------------------------------------*/
76 
78 :
79  public inletOutletFvPatchScalarField,
80  public atmBoundaryLayer
81 {
82 
83 public:
84 
85  //- Runtime type information
86  TypeName("atmBoundaryLayerInletEpsilon");
87 
88 
89  // Constructors
90 
91  //- Construct from patch and internal field
93  (
94  const fvPatch&,
96  );
97 
98  //- Construct from patch, internal field and dictionary
100  (
101  const fvPatch&,
103  const dictionary&
104  );
105 
106  //- Construct by mapping given
107  // atmBoundaryLayerInletEpsilonFvPatchScalarField onto a new patch
109  (
111  const fvPatch&,
113  const fvPatchFieldMapper&
114  );
115 
116  //- Construct and return a clone
117  virtual tmp<fvPatchScalarField> clone() const
118  {
120  (
122  );
123  }
124 
125  //- Construct as copy setting internal field reference
127  (
130  );
131 
132  //- Construct and return a clone setting internal field reference
134  (
136  ) const
137  {
139  (
141  );
142  }
143 
144 
145  // Member functions
146 
147  //- Update the coefficients associated with the patch field
148  virtual void updateCoeffs();
149 
150 
151  // Mapping functions
152 
153  //- Map (and resize as needed) from self given a mapping object
154  virtual void autoMap
155  (
156  const fvPatchFieldMapper&
157  );
158 
159  //- Reverse map the given fvPatchField onto this fvPatchField
160  virtual void rmap
161  (
162  const fvPatchScalarField&,
163  const labelList&
164  );
165 
166 
167  //- Write
168  virtual void write(Ostream&) const;
169 };
170 
171 
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173 
174 } // End namespace Foam
175 
176 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 
178 #endif
179 
180 // ************************************************************************* //
Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField::TypeName
TypeName("atmBoundaryLayerInletEpsilon")
Runtime type information.
Foam::fvPatchField< scalar >
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:59
Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField::rmap
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
Definition: atmBoundaryLayerInletEpsilonFvPatchScalarField.C:133
Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: atmBoundaryLayerInletEpsilonFvPatchScalarField.C:109
Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField
This boundary condition specifies an inlet value for the turbulence dissipation, ,...
Definition: atmBoundaryLayerInletEpsilonFvPatchScalarField.H:76
Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField::write
virtual void write(Ostream &) const
Write.
Definition: atmBoundaryLayerInletEpsilonFvPatchScalarField.C:147
Foam::atmBoundaryLayer
This class provides functions to evaluate the velocity and turbulence distributions appropriate for a...
Definition: atmBoundaryLayer.H:210
Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField::clone
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Definition: atmBoundaryLayerInletEpsilonFvPatchScalarField.H:116
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:63
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField::autoMap
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Definition: atmBoundaryLayerInletEpsilonFvPatchScalarField.C:123
atmBoundaryLayer.H
Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField::atmBoundaryLayerInletEpsilonFvPatchScalarField
atmBoundaryLayerInletEpsilonFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Definition: atmBoundaryLayerInletEpsilonFvPatchScalarField.C:43
fvPatchFields.H
Foam::List< label >
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:47
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
inletOutletFvPatchFields.H
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:54