wedgeFvsPatchField.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-2016 OpenFOAM Foundation
9  Copyright (C) 2024 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::wedgeFvsPatchField
29 
30 Description
31  This boundary condition is similar to the cyclic condition, except that
32  it is applied to 2-D geometries.
33 
34  The "value" entry is MUST_READ.
35 
36 Usage
37  Example of the boundary condition specification:
38  \verbatim
39  <patchName>
40  {
41  type wedge;
42  value uniform ...; // Required value entry
43  }
44  \endverbatim
45 
46 SourceFiles
47  wedgeFvsPatchField.C
48 
49 \*---------------------------------------------------------------------------*/
50 
51 #ifndef Foam_wedgeFvsPatchField_H
52 #define Foam_wedgeFvsPatchField_H
53 
54 #include "fvsPatchField.H"
55 #include "wedgeFvPatch.H"
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 namespace Foam
60 {
61 
62 /*---------------------------------------------------------------------------*\
63  Class wedgeFvsPatch Declaration
64 \*---------------------------------------------------------------------------*/
65 
66 template<class Type>
68 :
69  public fvsPatchField<Type>
70 {
71 public:
72 
73  //- Runtime type information
74  TypeName(wedgeFvPatch::typeName_());
75 
76 
77  // Constructors
78 
79  //- Construct from patch and internal field
81  (
82  const fvPatch&,
84  );
85 
86  //- Construct from patch, internal field and dictionary.
87  //- The "value" entry is MUST_READ.
89  (
90  const fvPatch&,
92  const dictionary&
93  );
94 
95  //- Construct by mapping given wedgeFvsPatchField onto a new patch
97  (
99  const fvPatch&,
101  const fvPatchFieldMapper&
102  );
103 
104  //- Construct as copy
106  (
108  );
109 
110  //- Construct as copy setting internal field reference
112  (
115  );
116 
117  //- Return clone
118  virtual tmp<fvsPatchField<Type>> clone() const
119  {
120  return fvsPatchField<Type>::Clone(*this);
121  }
122 
123  //- Clone with an internal field reference
125  (
127  ) const
128  {
129  return fvsPatchField<Type>::Clone(*this, iF);
130  }
131 
132 
133  // Member Functions
134 
135  //- Write includes "value" entry
136  virtual void write(Ostream&) const;
137 };
138 
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 } // End namespace Foam
143 
144 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 
146 #ifdef NoRepository
147  #include "wedgeFvsPatchField.C"
148 #endif
149 
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 
152 #endif
153 
154 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
static tmp< fvsPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
TypeName(wedgeFvPatch::typeName_())
Runtime type information.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:70
A FieldMapper for finite-volume patch fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:56
wedgeFvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write includes "value" entry.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual tmp< fvsPatchField< Type > > clone() const
Return clone.
This boundary condition is similar to the cyclic condition, except that it is applied to 2-D geometri...
A class for managing temporary objects.
Definition: HashPtrTable.H:50
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Namespace for OpenFOAM.