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") | |
localPointRegion (const polyMesh &mesh) | |
localPointRegion (const polyMesh &mesh, const labelList &candidatePoints) | |
localPointRegion (const polyMesh &mesh, const labelPairList &baffles, const labelList &candidatePoints) | |
const Map< label > & | meshPointMap () const |
const labelListList & | pointRegions () const |
const Map< label > & | meshFaceMap () const |
const faceList & | faceRegions () const |
void | updateMesh (const mapPolyMesh &) |
Static Public Member Functions | |
static labelList | findDuplicateFaces (const primitiveMesh &, const labelList &) |
static labelPairList | findDuplicateFacePairs (const polyMesh &) |
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 | ) |
Definition at line 455 of file localPointRegion.C.
References coupled(), forAll, mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), and patches.
localPointRegion | ( | const polyMesh & | mesh, |
const labelList & | candidatePoints | ||
) |
Definition at line 486 of file localPointRegion.C.
References forAll, mesh, and primitiveMesh::nPoints().
localPointRegion | ( | const polyMesh & | mesh, |
const labelPairList & | baffles, | ||
const labelList & | candidatePoints | ||
) |
Definition at line 509 of file localPointRegion.C.
References forAll, mesh, and primitiveMesh::nPoints().
ClassName | ( | "localPointRegion" | ) |
|
static |
Definition at line 537 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().
|
static |
Definition at line 618 of file localPointRegion.C.
References Foam::abort(), DynamicList::append(), polyMesh::boundaryMesh(), primitiveMesh::faceCentres(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::identity(), mesh, IOobject::name(), primitiveMesh::nBoundaryFaces(), primitiveMesh::nInternalFaces(), Foam::nl, patches, DynamicList::shrink(), and polyBoundaryMesh::whichPatch().
Referenced by preserveBaffles::add(), snappyLayerDriver::addLayers(), preserveBaffles::apply(), meshRefinement::balance(), snappySnapDriver::doSnap(), meshRefinement::mergeFreeStandingBaffles(), snappyLayerDriver::mergePatchFacesUndo(), meshRefinement::mergeZoneBaffles(), and displacementMeshMoverMotionSolver::meshMover().
|
inline |
Definition at line 171 of file localPointRegion.H.
|
inline |
Definition at line 177 of file localPointRegion.H.
|
inline |
Definition at line 183 of file localPointRegion.H.
|
inline |
Definition at line 189 of file localPointRegion.H.
void updateMesh | ( | const mapPolyMesh & | map | ) |
Definition at line 677 of file localPointRegion.C.
References forAllConstIters(), newPointi, mapPolyMesh::reverseFaceMap(), and mapPolyMesh::reversePointMap().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.