33 template<
class>
class FaceList,
40 const FaceList<Face>& faces,
44 FaceList<Face>(faces),
48 boundaryPointsPtr_(
nullptr),
49 faceFacesPtr_(
nullptr),
50 edgeFacesPtr_(
nullptr),
51 faceEdgesPtr_(
nullptr),
52 pointEdgesPtr_(
nullptr),
53 pointFacesPtr_(
nullptr),
54 localFacesPtr_(
nullptr),
55 meshPointsPtr_(
nullptr),
56 meshPointMapPtr_(
nullptr),
57 edgeLoopsPtr_(
nullptr),
58 localPointsPtr_(
nullptr),
59 localPointOrderPtr_(
nullptr),
60 faceCentresPtr_(
nullptr),
61 faceNormalsPtr_(
nullptr),
62 pointNormalsPtr_(
nullptr)
69 template<
class>
class FaceList,
76 const Xfer<FaceList<Face>>& faces,
80 FaceList<Face>(faces),
84 boundaryPointsPtr_(
nullptr),
85 faceFacesPtr_(
nullptr),
86 edgeFacesPtr_(
nullptr),
87 faceEdgesPtr_(
nullptr),
88 pointEdgesPtr_(
nullptr),
89 pointFacesPtr_(
nullptr),
90 localFacesPtr_(
nullptr),
91 meshPointsPtr_(
nullptr),
92 meshPointMapPtr_(
nullptr),
93 edgeLoopsPtr_(
nullptr),
94 localPointsPtr_(
nullptr),
95 localPointOrderPtr_(
nullptr),
96 faceCentresPtr_(
nullptr),
97 faceNormalsPtr_(
nullptr),
98 pointNormalsPtr_(
nullptr)
105 template<
class>
class FaceList,
112 FaceList<Face>& faces,
117 FaceList<Face>(faces, reuse),
118 points_(points, reuse),
121 boundaryPointsPtr_(
nullptr),
122 faceFacesPtr_(
nullptr),
123 edgeFacesPtr_(
nullptr),
124 faceEdgesPtr_(
nullptr),
125 pointEdgesPtr_(
nullptr),
126 pointFacesPtr_(
nullptr),
127 localFacesPtr_(
nullptr),
128 meshPointsPtr_(
nullptr),
129 meshPointMapPtr_(
nullptr),
130 edgeLoopsPtr_(
nullptr),
131 localPointsPtr_(
nullptr),
132 localPointOrderPtr_(
nullptr),
133 faceCentresPtr_(
nullptr),
134 faceNormalsPtr_(
nullptr),
135 pointNormalsPtr_(
nullptr)
142 template<
class>
class FaceList,
152 PrimitivePatchName(),
157 boundaryPointsPtr_(
nullptr),
158 faceFacesPtr_(
nullptr),
159 edgeFacesPtr_(
nullptr),
160 faceEdgesPtr_(
nullptr),
161 pointEdgesPtr_(
nullptr),
162 pointFacesPtr_(
nullptr),
163 localFacesPtr_(
nullptr),
164 meshPointsPtr_(
nullptr),
165 meshPointMapPtr_(
nullptr),
166 edgeLoopsPtr_(
nullptr),
167 localPointsPtr_(
nullptr),
168 localPointOrderPtr_(
nullptr),
169 faceCentresPtr_(
nullptr),
170 faceNormalsPtr_(
nullptr),
171 pointNormalsPtr_(
nullptr)
180 template<
class>
class FaceList,
196 template<
class>
class FaceList,
209 Pout<<
"PrimitivePatch<Face, FaceList, PointField, PointType>::" 211 <<
"recalculating PrimitivePatch geometry following mesh motion" 222 template<
class>
class FaceList,
242 template<
class>
class FaceList,
255 return nInternalEdges_;
262 template<
class>
class FaceList,
270 if (!boundaryPointsPtr_)
275 return *boundaryPointsPtr_;
282 template<
class>
class FaceList,
295 return *faceFacesPtr_;
302 template<
class>
class FaceList,
315 return *edgeFacesPtr_;
322 template<
class>
class FaceList,
335 return *faceEdgesPtr_;
342 template<
class>
class FaceList,
355 return *pointEdgesPtr_;
362 template<
class>
class FaceList,
375 return *pointFacesPtr_;
382 template<
class>
class FaceList,
395 return *localFacesPtr_;
402 template<
class>
class FaceList,
415 return *meshPointsPtr_;
422 template<
class>
class FaceList,
430 if (!meshPointMapPtr_)
435 return *meshPointMapPtr_;
442 template<
class>
class FaceList,
450 if (!localPointsPtr_)
455 return *localPointsPtr_;
462 template<
class>
class FaceList,
470 if (!localPointOrderPtr_)
472 calcLocalPointOrder();
475 return *localPointOrderPtr_;
482 template<
class>
class FaceList,
495 if (fnd != meshPointMap().end())
510 template<
class>
class FaceList,
518 if (!faceCentresPtr_)
523 return *faceCentresPtr_;
530 template<
class>
class FaceList,
538 if (!faceNormalsPtr_)
543 return *faceNormalsPtr_;
550 template<
class>
class FaceList,
558 if (!pointNormalsPtr_)
563 return *pointNormalsPtr_;
572 template<
class>
class FaceList,
585 FaceList<Face>::shallowCopy(pp);
const labelListList & pointEdges() const
Return point-edge addressing.
A simple container for copying or transferring objects of type <T>.
virtual void movePoints(const Field< PointType > &)
Correct patch after moving points.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const Field< PointType > & pointNormals() const
Return point normals for patch.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const labelList & boundaryPoints() const
Return list of boundary points,.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label nInternalEdges() const
Number of internal edges.
const Field< PointType > & faceCentres() const
Return face centres for patch.
const Field< PointType > & faceNormals() const
Return face normals for patch.
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
const labelList & localPointOrder() const
Return orders the local points for most efficient search.
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
iterator find(const Key &)
Find and return an iterator set at the hashedEntry.
For every point on the patch find the closest face on the target side. Return a target face label for...
This function calculates the list of patch edges, defined on the list of points supporting the patch...
A list of faces which address into the list of points.
const labelListList & faceFaces() const
Return face-face addressing.
const Map< label > & meshPointMap() const
Mesh point map. Given the global point index find its.
const labelListList & edgeFaces() const
Return edge-face addressing.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
Create the list of loops of outside vertices. Goes wrong on multiply connected edges (loops will be u...
PrimitivePatch(const FaceList< Face > &faces, const Field< PointType > &points)
Construct from components.
Point addressing on the patch: pointEdges and pointFaces.
label whichPoint(const label gp) const
Given a global point index, return the local point index.
const labelListList & pointFaces() const
Return point-face addressing.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
Checks topology of the patch.
virtual ~PrimitivePatch()
Destructor.
Orders the local points on the patch for most efficient search.
prefixOSstream Pout(cout, "Pout")
const labelListList & faceEdges() const
Return face-edge addressing.
A HashTable to objects of type <T> with a label key.