OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

PatchTools Class Reference

A collection of tools for searching, sorting PrimitivePatch information. More...

List of all members.


Static Public Member Functions

template<class Face , template< class > class FaceList, class PointField , class PointType >
static bool checkOrientation (const PrimitivePatch< Face, FaceList, PointField, PointType > &, const bool report=false, labelHashSet *marked=0)
 Check for orientation issues.
template<class BoolListType , class Face , template< class > class FaceList, class PointField , class PointType >
static void markZone (const PrimitivePatch< Face, FaceList, PointField, PointType > &, const BoolListType &borderEdge, const label faceI, const label currentZone, labelList &faceZone)
 Fill faceZone with currentZone for every face reachable.
template<class BoolListType , class Face , template< class > class FaceList, class PointField , class PointType >
static label markZones (const PrimitivePatch< Face, FaceList, PointField, PointType > &, const BoolListType &borderEdge, labelList &faceZone)
 Size and fills faceZone with zone of face.
template<class BoolListType , class Face , template< class > class FaceList, class PointField , class PointType >
static void subsetMap (const PrimitivePatch< Face, FaceList, PointField, PointType > &, const BoolListType &includeFaces, labelList &pointMap, labelList &faceMap)
 Determine the mapping for a sub-patch.
template<class Face , template< class > class FaceList, class PointField , class PointType >
static labelListList sortedEdgeFaces (const PrimitivePatch< Face, FaceList, PointField, PointType > &)
 Return edge-face addressing sorted by angle around the edge.
template<class Face , template< class > class FaceList, class PointField , class PointType >
static labelList edgeOwner (const PrimitivePatch< Face, FaceList, PointField, PointType > &)
 If 2 face neighbours: label of face where ordering of edge.

Detailed Description

A collection of tools for searching, sorting PrimitivePatch information.

The class could also be extended to include more that just static methods.

Source files

Definition at line 51 of file PatchTools.H.


Member Function Documentation

void markZone ( const PrimitivePatch< Face, FaceList, PointField, PointType > &  p,
const BoolListType &  borderEdge,
const label  faceI,
const label  currentZone,
labelList &  faceZone 
) [inline, static]

Fill faceZone with currentZone for every face reachable.

from faceI without crossing edge marked in borderEdge. Note: faceZone has to be sized nFaces before calling.

Definition at line 39 of file PatchToolsSearch.C.

References Foam::abort(), PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::faceEdges(), Foam::FatalError, FatalErrorIn, and forAll.

Referenced by PatchTools::markZones().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::label markZones ( const PrimitivePatch< Face, FaceList, PointField, PointType > &  p,
const BoolListType &  borderEdge,
labelList &  faceZone 
) [inline, static]

Size and fills faceZone with zone of face.

Zone is area reachable by edge crossing without crossing borderEdge. Returns number of zones.

Definition at line 123 of file PatchToolsSearch.C.

References PatchTools::markZone().

Here is the call graph for this function:

void subsetMap ( const PrimitivePatch< Face, FaceList, PointField, PointType > &  p,
const BoolListType &  includeFaces,
labelList &  pointMap,
labelList &  faceMap 
) [inline, static]

Determine the mapping for a sub-patch.

Only include faces for which bool-list entry is true.

Parameters:
[in] includeFaces faces to include
[out] pointMap mapping new to old localPoints
[out] faceMap mapping new to old faces

Definition at line 166 of file PatchToolsSearch.C.

References forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), and List< T >::size().

Here is the call graph for this function:

Foam::labelList edgeOwner ( const PrimitivePatch< Face, FaceList, PointField, PointType > &  p  )  [inline, static]

If 2 face neighbours: label of face where ordering of edge.

is consistent with righthand walk. If 1 neighbour: label of only face. If >2 neighbours: undetermined.

Definition at line 32 of file PatchToolsEdgeOwner.C.

References Foam::abort(), PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), Foam::FatalError, FatalErrorIn, forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), and Foam::nl.

Here is the call graph for this function:


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