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 labelListList & | pointRegions () 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 faceList & | faceRegions () 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... | |
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 | ) |
localPointRegion | ( | const polyMesh & | mesh, |
const labelList & | candidatePoints | ||
) |
Construct from mesh and candidate points for duplication.
Definition at line 486 of file localPointRegion.C.
References forAll, mesh, and primitiveMesh::nPoints().
localPointRegion | ( | const polyMesh & | mesh, |
const labelPairList & | baffles, | ||
const labelList & | candidatePoints | ||
) |
Construct from mesh and candidate points for duplication.
Definition at line 509 of file localPointRegion.C.
References forAll, mesh, and primitiveMesh::nPoints().
ClassName | ( | "localPointRegion" | ) |
Runtime type information.
|
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 537 of file localPointRegion.C.
References Foam::abort(), f(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, forAll, mesh, primitiveMesh::nInternalFaces(), Foam::nl, pFaces, and polyMesh::points().
Referenced by meshRefinement::checkData().
|
static |
Helper routine to find all baffles (two boundary faces.
using the same points but in reverse order)
Definition at line 618 of file localPointRegion.C.
References Foam::abort(), List< T >::append(), polyMesh::boundaryMesh(), primitiveMesh::faceCentres(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::identity(), mesh, IOobject::name(), primitiveMesh::nBoundaryFaces(), primitiveMesh::nInternalFaces(), Foam::nl, patches, 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().
|
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 677 of file localPointRegion.C.
References forAllConstIters(), newPointi, mapPolyMesh::reverseFaceMap(), mapPolyMesh::reversePointMap(), and List< T >::transfer().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.