regionCoupledWallPolyPatch.C
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-2012 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 {
157 }
158 
159 
161 {
163 }
164 
165 
167 {
170 }
171 
172 
174 {
177 }
178 
179 
180 // ************************************************************************* //
Foam::regionCoupledWallPolyPatch::initUpdateMesh
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
Definition: regionCoupledWallPolyPatch.C:160
p
p
Definition: pEqn.H:62
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::polyPatch::movePoints
virtual void movePoints(PstreamBuffers &, const pointField &p)
Correct patches after moving points.
Definition: polyPatch.C:57
Foam::polyBoundaryMesh
Foam::polyBoundaryMesh.
Definition: polyBoundaryMesh.H:60
polyPatch.H
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
Foam::PstreamBuffers
Buffers for inter-processor communications streams (UOPstream, UIPstream).
Definition: PstreamBuffers.H:85
Foam::polyPatch::write
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
Definition: polyPatch.C:382
Foam::polyPatch::updateMesh
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
Definition: polyPatch.C:62
Foam::regionCoupledWallPolyPatch::initGeometry
virtual void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
Definition: regionCoupledWallPolyPatch.C:126
Foam::regionCoupledWallPolyPatch::regionCoupledWallPolyPatch
regionCoupledWallPolyPatch(const word &name, const label size, const label start, const label index, const polyBoundaryMesh &bm, const word &patchType)
Construct from components.
Definition: regionCoupledWallPolyPatch.C:49
Foam::polyPatch::initUpdateMesh
virtual void initUpdateMesh(PstreamBuffers &)
Initialise the update of the patch topology.
Definition: polyPatch.H:115
Foam::label
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
Foam::Field
Pre-declare SubField and related Field type.
Definition: Field.H:57
Foam::polyPatch::initMovePoints
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
Definition: polyPatch.H:108
Foam::polyPatch
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:66
Foam::regionCoupledBase
Base class with common functinality for regionCoupled polyPatch. It includes AMI.
Definition: regionCoupledBase.H:51
Foam::polyPatch::initGeometry
virtual void initGeometry(PstreamBuffers &)
Initialise the calculation of the patch geometry.
Definition: polyPatch.H:100
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::wallPolyPatch
Foam::wallPolyPatch.
Definition: wallPolyPatch.H:48
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::regionCoupledWallPolyPatch::write
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
Definition: regionCoupledWallPolyPatch.C:173
regionCoupledWallPolyPatch.H
Foam::regionCoupledWallPolyPatch::initMovePoints
virtual void initMovePoints(PstreamBuffers &, const pointField &)
Initialise the patches for moving points.
Definition: regionCoupledWallPolyPatch.C:140
Foam::regionCoupledWallPolyPatch::updateMesh
virtual void updateMesh(PstreamBuffers &)
Update of the patch topology.
Definition: regionCoupledWallPolyPatch.C:166
Foam::regionCoupledWallPolyPatch
regionCoupledWall
Definition: regionCoupledWallPolyPatch.H:52
Foam::UList
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::regionCoupledWallPolyPatch::calcGeometry
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
Definition: regionCoupledWallPolyPatch.C:132
Foam::regionCoupledBase::write
virtual void write(Ostream &) const
Write the polyPatch data as a dictionary.
Definition: regionCoupledBase.C:333
Foam::regionCoupledWallPolyPatch::~regionCoupledWallPolyPatch
virtual ~regionCoupledWallPolyPatch()
Destructor.
Definition: regionCoupledWallPolyPatch.C:118
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::regionCoupledWallPolyPatch::movePoints
virtual void movePoints(PstreamBuffers &, const pointField &)
Correct patches after moving points.
Definition: regionCoupledWallPolyPatch.C:150
Foam::polyPatch::calcGeometry
virtual void calcGeometry(PstreamBuffers &)
Calculate the patch geometry.
Definition: polyPatch.H:104
Foam::regionCoupledBase::clearGeom
virtual void clearGeom()
Clear geometry.
Definition: regionCoupledBase.C:116
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)
Foam::name
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47