mappedWallPolyPatch.C
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-2026 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 \*---------------------------------------------------------------------------*/
25 
26 #include "mappedWallPolyPatch.H"
28 #include "mappedPolyPatch.H"
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
35 
38  (
39  polyPatch,
42  );
43 }
44 
45 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
46 
48 {
51 }
52 
53 
55 (
56  PstreamBuffers& pBufs,
57  const pointField& p
58 )
59 {
62 }
63 
64 
66 {
69 }
70 
71 
72 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
73 
75 (
76  const word& name,
77  const label size,
78  const label start,
79  const label index,
80  const polyBoundaryMesh& bm
81 )
82 :
83  wallPolyPatch(name, size, start, index, bm),
84  mappedPatchBase(static_cast<const polyPatch&>(*this))
85 {
86  // mapped is not constraint type so add mapped group explicitly
88  {
90  }
91 }
92 
93 
95 (
96  const word& name,
97  const label size,
98  const label start,
99  const label index,
100  const word& neighbourRegion,
101  const word& neighbourPatch,
102  const polyBoundaryMesh& bm
103 )
104 :
105  wallPolyPatch(name, size, start, index, bm),
107  (
108  *this,
109  neighbourRegion,
110  neighbourPatch,
111  cyclicTransform(true)
112  )
113 {
114  // mapped is not constraint type so add mapped group explicitly
116  {
118  }
119 }
120 
121 
123 (
124  const word& name,
125  const dictionary& dict,
126  const label index,
127  const polyBoundaryMesh& bm
128 )
129 :
130  wallPolyPatch(name, dict, index, bm),
131  mappedPatchBase(*this, dict, transformType::defaultNone)
132 {
133  // mapped is not constraint type so add mapped group explicitly
135  {
137  }
138 }
139 
140 
142 (
143  const mappedWallPolyPatch& pp,
144  const polyBoundaryMesh& bm
145 )
146 :
147  wallPolyPatch(pp, bm),
148  mappedPatchBase(*this, pp)
149 {}
150 
151 
153 (
154  const mappedWallPolyPatch& pp,
155  const polyBoundaryMesh& bm,
156  const label index,
157  const label newSize,
158  const label newStart
159 )
160 :
161  wallPolyPatch(pp, bm, index, newSize, newStart),
162  mappedPatchBase(*this, pp)
163 {}
164 
165 
166 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
167 
169 {}
170 
171 
172 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
173 
175 {
178 }
179 
180 
181 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
void append(const T &)
Append an element at the end of the list.
Definition: ListI.H:178
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
Buffers for inter-processor communications streams (UOPstream, UIPstream).
Cyclic plane transformation.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
transformType
The type of the transformation permitted/required by this patch.
Engine and base class for poly patches which provides interpolative mapping between two globally conf...
virtual void write(Ostream &) const
Write as a dictionary.
virtual void clearOut() const
Clear out data on mesh change.
Wall poly patch which can do interpolative mapping of values from another globally conforming poly pa...
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
virtual ~mappedWallPolyPatch()
Destructor.
virtual void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
mappedWallPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm)
Construct from components.
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
const wordList & inGroups() const
Return the optional groups patch belongs to.
Foam::polyBoundaryMesh.
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:71
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
Definition: polyPatch.C:306
virtual void movePoints(const pointField &p)
Correct patches after moving points.
Definition: polyPatch.C:56
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
Definition: polyPatch.H:102
virtual void topoChange(PstreamBuffers &)
Update of the patch topology.
Definition: polyPatch.C:68
Foam::wallPolyPatch.
Definition: wallPolyPatch.H:51
A class for handling words, derived from string.
Definition: word.H:63
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
label findIndex(const ListType &, typename ListType::const_reference, const label start=0)
Find first occurrence of given element and return index,.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)
dictionary dict
volScalarField & p