OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

PrimitivePatch Class Template Reference

Inheritance diagram for PrimitivePatch:

Inheritance graph
[legend]
Collaboration diagram for PrimitivePatch:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class Face, template< class > class FaceList, class PointField>
class Foam::PrimitivePatch< Face, FaceList, PointField >

Definition at line 90 of file PrimitivePatch.H.


Public Types

enum  surfaceTopo { MANIFOLD, OPEN, ILLEGAL }
 Enumeration defining the surface type. Used in check routines. More...
typedef Face FaceType
typedef FaceList< Face > FaceListType

Public Member Functions

 PrimitivePatch (const FaceList< Face > &faces, const pointField &points)
 Construct from components.
 PrimitivePatch (const PrimitivePatch< Face, FaceList, PointField > &)
 Construct as copy.
virtual ~PrimitivePatch ()
void clearOut ()
void clearGeom ()
void clearTopology ()
void clearPatchMeshAddr ()
const pointField & points () const
 Return reference to global points.
label nPoints () const
 Return number of points supporting patch faces.
label nEdges () const
 Return number of edges in patch.
const edgeList & edges () const
 Return list of edges, address into LOCAL point list.
label nInternalEdges () const
 Number of internal edges.
bool isInternalEdge (const label edgeI) const
 Is internal edge?
const labelList & boundaryPoints () const
 Return list of boundary points,.
const labelListList & faceFaces () const
 Return face-face addressing.
const labelListList & edgeFaces () const
 Return edge-face addressing.
const labelListList & faceEdges () const
 Return face-edge addressing.
const labelListList & pointEdges () const
 Return point-edge addressing.
const labelListList & pointFaces () const
 Return point-face addressing.
const List< Face > & localFaces () const
 Return patch faces addressing into local point list.
const labelList & meshPoints () const
 Return labelList of mesh points in patch.
const Map< label > & meshPointMap () const
 Mesh point map. Given the global point index find its.
const pointField & localPoints () const
 Return pointField of points in patch.
const labelList & localPointOrder () const
 Return orders the local points for most efficient search.
label whichPoint (const label gp) const
 Given a global point index, return the local point.
label whichEdge (const edge &e) const
 Given an edge in local point labels, return its.
labelList meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const
 Return labels of patch edges in the global edge list.
const vectorField & faceNormals () const
 Return face normals for patch.
const vectorField & pointNormals () const
 Return point normals for patch.
template<class ToPatch>
List< objectHit > projectPoints (const ToPatch &targetPatch, const vectorField &projectionDirection, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) const
 Project vertices of patch onto another patch.
template<class ToPatch>
List< objectHit > projectFaceCentres (const ToPatch &targetPatch, const vectorField &projectionDirection, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) const
 Project vertices of patch onto another patch.
const labelListList & edgeLoops () const
 Return list of closed loops of boundary vertices.
surfaceTopo surfaceType () const
 Calculate surface type formed by patch.
bool checkTopology (const bool report=false, labelHashSet *setPtr=NULL) const
 Check surface formed by patch for manifoldness (see above).
bool checkPointManifold (const bool report=false, labelHashSet *setPtr=NULL) const
 Checks primitivePatch for faces sharing point but not edge.
virtual void movePoints (const pointField &)
 Correct patch after moving points.
void operator= (const PrimitivePatch< Face, FaceList, PointField > &)
 Assignment.

Member Typedef Documentation

typedef Face FaceType

Definition at line 100 of file PrimitivePatch.H.

typedef FaceList<Face> FaceListType

Definition at line 101 of file PrimitivePatch.H.


Member Enumeration Documentation

Enumeration defining the surface type. Used in check routines.

Enumerator:
MANIFOLD 
OPEN 
ILLEGAL 

Definition at line 107 of file PrimitivePatch.H.


Constructor & Destructor Documentation

PrimitivePatch ( const FaceList< Face > &  faces,
const pointField &  points 
)

Construct from components.

PrimitivePatch ( const PrimitivePatch< Face, FaceList, PointField > &   ) 

Construct as copy.

virtual ~PrimitivePatch (  )  [virtual]


Member Function Documentation

void clearOut (  ) 

Reimplemented in triSurface, and directMappedPolyPatch.

void clearGeom (  ) 

void clearTopology (  ) 

Reimplemented in triSurface.

void clearPatchMeshAddr (  ) 

