FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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...

#include <dynamicMesh/localPointRegion.H>


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 67 of file localPointRegion.H.

Collaboration diagram for localPointRegion:

List of all members.

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.
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 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.

Constructor & Destructor Documentation

localPointRegion ( const polyMesh &   mesh  )

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

are candidates for duplication

Definition at line 449 of file localPointRegion.C.

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

localPointRegion ( const polyMesh &   mesh,
const labelList &   candidatePoints  
)

Construct from mesh and candidate points for duplication.

Definition at line 480 of file localPointRegion.C.

References forAll, and primitiveMesh::nPoints().


Member Function Documentation

ClassName ( "localPointRegion"    )

Runtime type information.

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 507 of file localPointRegion.C.

References Foam::abort(), primitiveMesh::faces(), Foam::FatalError, FatalErrorIn, forAll, primitiveMesh::nInternalFaces(), Foam::nl, pFaces, and primitiveMesh::points().

Referenced by meshRefinement::checkData(), and meshRefinement::getDuplicateFaces().

const Map<label>& meshPointMap (  ) const [inline]

Per point that is to be duplicated the local index.

Definition at line 162 of file localPointRegion.H.

Referenced by meshRefinement::dupNonManifoldPoints(), and duplicatePoints::setRefinement().

const labelListList& pointRegions (  ) const [inline]

Per local point the regions it is in.

Definition at line 168 of file localPointRegion.H.

Referenced by duplicatePoints::setRefinement().

const Map<label>& meshFaceMap (  ) const [inline]

Per face that uses a duplicated point the local index.

Definition at line 174 of file localPointRegion.H.

Referenced by duplicatePoints::setRefinement().

const faceList& faceRegions (  ) const [inline]

Per face the region of its points.

Definition at line 180 of file localPointRegion.H.

Referenced by duplicatePoints::setRefinement().

void updateMesh ( const mapPolyMesh &   map  )

Force recalculation of locally stored data on topological change.

Definition at line 591 of file localPointRegion.C.

References forAllConstIter, mapPolyMesh::reverseFaceMap(), mapPolyMesh::reversePointMap(), and List< T >::transfer().


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