regionCoupledWallPolyPatch.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-2020 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 
28 #include "polyPatch.H"
29 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34  defineTypeNameAndDebug(regionCoupledWallPolyPatch, 0);
35 
36  addToRunTimeSelectionTable(polyPatch, regionCoupledWallPolyPatch, word);
38  (
39  polyPatch,
40  regionCoupledWallPolyPatch,
41  dictionary
42  );
43 }
44 
45 
46 // * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * * * * //
47 
49 (
50  const word& name,
51  const label size,
52  const label start,
53  const label index,
54  const polyBoundaryMesh& bm,
55  const word& patchType
56 )
57 :
58  wallPolyPatch(name, size, start, index, bm, patchType),
59  regionCoupledBase(static_cast<const polyPatch&>(*this))
60 {}
61 
62 
64 (
65  const word& name,
66  const dictionary& dict,
67  const label index,
68  const polyBoundaryMesh& bm,
69  const word& patchType
70 )
71 :
72  wallPolyPatch(name, dict, index, bm, patchType),
73  regionCoupledBase(static_cast<const polyPatch&>(*this), dict)
74 {}
75 
76 
78 (
80  const polyBoundaryMesh& bm
81 )
82 :
83  wallPolyPatch(pp, bm),
84  regionCoupledBase(*this, pp)
85 {}
86 
87 
89 (
91  const polyBoundaryMesh& bm,
92  const label index,
93  const label newSize,
94  const label newStart
95 )
96 :
97  wallPolyPatch(pp, bm, index, newSize, newStart),
98  regionCoupledBase(*this, pp)
99 {}
100 
101 
103 (
104  const regionCoupledWallPolyPatch& pp,
105  const polyBoundaryMesh& bm,
106  const label index,
107  const labelUList& mapAddressing,
108  const label newStart
109 )
110 :
111  wallPolyPatch(pp, bm, index, mapAddressing, newStart),
112  regionCoupledBase(*this, pp)
113 {}
114 
115 
116 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
117 
119 {
121 }
122 
123 
124 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
125 
127 {
129 }
130 
131 
133 {
136 }
137 
138 
140 (
141  PstreamBuffers& pBufs,
142  const pointField& p
143 )
144 {
146 }
147 
148 
150 (
151  PstreamBuffers& pBufs,
152  const pointField& p
153 )
154 {
155  wallPolyPatch::movePoints(pBufs, p);
157 }
158 
159 
161 {
163 }
164 
165 
167 {
170 }
171 
172 
174 {
177 }
178 
179 
180 // ************************************************************************* //
Base class with common functionality for regionCoupled polyPatch. It includes AMI.
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
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
Definition: polyPatch.H:115
virtual void clearGeom()
Clear geometry.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
Definition: polyPatch.H:108
Macros for easy insertion into run-time selection tables.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
Definition: polyPatch.C:376
virtual void movePoints(PstreamBuffers &, const pointField &p)
Correct patches after moving points.
Definition: polyPatch.C:57
virtual void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
A class for handling words, derived from string.
Definition: word.H:59
Foam::wallPolyPatch.
Definition: wallPolyPatch.H:48
virtual void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
Definition: polyPatch.C:63
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Definition: HashTable.H:60
Foam::polyBoundaryMesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
Definition: polyPatch.H:104
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
Buffers for inter-processor communications streams (UOPstream, UIPstream).
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
regionCoupledWallPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
virtual void initCalcGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
Definition: polyPatch.H:100
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
Namespace for OpenFOAM.