Reimplemented in triSurface.

const pointField& points (  )  const [inline]

Return reference to global points.

Definition at line 266 of file PrimitivePatch.H.

label nPoints (  )  const [inline]

Return number of points supporting patch faces.

Definition at line 277 of file PrimitivePatch.H.

Referenced by facePointPatch::name().

Here is the caller graph for this function:

label nEdges (  )  const [inline]

Return number of edges in patch.

Definition at line 283 of file PrimitivePatch.H.

const edgeList& edges (  )  const

Return list of edges, address into LOCAL point list.

label nInternalEdges (  )  const

Number of internal edges.

Referenced by PrimitivePatch< Foam::labelledTri, Foam::List< T >, Foam::Field >::nEdges().

Here is the caller graph for this function:

bool isInternalEdge ( const label  edgeI  )  const [inline]

Is internal edge?

Definition at line 295 of file PrimitivePatch.H.

const labelList& boundaryPoints (  )  const

Return list of boundary points,.

address into LOCAL point list

const labelListList& faceFaces (  )  const

Return face-face addressing.

const labelListList& edgeFaces (  )  const

Return edge-face addressing.

const labelListList& faceEdges (  )  const

Return face-edge addressing.

const labelListList& pointEdges (  )  const

Return point-edge addressing.

const labelListList& pointFaces (  )  const

Return point-face addressing.

const List<Face>& localFaces (  )  const

Return patch faces addressing into local point list.

const labelList& meshPoints (  )  const

Return labelList of mesh points in patch.

Referenced by facePointPatch::index().

Here is the caller graph for this function:

const Map<label>& meshPointMap (  )  const

Mesh point map. Given the global point index find its.

location in the patch

const pointField& localPoints (  )  const

Return pointField of points in patch.

Referenced by facePointPatch::meshPoints().

Here is the caller graph for this function:

const labelList& localPointOrder (  )  const

Return orders the local points for most efficient search.

label whichPoint ( const label  gp  )  const

Given a global point index, return the local point.

index. If the point is not found, return -1

label whichEdge ( const edge &  e  )  const

Given an edge in local point labels, return its.

index in the edge list. If the edge is not found, return -1

labelList meshEdges ( const edgeList &  allEdges,
const labelListList &  cellEdges,
const labelList &  faceCells 
) const

Return labels of patch edges in the global edge list.

const vectorField& faceNormals (  )  const

Return face normals for patch.

const vectorField& pointNormals (  )  const

Return point normals for patch.

Referenced by facePointPatch::localPoints().

Here is the caller graph for this function:

List<objectHit> projectPoints ( const ToPatch &  targetPatch,
const vectorField &  projectionDirection,
const intersection::algorithm  alg = intersection::FULL_RAY,
const intersection::direction  dir = intersection::VECTOR 
) const

Project vertices of patch onto another patch.

List<objectHit> projectFaceCentres ( const ToPatch &  targetPatch,
const vectorField &  projectionDirection,
const intersection::algorithm  alg = intersection::FULL_RAY,
const intersection::direction  dir = intersection::VECTOR 
) const

Project vertices of patch onto another patch.

const labelListList& edgeLoops (  )  const

Return list of closed loops of boundary vertices.

Edge loops are given as ordered lists of vertices in local addressing

surfaceTopo surfaceType (  )  const

Calculate surface type formed by patch.

  • all edges have two neighbours (manifold)
  • some edges have more than two neighbours (illegal)
  • other (open)

bool checkTopology ( const bool  report = false,
labelHashSet *  setPtr = NULL 
) const

Check surface formed by patch for manifoldness (see above).

Insert vertices of incorrect edges set. Return true if any incorrect edge found.

bool checkPointManifold ( const bool  report = false,
labelHashSet *  setPtr = NULL 
) const

Checks primitivePatch for faces sharing point but not edge.

This denotes a surface that is pinched at a single point (test for pinched at single edge is already in PrimitivePatch) Returns true if this situation found and puts conflicting (mesh)point in set. Based on all the checking routines in primitiveMesh.

virtual void movePoints ( const pointField &   )  [virtual]

Correct patch after moving points.

Reimplemented in coupledPolyPatch, cyclicPolyPatch, processorPolyPatch, polyPatch, triSurface, and directMappedPolyPatch.

void operator= ( const PrimitivePatch< Face, FaceList, PointField > &   ) 

Assignment.


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd