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...
#include <localPointRegion.H>
Public Member Functions | |
| ClassName ("localPointRegion") | |
| Runtime type information. | |
| localPointRegion (const polyMesh &mesh) | |
| Construct from mesh. Assumes all non-coupled boundary points. | |
| localPointRegion (const polyMesh &mesh, const labelList &candidatePoints) | |
| Construct from mesh and candidate points for duplication. | |
| localPointRegion (const polyMesh &mesh, const labelPairList &baffles, const labelList &candidatePoints) | |
| Construct from mesh and candidate points for duplication. | |
| const Map< label > & | meshPointMap () const |
| Per point that is to be duplicated the local index. | |
| const labelListList & | pointRegions () const |
| Per local point the regions it is in. | |
| const Map< label > & | meshFaceMap () const |
| Per face that uses a duplicated point the local index. | |
| const faceList & | faceRegions () const |
| Per face (in local index) the region of its points. | |
| void | updateMesh (const mapPolyMesh &) |
| Force recalculation of locally stored data on topological change. | |
Static Public Member Functions | |
| static labelList | findDuplicateFaces (const primitiveMesh &, const labelList &) |
| Helper routine to find baffles (two boundary faces using the. | |
| static labelPairList | findDuplicateFacePairs (const polyMesh &) |
| Helper routine to find all baffles (two boundary faces. | |
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.
Definition at line 65 of file localPointRegion.H.
| localPointRegion | ( | const polyMesh & | mesh | ) |
Construct from mesh and candidate points for duplication.
Definition at line 485 of file localPointRegion.C.
| localPointRegion | ( | const polyMesh & | mesh, |
| const labelPairList & | baffles, | ||
| const labelList & | candidatePoints ) |
Construct from mesh and candidate points for duplication.
Definition at line 508 of file localPointRegion.C.
| ClassName | ( | "localPointRegion" | ) |
Runtime type information.
References mesh.
|
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 536 of file localPointRegion.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, forAll, PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< FaceList, PointField >::localPoints(), mesh, Foam::nl, pFaces, PrimitivePatch< FaceList, PointField >::pointFaces(), and IndirectListBase< T, Addr >::size().
Referenced by meshRefinement::checkData(), and findDuplicateFacePairs().


|
static |
Helper routine to find all baffles (two boundary faces.
using the same points but in reverse order)
Definition at line 617 of file localPointRegion.C.
References Foam::abort(), DynamicList< T, SizeMin >::append(), Foam::FatalError, FatalErrorInFunction, findDuplicateFaces(), forAll, Foam::identity(), Foam::isA(), mesh, Foam::nl, patches, and UList< T >::size().
Referenced by preserveBaffles::add(), preserveBaffles::apply(), meshRefinement::balance(), snappySnapDriver::doSnap(), snappyLayerDriver::dupFaceZonePoints(), meshRefinement::mergeFreeStandingBaffles(), snappyLayerDriver::mergePatchFacesUndo(), meshRefinement::mergeZoneBaffles(), and displacementMeshMoverMotionSolver::meshMover().


|
inline |
Per point that is to be duplicated the local index.
Definition at line 204 of file localPointRegion.H.
|
inline |
Per local point the regions it is in.
Definition at line 212 of file localPointRegion.H.
|
inline |
Per face that uses a duplicated point the local index.
Definition at line 220 of file localPointRegion.H.
|
inline |
Per face (in local index) the region of its points.
Definition at line 228 of file localPointRegion.H.
| void updateMesh | ( | const mapPolyMesh & | map | ) |
Force recalculation of locally stored data on topological change.
Definition at line 678 of file localPointRegion.C.
References forAllConstIters, HashTable< T, Key, Hash >::insert(), newPointi, mapPolyMesh::reverseFaceMap(), and mapPolyMesh::reversePointMap().
