Go to the documentation of this file.
34 template<
class>
class FaceList,
52 template<
class>
class FaceList,
59 const FaceList<Face>& faces,
63 FaceList<Face>(faces),
67 boundaryPointsPtr_(NULL),
75 meshPointMapPtr_(NULL),
77 localPointsPtr_(NULL),
78 localPointOrderPtr_(NULL),
79 faceCentresPtr_(NULL),
80 faceNormalsPtr_(NULL),
81 pointNormalsPtr_(NULL)
89 template<
class>
class FaceList,
96 FaceList<Face>& faces,
101 FaceList<Face>(faces, reUse),
105 boundaryPointsPtr_(NULL),
109 pointEdgesPtr_(NULL),
110 pointFacesPtr_(NULL),
111 localFacesPtr_(NULL),
112 meshPointsPtr_(NULL),
113 meshPointMapPtr_(NULL),
115 localPointsPtr_(NULL),
116 localPointOrderPtr_(NULL),
117 faceCentresPtr_(NULL),
118 faceNormalsPtr_(NULL),
119 pointNormalsPtr_(NULL)
126 template<
class>
class FaceList,
136 PrimitivePatchName(),
141 boundaryPointsPtr_(NULL),
145 pointEdgesPtr_(NULL),
146 pointFacesPtr_(NULL),
147 localFacesPtr_(NULL),
148 meshPointsPtr_(NULL),
149 meshPointMapPtr_(NULL),
151 localPointsPtr_(NULL),
152 localPointOrderPtr_(NULL),
153 faceCentresPtr_(NULL),
154 faceNormalsPtr_(NULL),
155 pointNormalsPtr_(NULL)
164 template<
class>
class FaceList,
180 template<
class>
class FaceList,
193 Pout<<
"PrimitivePatch<Face, FaceList, PointField, PointType>::"
195 <<
"recalculating PrimitivePatch geometry following mesh motion"
206 template<
class>
class FaceList,
226 template<
class>
class FaceList,
239 return nInternalEdges_;
246 template<
class>
class FaceList,
254 if (!boundaryPointsPtr_)
259 return *boundaryPointsPtr_;
266 template<
class>
class FaceList,
279 return *faceFacesPtr_;
286 template<
class>
class FaceList,
299 return *edgeFacesPtr_;
306 template<
class>
class FaceList,
319 return *faceEdgesPtr_;
326 template<
class>
class FaceList,
339 return *pointEdgesPtr_;
346 template<
class>
class FaceList,
359 return *pointFacesPtr_;
366 template<
class>
class FaceList,
379 return *localFacesPtr_;
386 template<
class>
class FaceList,
399 return *meshPointsPtr_;
406 template<
class>
class FaceList,
414 if (!meshPointMapPtr_)
419 return *meshPointMapPtr_;
426 template<
class>
class FaceList,
434 if (!localPointsPtr_)
439 return *localPointsPtr_;
446 template<
class>
class FaceList,
454 if (!localPointOrderPtr_)
456 calcLocalPointOrder();
459 return *localPointOrderPtr_;
466 template<
class>
class FaceList,
479 if (fnd != meshPointMap().end())
494 template<
class>
class FaceList,
502 if (!faceCentresPtr_)
507 return *faceCentresPtr_;
514 template<
class>
class FaceList,
522 if (!faceNormalsPtr_)
527 return *faceNormalsPtr_;
534 template<
class>
class FaceList,
542 if (!pointNormalsPtr_)
547 return *pointNormalsPtr_;
556 template<
class>
class FaceList,
569 FaceList<Face>::operator=(pp);
const labelListList & pointFaces() const
Return point-face addressing.
label whichPoint(const label gp) const
Given a global point index, return the local point.
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()
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.
int optimisationSwitch(const char *name, const int defaultValue=0)
Lookup optimisation switch or add default value.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
For every point on the patch find the closest face on the target side. Return a target face label for...
Point addressing on the patch: pointEdges and pointFaces.
const labelListList & pointEdges() const
Return point-edge addressing.
virtual void movePoints(const Field< PointType > &)
Correct patch after moving points.
Orders the local points on the patch for most efficient search.
const labelList & boundaryPoints() const
Return list of boundary points,.
label nInternalEdges() const
Number of internal edges.
const Field< PointType > & pointNormals() const
Return point normals for patch.
This function calculates the list of patch edges, defined on the list of points supporting the patch....
prefixOSstream Pout(cout, "Pout")
const Field< PointType > & faceNormals() const
Return face 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 Field< PointType > & faceCentres() const
Return face centres for patch.
const labelList & localPointOrder() const
Return orders the local points for most efficient search.
PointField points_
Reference to global list of points.
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
static const debug::optimisationSwitch nSquaredProjection_
N-squared projection forced.
Checks topology of the patch.
const Map< label > & meshPointMap() const
Mesh point map. Given the global point index find its.
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.
Create the list of loops of outside vertices. Goes wrong on multiply connected edges (loops will be u...