Go to the documentation of this file.
35 template<
class>
class FaceList,
42 const FaceList<Face>& faces,
46 FaceList<Face>(faces),
50 boundaryPointsPtr_(
nullptr),
51 faceFacesPtr_(
nullptr),
52 edgeFacesPtr_(
nullptr),
53 faceEdgesPtr_(
nullptr),
54 pointEdgesPtr_(
nullptr),
55 pointFacesPtr_(
nullptr),
56 localFacesPtr_(
nullptr),
57 meshPointsPtr_(
nullptr),
58 meshPointMapPtr_(
nullptr),
59 edgeLoopsPtr_(
nullptr),
60 localPointsPtr_(
nullptr),
61 localPointOrderPtr_(
nullptr),
62 faceCentresPtr_(
nullptr),
63 faceAreasPtr_(
nullptr),
64 magFaceAreasPtr_(
nullptr),
65 faceNormalsPtr_(
nullptr),
66 pointNormalsPtr_(
nullptr)
73 template<
class>
class FaceList,
80 FaceList<Face>&& faces,
84 FaceList<Face>(std::move(faces)),
88 boundaryPointsPtr_(
nullptr),
89 faceFacesPtr_(
nullptr),
90 edgeFacesPtr_(
nullptr),
91 faceEdgesPtr_(
nullptr),
92 pointEdgesPtr_(
nullptr),
93 pointFacesPtr_(
nullptr),
94 localFacesPtr_(
nullptr),
95 meshPointsPtr_(
nullptr),
96 meshPointMapPtr_(
nullptr),
97 edgeLoopsPtr_(
nullptr),
98 localPointsPtr_(
nullptr),
99 localPointOrderPtr_(
nullptr),
100 faceCentresPtr_(
nullptr),
101 faceAreasPtr_(
nullptr),
102 magFaceAreasPtr_(
nullptr),
103 faceNormalsPtr_(
nullptr),
104 pointNormalsPtr_(
nullptr)
111 template<
class>
class FaceList,
118 FaceList<Face>& faces,
123 FaceList<Face>(faces, reuse),
127 boundaryPointsPtr_(
nullptr),
128 faceFacesPtr_(
nullptr),
129 edgeFacesPtr_(
nullptr),
130 faceEdgesPtr_(
nullptr),
131 pointEdgesPtr_(
nullptr),
132 pointFacesPtr_(
nullptr),
133 localFacesPtr_(
nullptr),
134 meshPointsPtr_(
nullptr),
135 meshPointMapPtr_(
nullptr),
136 edgeLoopsPtr_(
nullptr),
137 localPointsPtr_(
nullptr),
138 localPointOrderPtr_(
nullptr),
139 faceCentresPtr_(
nullptr),
140 faceAreasPtr_(
nullptr),
141 magFaceAreasPtr_(
nullptr),
142 faceNormalsPtr_(
nullptr),
143 pointNormalsPtr_(
nullptr)
150 template<
class>
class FaceList,
160 PrimitivePatchName(),
165 boundaryPointsPtr_(
nullptr),
166 faceFacesPtr_(
nullptr),
167 edgeFacesPtr_(
nullptr),
168 faceEdgesPtr_(
nullptr),
169 pointEdgesPtr_(
nullptr),
170 pointFacesPtr_(
nullptr),
171 localFacesPtr_(
nullptr),
172 meshPointsPtr_(
nullptr),
173 meshPointMapPtr_(
nullptr),
174 edgeLoopsPtr_(
nullptr),
175 localPointsPtr_(
nullptr),
176 localPointOrderPtr_(
nullptr),
177 faceCentresPtr_(
nullptr),
178 faceAreasPtr_(
nullptr),
179 magFaceAreasPtr_(
nullptr),
180 faceNormalsPtr_(
nullptr),
181 pointNormalsPtr_(
nullptr)
190 template<
class>
class FaceList,
206 template<
class>
class FaceList,
219 Pout<<
"PrimitivePatch<Face, FaceList, PointField, PointType>::"
221 <<
"recalculating PrimitivePatch geometry following mesh motion"
232 template<
class>
class FaceList,
252 template<
class>
class FaceList,
265 return nInternalEdges_;
272 template<
class>
class FaceList,
280 if (!boundaryPointsPtr_)
285 return *boundaryPointsPtr_;
292 template<
class>
class FaceList,
305 return *faceFacesPtr_;
312 template<
class>
class FaceList,
325 return *edgeFacesPtr_;
332 template<
class>
class FaceList,
345 return *faceEdgesPtr_;
352 template<
class>
class FaceList,
365 return *pointEdgesPtr_;
372 template<
class>
class FaceList,
385 return *pointFacesPtr_;
392 template<
class>
class FaceList,
405 return *localFacesPtr_;
412 template<
class>
class FaceList,
425 return *meshPointsPtr_;
432 template<
class>
class FaceList,
440 if (!meshPointMapPtr_)
445 return *meshPointMapPtr_;
452 template<
class>
class FaceList,
460 if (!localPointsPtr_)
465 return *localPointsPtr_;
472 template<
class>
class FaceList,
480 if (!localPointOrderPtr_)
482 calcLocalPointOrder();
485 return *localPointOrderPtr_;
492 template<
class>
class FaceList,
504 return meshPointMap().lookup(gp, -1);
511 template<
class>
class FaceList,
519 if (!faceCentresPtr_)
524 return *faceCentresPtr_;
531 template<
class>
class FaceList,
544 return *faceAreasPtr_;
551 template<
class>
class FaceList,
559 if (!magFaceAreasPtr_)
564 return *magFaceAreasPtr_;
571 template<
class>
class FaceList,
579 if (!faceNormalsPtr_)
584 return *faceNormalsPtr_;
591 template<
class>
class FaceList,
599 if (!pointNormalsPtr_)
604 return *pointNormalsPtr_;
613 template<
class>
class FaceList,
626 FaceList<Face>::shallowCopy(pp);
int debug
Static debugging option.
const labelListList & pointFaces() const
Return point-face addressing.
label whichPoint(const label gp) const
Given a global point index, return the local point index.
const labelListList & edgeFaces() const
Return edge-face addressing.
const edgeList & edges() const
Return list of edges, address into LOCAL point list.
PrimitivePatch(const FaceList< Face > &faces, const Field< PointType > &points)
Construct from components.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
virtual ~PrimitivePatch()
Destructor.
A HashTable to objects of type <T> with a label key.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const labelListList & faceEdges() const
Return face-edge addressing.
prefixOSstream Pout
An Ostream wrapper for parallel output to std::cout.
Checks topology of the patch.
const Field< PointType > & faceAreas() const
Return face area vectors for patch.
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 labelListList & pointEdges() const
Return point-edge addressing.
virtual void movePoints(const Field< PointType > &)
Correct patch after moving points.
Create the list of loops of outside vertices. Goes wrong on multiply connected edges (loops will be u...
Point addressing on the patch: pointEdges and pointFaces.
const labelList & boundaryPoints() const
Return list of boundary points, address into LOCAL point list.
This function calculates the list of patch edges, defined on the list of points supporting the patch....
label nInternalEdges() const
Number of internal edges.
const Field< PointType > & pointNormals() const
Return point normals for patch.
const Field< PointType > & faceNormals() const
Return face unit normals for patch.
For every point on the patch find the closest face on the target side. Return a target face label for...
const Field< PointType > & faceCentres() const
Return face centres for patch.
const labelList & localPointOrder() const
Return orders the local points for most efficient search.
Orders the local points on the patch for most efficient search.
const Field< scalar > & magFaceAreas() const
Return face area magnitudes for patch.
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
const Map< label > & meshPointMap() const
Mesh point map.
const labelListList & faceFaces() const
Return face-face addressing.
const labelList & meshPoints() const
Return labelList of mesh points in patch.
A list of faces which address into the list of points.