atmBoundaryLayerInletVelocityFvPatchVectorField.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 | Copyright (C) 2011-2016 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::atmBoundaryLayerInletVelocityFvPatchVectorField
26 
27 Group
28  grpRASBoundaryConditions grpInletBoundaryConditions
29 
30 Description
31  This boundary condition specifies a velocity inlet profile appropriate
32  for atmospheric boundary layers (ABL).
33 
34  See Foam::atmBoundaryLayer for details.
35 
36  Example of the boundary condition specification:
37  \verbatim
38  ground
39  {
40  type atmBoundaryLayerInletVelocity;
41  n (1 0 0);
42  z (0 0 1);
43  Uref 10.0;
44  Zref 20.0;
45  z0 uniform 0.1;
46  zGround uniform 0.0;
47  }
48  \endverbatim
49 
50 See also
51  Foam::atmBoundaryLayer,
52  Foam::atmBoundaryLayerInletKFvPatchScalarField,
53  Foam::atmBoundaryLayerInletEpsilonFvPatchScalarField
54 
55 SourceFiles
56  atmBoundaryLayerInletVelocityFvPatchVectorField.C
57 
58 \*---------------------------------------------------------------------------*/
59 
60 #ifndef atmBoundaryLayerInletVelocityFvPatchVectorField_H
61 #define atmBoundaryLayerInletVelocityFvPatchVectorField_H
62 
63 #include "fvPatchFields.H"
65 #include "atmBoundaryLayer.H"
66 
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69 namespace Foam
70 {
71 
72 /*---------------------------------------------------------------------------*\
73  Class atmBoundaryLayerInletVelocityFvPatchVectorField Declaration
74 \*---------------------------------------------------------------------------*/
75 
77 :
78  public fixedValueFvPatchVectorField,
79  public atmBoundaryLayer
80 {
81 
82 public:
83 
84  //- Runtime type information
85  TypeName("atmBoundaryLayerInletVelocity");
86 
87 
88  // Constructors
89 
90  //- Construct from patch and internal field
92  (
93  const fvPatch&,
95  );
96 
97  //- Construct from patch, internal field and dictionary
99  (
100  const fvPatch&,
102  const dictionary&
103  );
104 
105  //- Construct by mapping given
106  // atmBoundaryLayerInletVelocityFvPatchVectorField onto a new patch
108  (
110  const fvPatch&,
112  const fvPatchFieldMapper&
113  );
114 
115  //- Construct and return a clone
116  virtual tmp<fvPatchVectorField> clone() const
117  {
119  (
121  );
122  }
123 
124  //- Construct as copy setting internal field reference
126  (
129  );
130 
131  //- Construct and return a clone setting internal field reference
133  (
135  ) const
136  {
138  (
140  );
141  }
142 
143 
144  // Member functions
145 
146  // Mapping functions
147 
148  //- Map (and resize as needed) from self given a mapping object
149  virtual void autoMap
150  (
151  const fvPatchFieldMapper&
152  );
153 
154  //- Reverse map the given fvPatchField onto this fvPatchField
155  virtual void rmap
156  (
157  const fvPatchVectorField&,
158  const labelList&
159  );
160 
161 
162  //- Write
163  virtual void write(Ostream&) const;
164 };
165 
166 
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 
169 } // End namespace Foam
170 
171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172 
173 #endif
174 
175 // ************************************************************************* //
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:65
virtual tmp< fvPatchVectorField > clone() const
Construct and return a clone.
virtual void rmap(const fvPatchVectorField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
Foam::fvPatchFieldMapper.
TypeName("atmBoundaryLayerInletVelocity")
Runtime type information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
atmBoundaryLayerInletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
This boundary condition specifies a velocity inlet profile appropriate for atmospheric boundary layer...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A class for managing temporary objects.
Definition: PtrList.H:54
Namespace for OpenFOAM.