localPointRegion Class Reference

Takes mesh with 'baffles' (= boundary faces sharing points). Determines for selected points on boundary faces the 'point region' it is connected to. Each region can be visited by a cell-face-cell walk. Used in duplicating points after splitting baffles. More...

Public Member Functions

 ClassName ("localPointRegion")
 Runtime type information. More...
 
 localPointRegion (const polyMesh &mesh)
 Construct from mesh. Assumes all non-coupled boundary points. More...
 
 localPointRegion (const polyMesh &mesh, const labelList &candidatePoints)
 Construct from mesh and candidate points for duplication. More...
 
 localPointRegion (const polyMesh &mesh, const labelPairList &baffles, const labelList &candidatePoints)
 Construct from mesh and candidate points for duplication. More...
 
const Map< label > & meshPointMap () const
 Per point that is to be duplicated the local index. More...
 
const labelListListpointRegions () const
 Per local point the regions it is in. More...
 
const Map< label > & meshFaceMap () const
 Per face that uses a duplicated point the local index. More...
 
const faceListfaceRegions () const
 Per face (in local index) the region of its points. More...
 
void updateMesh (const mapPolyMesh &)
 Force recalculation of locally stored data on topological change. More...
 

Static Public Member Functions

static labelList findDuplicateFaces (const primitiveMesh &, const labelList &)
 Helper routine to find baffles (two boundary faces using the. More...
 
static labelPairList findDuplicateFacePairs (const polyMesh &)
 Helper routine to find all baffles (two boundary faces. More...
 

Detailed Description

Takes mesh with 'baffles' (= boundary faces sharing points). Determines for selected points on boundary faces the 'point region' it is connected to. Each region can be visited by a cell-face-cell walk. Used in duplicating points after splitting baffles.

Regions are not consecutive per processor. They will be -1..nRegions_.

Note: coupled boundaries (cyclics, parallel) not fully tested.

Source files

Definition at line 69 of file localPointRegion.H.

Constructor & Destructor Documentation

◆ localPointRegion() [1/3]

localPointRegion ( const polyMesh mesh)

Construct from mesh. Assumes all non-coupled boundary points.

are candidates for duplication

Definition at line 462 of file localPointRegion.C.

References polyMesh::boundaryMesh(), coupled(), forAll, mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), primitiveMesh::nPoints(), and patches.

Here is the call graph for this function:

◆ localPointRegion() [2/3]

localPointRegion ( const polyMesh mesh,
const labelList candidatePoints 
)

Construct from mesh and candidate points for duplication.

Definition at line 492 of file localPointRegion.C.

References forAll, mesh, and primitiveMesh::nPoints().

Here is the call graph for this function:

◆ localPointRegion() [3/3]

localPointRegion ( const polyMesh mesh,
const labelPairList baffles,
const labelList candidatePoints 
)

Construct from mesh and candidate points for duplication.

Definition at line 515 of file localPointRegion.C.

References forAll, mesh, and primitiveMesh::nPoints().

Here is the call graph for this function:

Member Function Documentation

◆ ClassName()

ClassName ( "localPointRegion"  )

Runtime type information.

◆ findDuplicateFaces()

Foam::labelList findDuplicateFaces ( const primitiveMesh mesh,
const labelList boundaryFaces 
)
static

Helper routine to find baffles (two boundary faces using the.

same points but in reverse order) Gets list of (boundary!) faces to check. Returns labelList of same size as the input list with -1 or index of other face in the input list. Does not handle duplicate faces on both sides of processor patch

Definition at line 543 of file localPointRegion.C.

References Foam::abort(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< FaceList, PointField >::localPoints(), mesh, primitiveMesh::nInternalFaces(), Foam::nl, pFaces, PrimitivePatch< FaceList, PointField >::pointFaces(), and polyMesh::points().

Referenced by meshRefinement::checkData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findDuplicateFacePairs()

Foam::List< Foam::labelPair > findDuplicateFacePairs ( const polyMesh mesh)
static

Helper routine to find all baffles (two boundary faces.

using the same points but in reverse order)

Definition at line 624 of file localPointRegion.C.

References Foam::abort(), DynamicList< T, SizeMin >::append(), polyMesh::boundaryMesh(), primitiveMesh::faceCentres(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::identity(), mesh, IOobject::name(), primitiveMesh::nBoundaryFaces(), primitiveMesh::nInternalFaces(), Foam::nl, patches, DynamicList< T, SizeMin >::shrink(), UList< T >::size(), and polyBoundaryMesh::whichPatch().

Referenced by preserveBaffles::add(), preserveBaffles::apply(), meshRefinement::balance(), snappySnapDriver::doSnap(), meshRefinement::mergeFreeStandingBaffles(), snappyLayerDriver::mergePatchFacesUndo(), meshRefinement::mergeZoneBaffles(), and displacementMeshMoverMotionSolver::meshMover().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ meshPointMap()

const Map< label > & meshPointMap ( ) const
inline

Per point that is to be duplicated the local index.

Definition at line 175 of file localPointRegion.H.

◆ pointRegions()

const labelListList & pointRegions ( ) const
inline

Per local point the regions it is in.

Definition at line 181 of file localPointRegion.H.

◆ meshFaceMap()

const Map< label > & meshFaceMap ( ) const
inline

Per face that uses a duplicated point the local index.

Definition at line 187 of file localPointRegion.H.

◆ faceRegions()

const faceList & faceRegions ( ) const
inline

Per face (in local index) the region of its points.

Definition at line 193 of file localPointRegion.H.

◆ updateMesh()

void updateMesh ( const mapPolyMesh map)

Force recalculation of locally stored data on topological change.

Definition at line 684 of file localPointRegion.C.

References forAllConstIters, HashTable< T, Key, Hash >::insert(), newPointi, mapPolyMesh::reverseFaceMap(), and mapPolyMesh::reversePointMap().

Here is the call graph for this function:

The documentation for this class was generated from the following files: