globalMeshData Class Reference

Various mesh related information for a parallel run. Upon construction, constructs all info using parallel communication. More...

Classes

class  ListPlusEqOp
 

Public Member Functions

 ClassName ("globalMeshData")
 Runtime type information. More...
 
 globalMeshData (const polyMesh &mesh)
 Construct from mesh, derive rest (does parallel communication!) More...
 
 globalMeshData (const globalMeshData &)=delete
 Disallow default bitwise copy construction. More...
 
 ~globalMeshData ()
 Destructor. More...
 
void clearOut ()
 Remove all demand driven data. More...
 
const polyMeshmesh () const
 Return the mesh reference. More...
 
bool parallel () const
 Does the mesh contain processor patches? (also valid when. More...
 
label nTotalPoints () const
 Return total number of points in decomposed mesh. Not. More...
 
label nTotalFaces () const
 Return total number of faces in decomposed mesh. Not. More...
 
label nTotalCells () const
 Return total number of cells in decomposed mesh. More...
 
const labelListListprocNbrProcs () const
 Return the processor-processor connection table. More...
 
const lduSchedulepatchSchedule () const
 Order in which the patches should be initialised/evaluated. More...
 
const labelListprocessorPatches () const
 Return list of processor patch labels. More...
 
const labelListprocessorPatchIndices () const
 Return list of indices into processorPatches_ for each patch. More...
 
const labelListprocessorPatchNeighbours () const
 Return processorPatchIndices of the neighbours. More...
 
label nGlobalPoints () const
 Return number of globally shared points. More...
 
const labelListsharedPointLabels () const
 Return indices of local points that are globally shared. More...
 
const labelListsharedPointAddr () const
 Return addressing into the complete globally shared points. More...
 
const labelListsharedPointGlobalLabels () const
 Return shared point global labels. Tries to read. More...
 
pointField sharedPoints () const
 Collect coordinates of shared points on all processors. More...
 
pointField geometricSharedPoints () const
 Like sharedPoints but keeps cyclic points separate. More...
 
label nGlobalEdges () const
 Return number of globally shared edges. Demand-driven. More...
 
const labelListsharedEdgeLabels () const
 Return indices of local edges that are globally shared. More...
 
const labelListsharedEdgeAddr () const
 Return addressing into the complete globally shared edge. More...
 
const indirectPrimitivePatchcoupledPatch () const
 Return patch of all coupled faces. More...
 
const labelListcoupledPatchMeshEdges () const
 Return map from coupledPatch edges to mesh edges. More...
 
const Map< label > & coupledPatchMeshEdgeMap () const
 Return map from mesh edges to coupledPatch edges. More...
 
const globalIndexAndTransformglobalTransforms () const
 Global transforms numbering. More...
 
const globalIndexglobalPointNumbering () const
 Numbering of coupled points is according to coupledPatch. More...
 
const labelListListglobalPointSlaves () const
 
const labelListListglobalPointTransformedSlaves () const
 
const distributionMapglobalPointSlavesMap () const
 
template<class Type , class CombineOp , class TransformOp >
void syncPointData (List< Type > &pointData, const CombineOp &cop, const TransformOp &top) const
 Helper to synchronise coupled patch point data. More...
 
const globalIndexglobalEdgeNumbering () const
 
const labelListListglobalEdgeSlaves () const
 
const labelListListglobalEdgeTransformedSlaves () const
 
const distributionMapglobalEdgeSlavesMap () const
 
const PackedBoolListglobalEdgeOrientation () const
 Is my edge same orientation as master edge. More...
 
const labelListListglobalCoPointSlaves () const
 
const distributionMapglobalCoPointSlavesMap () const
 
const globalIndexglobalBoundaryFaceNumbering () const
 Numbering of boundary faces is face-mesh.nInternalFaces() More...
 
const labelListListglobalPointBoundaryFaces () const
 
const labelListListglobalPointTransformedBoundaryFaces () const
 
const distributionMapglobalPointBoundaryFacesMap () const
 
const labelListboundaryCells () const
 From boundary cell to mesh cell. More...
 
const globalIndexglobalBoundaryCellNumbering () const
 Numbering of boundary cells is according to boundaryCells() More...
 
const labelListListglobalPointBoundaryCells () const
 
const labelListListglobalPointTransformedBoundaryCells () const
 
const distributionMapglobalPointBoundaryCellsMap () const
 
autoPtr< globalIndexmergePoints (labelList &pointToGlobal, labelList &uniquePoints) const
 Helper for merging (collocated!) mesh point data. More...
 
autoPtr< globalIndexmergePoints (const labelList &meshPoints, const Map< label > &meshPointMap, labelList &pointToGlobal, labelList &uniqueMeshPoints) const
 Helper for merging (collocated!) patch point data. More...
 
void movePoints (const pointField &newPoints)
 Update for moving points. More...
 
void topoChange ()
 Change global mesh data given a topological change. Does a. More...
 
void operator= (const globalMeshData &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Member Functions

template<class Type , class CombineOp , class TransformOp >
static void syncData (List< Type > &pointData, const labelListList &slaves, const labelListList &transformedSlaves, const distributionMap &slavesMap, const globalIndexAndTransform &, const CombineOp &cop, const TransformOp &top)
 Helper: synchronise data with transforms. More...
 
template<class Type , class CombineOp >
static void syncData (List< Type > &pointData, const labelListList &slaves, const labelListList &transformedSlaves, const distributionMap &slavesMap, const CombineOp &cop)
 Helper: synchronise data without transforms. More...
 

Static Public Attributes

static const Foam::scalar matchTol_ = 1e-8
 Geometric tolerance (fraction of bounding box) More...
 

Detailed Description

Various mesh related information for a parallel run. Upon construction, constructs all info using parallel communication.

Requires:

  • all processor patches to have correct ordering.
  • all processorPatches to have their transforms set.

The shared point and edge addressing calculates addressing for points and edges on coupled patches. In the 'old' way a distinction was made between points/edges that are only on two processors and those that are on multiple processors. The problem is that those on multiple processors do not allow any transformations and require a global reduction on the master processor.

The alternative is to have an exchange schedule (through a 'distributionMap') which sends all point/edge data (no distinction is made between those on two and those on more than two coupled patches) to the local 'master'. This master then does any calculation and sends the result back to the 'slave' points/edges. This only needs to be done on points on coupled faces. Any transformation is done using a predetermined set of transformations - since transformations have to be space filling only a certain number of transformation is supported.

The exchange needs

  • a field of data
  • a distributionMap which does all parallel exchange and transformations This appends remote data to the end of the field.
  • a set of indices which indicate where to get untransformed data in the field
  • a set of indices which indicate where to get transformed data in the field

Note:

  • compared to 17x nTotalFaces, nTotalPoints do not compensate for shared points since this would trigger full connectivity analysis
  • most calculation is demand driven and uses parallel communication so make sure to invoke on all processors at the same time
  • old sharedEdge calculation: currently an edge is considered shared if it uses two shared points and is used more than once. This is not correct on processor patches but it only slightly overestimates the number of shared edges. Doing full analysis of how many patches use the edge would be too complicated
See also
distributionMap globalIndexAndTransform
Source files

Definition at line 106 of file globalMeshData.H.

Constructor & Destructor Documentation

◆ globalMeshData() [1/2]

globalMeshData ( const polyMesh mesh)

Construct from mesh, derive rest (does parallel communication!)

Definition at line 1688 of file globalMeshData.C.

References globalMeshData::topoChange().

Here is the call graph for this function:

◆ globalMeshData() [2/2]

globalMeshData ( const globalMeshData )
delete

Disallow default bitwise copy construction.

◆ ~globalMeshData()

Destructor.

Definition at line 1712 of file globalMeshData.C.

References globalMeshData::clearOut().

Here is the call graph for this function:

Member Function Documentation

◆ ClassName()

ClassName ( "globalMeshData"  )

Runtime type information.

Referenced by globalMeshData::ListPlusEqOp< T >::operator()().

Here is the caller graph for this function:

◆ clearOut()

void clearOut ( )

Remove all demand driven data.

Definition at line 1718 of file globalMeshData.C.

Referenced by globalMeshData::topoChange(), and globalMeshData::~globalMeshData().

Here is the caller graph for this function:

◆ mesh()

const polyMesh& mesh ( ) const
inline

Return the mesh reference.

Definition at line 366 of file globalMeshData.H.

References globalMeshData::nTotalFaces(), globalMeshData::nTotalPoints(), globalMeshData::parallel(), and List< T >::size().

Here is the call graph for this function:

◆ parallel()

bool parallel ( ) const
inline

Does the mesh contain processor patches? (also valid when.

not running parallel)

Definition at line 373 of file globalMeshData.H.

Referenced by globalMeshData::mesh().

Here is the caller graph for this function:

◆ nTotalPoints()

label nTotalPoints ( ) const
inline

Return total number of points in decomposed mesh. Not.

compensated for duplicate points!

Definition at line 380 of file globalMeshData.H.

Referenced by meshRefinement::dupNonManifoldPoints(), globalMeshData::mesh(), and medialAxisMeshMover::~medialAxisMeshMover().

Here is the caller graph for this function:

◆ nTotalFaces()

label nTotalFaces ( ) const
inline

Return total number of faces in decomposed mesh. Not.

compensated for duplicate faces!

Definition at line 387 of file globalMeshData.H.

Referenced by globalMeshData::mesh().

Here is the caller graph for this function:

◆ nTotalCells()

◆ procNbrProcs()

const labelListList& procNbrProcs ( ) const
inline

Return the processor-processor connection table.

Definition at line 402 of file globalMeshData.H.

References globalMeshData::boundaryCells(), globalMeshData::coupledPatch(), globalMeshData::coupledPatchMeshEdgeMap(), globalMeshData::coupledPatchMeshEdges(), globalMeshData::geometricSharedPoints(), globalMeshData::globalBoundaryCellNumbering(), globalMeshData::globalBoundaryFaceNumbering(), globalMeshData::globalCoPointSlaves(), globalMeshData::globalCoPointSlavesMap(), globalMeshData::globalEdgeNumbering(), globalMeshData::globalEdgeOrientation(), globalMeshData::globalEdgeSlaves(), globalMeshData::globalEdgeSlavesMap(), globalMeshData::globalEdgeTransformedSlaves(), globalMeshData::globalPointBoundaryCells(), globalMeshData::globalPointBoundaryCellsMap(), globalMeshData::globalPointBoundaryFaces(), globalMeshData::globalPointBoundaryFacesMap(), globalMeshData::globalPointNumbering(), globalMeshData::globalPointSlaves(), globalMeshData::globalPointSlavesMap(), globalMeshData::globalPointTransformedBoundaryCells(), globalMeshData::globalPointTransformedBoundaryFaces(), globalMeshData::globalPointTransformedSlaves(), globalMeshData::globalTransforms(), globalMeshData::mergePoints(), globalMeshData::movePoints(), globalMeshData::nGlobalEdges(), globalMeshData::nGlobalPoints(), globalMeshData::operator=(), processorTopology::patchSchedule(), globalMeshData::patchSchedule(), globalMeshData::processorPatches(), globalMeshData::processorPatchIndices(), globalMeshData::processorPatchNeighbours(), processorTopology::procNbrProcs(), globalMeshData::sharedEdgeAddr(), globalMeshData::sharedEdgeLabels(), globalMeshData::sharedPointAddr(), globalMeshData::sharedPointGlobalLabels(), globalMeshData::sharedPointLabels(), globalMeshData::sharedPoints(), globalMeshData::syncData(), globalMeshData::syncPointData(), and globalMeshData::topoChange().

Here is the call graph for this function:

◆ patchSchedule()

const lduSchedule& patchSchedule ( ) const
inline

Order in which the patches should be initialised/evaluated.

corresponding to the schedule

Definition at line 409 of file globalMeshData.H.

Referenced by polyBoundaryMesh::clearAddressing(), pointBoundaryMesh::findIndices(), pointBoundaryMesh::movePoints(), polyBoundaryMesh::movePoints(), fvMeshDistribute::printFieldInfo(), globalMeshData::procNbrProcs(), pointBoundaryMesh::topoChange(), and polyBoundaryMesh::topoChange().

Here is the caller graph for this function:

◆ processorPatches()

const labelList& processorPatches ( ) const
inline

Return list of processor patch labels.

(size of list = number of processor patches)

Definition at line 416 of file globalMeshData.H.

Referenced by FaceCellWave< Type, TrackingData >::handleProcPatches(), ejectionModelList::info(), transferModelList::info(), patchEjection::patchEjection(), and globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ processorPatchIndices()

const labelList& processorPatchIndices ( ) const
inline

Return list of indices into processorPatches_ for each patch.

Index = -1 for non-processor parches. (size of list = number of patches)

Definition at line 424 of file globalMeshData.H.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ processorPatchNeighbours()

const labelList& processorPatchNeighbours ( ) const
inline

Return processorPatchIndices of the neighbours.

processor patches. -1 if not running parallel.

Definition at line 431 of file globalMeshData.H.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ nGlobalPoints()

Foam::label nGlobalPoints ( ) const

Return number of globally shared points.

Definition at line 1937 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs(), globalMeshData::sharedPoints(), and syncTools::syncPointMap().

Here is the caller graph for this function:

◆ sharedPointLabels()

const Foam::labelList & sharedPointLabels ( ) const

Return indices of local points that are globally shared.

Definition at line 1947 of file globalMeshData.C.

Referenced by globalMeshData::geometricSharedPoints(), globalMeshData::procNbrProcs(), globalMeshData::sharedPointGlobalLabels(), globalMeshData::sharedPoints(), syncTools::syncEdgeMap(), and syncTools::syncPointMap().

Here is the caller graph for this function:

◆ sharedPointAddr()

const Foam::labelList & sharedPointAddr ( ) const

Return addressing into the complete globally shared points.

list Note: It is assumed that a (never constructed) complete list of globally shared points exists. The set of shared points on the current processor is a subset of all shared points. Shared point addressing gives the index in the list of all globally shared points for each of the locally shared points.

Definition at line 1957 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs(), globalMeshData::sharedPoints(), syncTools::syncEdgeMap(), and syncTools::syncPointMap().

Here is the caller graph for this function:

◆ sharedPointGlobalLabels()

const Foam::labelList & sharedPointGlobalLabels ( ) const

Return shared point global labels. Tries to read.

'pointProcAddressing' and returns list or -1 if none available.

Definition at line 1770 of file globalMeshData.C.

References Foam::endl(), polyMesh::facesInstance(), forAll, polyMesh::meshSubDir, IOobject::MUST_READ, pointLabels(), Foam::Pout, and globalMeshData::sharedPointLabels().

Referenced by globalMeshData::procNbrProcs().

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

◆ sharedPoints()

Foam::pointField sharedPoints ( ) const

Collect coordinates of shared points on all processors.

(does parallel communication!) Note: not valid for cyclicParallel since shared cyclic points are merged into single global point. (use geometricSharedPoints instead)

Definition at line 1820 of file globalMeshData.C.

References UPstream::blocking, UPstream::firstSlave(), forAll, UPstream::lastSlave(), UPstream::master(), UPstream::masterNo(), globalMeshData::nGlobalPoints(), pointLabels(), polyMesh::points(), globalMeshData::sharedPointAddr(), globalMeshData::sharedPointLabels(), List< T >::size(), and Foam::Zero.

Referenced by globalMeshData::geometricSharedPoints(), and globalMeshData::procNbrProcs().

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

◆ geometricSharedPoints()

Foam::pointField geometricSharedPoints ( ) const

Like sharedPoints but keeps cyclic points separate.

(does geometric merging; uses matchTol_*bb as merging tolerance) Use sharedPoints() instead.

Definition at line 1909 of file globalMeshData.C.

References polyMesh::bounds(), Foam::combineReduce(), boundBox::mag(), globalMeshData::matchTol_, Foam::mergePoints(), polyMesh::points(), globalMeshData::sharedPointLabels(), and globalMeshData::sharedPoints().

Referenced by globalMeshData::procNbrProcs().

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

◆ nGlobalEdges()

Foam::label nGlobalEdges ( ) const

Return number of globally shared edges. Demand-driven.

calculation so call needs to be synchronous among processors!

Definition at line 1967 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ sharedEdgeLabels()

const Foam::labelList & sharedEdgeLabels ( ) const

Return indices of local edges that are globally shared.

Demand-driven calculation so call needs to be synchronous among processors!

Definition at line 1977 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ sharedEdgeAddr()

const Foam::labelList & sharedEdgeAddr ( ) const

Return addressing into the complete globally shared edge.

list. The set of shared edges on the current processor is a subset of all shared edges. Shared edge addressing gives the index in the list of all globally shared edges for each of the locally shared edges. Demand-driven calculation so call needs to be synchronous among processors!

Definition at line 1987 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ coupledPatch()

◆ coupledPatchMeshEdges()

const Foam::labelList & coupledPatchMeshEdges ( ) const

Return map from coupledPatch edges to mesh edges.

Definition at line 2058 of file globalMeshData.C.

References globalMeshData::coupledPatch(), primitiveMesh::edges(), and primitiveMesh::pointEdges().

Referenced by globalMeshData::coupledPatchMeshEdgeMap(), globalMeshData::procNbrProcs(), and syncTools::syncEdgeList().

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

◆ coupledPatchMeshEdgeMap()

const Foam::Map< Foam::label > & coupledPatchMeshEdgeMap ( ) const

Return map from mesh edges to coupledPatch edges.

Definition at line 2078 of file globalMeshData.C.

References globalMeshData::coupledPatchMeshEdges(), forAll, HashTable< T, Key, Hash >::insert(), Foam::constant::atomic::me, and List< T >::size().

Referenced by globalMeshData::procNbrProcs(), and syncTools::syncEdgeList().

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

◆ globalTransforms()

const Foam::globalIndexAndTransform & globalTransforms ( ) const

Global transforms numbering.

Definition at line 2111 of file globalMeshData.C.

Referenced by PatchTools::edgeNormals(), PatchTools::pointNormals(), globalMeshData::procNbrProcs(), syncTools::syncEdgeList(), and syncTools::syncPointList().

Here is the caller graph for this function:

◆ syncData() [1/2]

void syncData ( List< Type > &  pointData,
const labelListList slaves,
const labelListList transformedSlaves,
const distributionMap slavesMap,
const globalIndexAndTransform transforms,
const CombineOp &  cop,
const TransformOp &  top 
)
static

Helper: synchronise data with transforms.

Definition at line 34 of file globalMeshDataTemplates.C.

References distributionMap::distribute(), forAll, distributionMap::reverseDistribute(), and List< T >::size().

Referenced by PatchTools::edgeNormals(), globalMeshData::mergePoints(), minEqOp< labelPair >::operator()(), globalMeshData::procNbrProcs(), syncTools::syncEdgeList(), and syncTools::syncPointList().

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

◆ syncData() [2/2]

void syncData ( List< Type > &  pointData,
const labelListList slaves,
const labelListList transformedSlaves,
const distributionMap slavesMap,
const CombineOp &  cop 
)
static

Helper: synchronise data without transforms.

Definition at line 107 of file globalMeshDataTemplates.C.

References distributionMap::distribute(), forAll, distributionMap::reverseDistribute(), List< T >::size(), and globalMeshData::syncPointData().

Here is the call graph for this function:

◆ globalPointNumbering()

const Foam::globalIndex & globalPointNumbering ( ) const

Numbering of coupled points is according to coupledPatch.

Definition at line 2097 of file globalMeshData.C.

References globalMeshData::coupledPatch(), and nPoints.

Referenced by globalMeshData::mergePoints(), and globalMeshData::procNbrProcs().

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

◆ globalPointSlaves()

const Foam::labelListList & globalPointSlaves ( ) const

◆ globalPointTransformedSlaves()

const Foam::labelListList & globalPointTransformedSlaves ( ) const

Definition at line 2131 of file globalMeshData.C.

Referenced by PatchTools::pointNormals(), globalMeshData::procNbrProcs(), and syncTools::syncPointList().

Here is the caller graph for this function:

◆ globalPointSlavesMap()

const Foam::distributionMap & globalPointSlavesMap ( ) const

◆ syncPointData()

void syncPointData ( List< Type > &  pointData,
const CombineOp &  cop,
const TransformOp &  top 
) const

Helper to synchronise coupled patch point data.

Definition at line 172 of file globalMeshDataTemplates.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, PrimitivePatch< FaceList, PointField >::meshPoints(), and List< T >::size().

Referenced by globalMeshData::procNbrProcs(), globalMeshData::syncData(), and syncTools::syncPointList().

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

◆ globalEdgeNumbering()

const Foam::globalIndex & globalEdgeNumbering ( ) const

Definition at line 2152 of file globalMeshData.C.

References globalMeshData::coupledPatch().

Referenced by globalMeshData::procNbrProcs().

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

◆ globalEdgeSlaves()

const Foam::labelListList & globalEdgeSlaves ( ) const

Definition at line 2165 of file globalMeshData.C.

Referenced by PatchTools::edgeNormals(), minEqOp< labelPair >::operator()(), globalMeshData::procNbrProcs(), and syncTools::syncEdgeList().

Here is the caller graph for this function:

◆ globalEdgeTransformedSlaves()

const Foam::labelListList & globalEdgeTransformedSlaves ( ) const

Definition at line 2175 of file globalMeshData.C.

Referenced by PatchTools::edgeNormals(), minEqOp< labelPair >::operator()(), globalMeshData::procNbrProcs(), and syncTools::syncEdgeList().

Here is the caller graph for this function:

◆ globalEdgeSlavesMap()

const Foam::distributionMap & globalEdgeSlavesMap ( ) const

Definition at line 2196 of file globalMeshData.C.

Referenced by PatchTools::edgeNormals(), minEqOp< labelPair >::operator()(), globalMeshData::procNbrProcs(), and syncTools::syncEdgeList().

Here is the caller graph for this function:

◆ globalEdgeOrientation()

const Foam::PackedBoolList & globalEdgeOrientation ( ) const

Is my edge same orientation as master edge.

Definition at line 2186 of file globalMeshData.C.

Referenced by minEqOp< labelPair >::operator()(), and globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ globalCoPointSlaves()

const Foam::labelListList & globalCoPointSlaves ( ) const

◆ globalCoPointSlavesMap()

const Foam::distributionMap & globalCoPointSlavesMap ( ) const

Definition at line 2315 of file globalMeshData.C.

References globalMeshData::mergePoints().

Referenced by globalIndexAndTransform::globalIndexAndTransform(), globalMeshData::mergePoints(), globalMeshData::procNbrProcs(), and pointConstraints::syncUntransformedData().

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

◆ globalBoundaryFaceNumbering()

const Foam::globalIndex & globalBoundaryFaceNumbering ( ) const

Numbering of boundary faces is face-mesh.nInternalFaces()

Definition at line 2206 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ globalPointBoundaryFaces()

const Foam::labelListList & globalPointBoundaryFaces ( ) const

Definition at line 2217 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ globalPointTransformedBoundaryFaces()

const Foam::labelListList & globalPointTransformedBoundaryFaces ( ) const

Definition at line 2229 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ globalPointBoundaryFacesMap()

const Foam::distributionMap & globalPointBoundaryFacesMap ( ) const

Definition at line 2239 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ boundaryCells()

const Foam::labelList & boundaryCells ( ) const

From boundary cell to mesh cell.

Definition at line 2250 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ globalBoundaryCellNumbering()

const Foam::globalIndex & globalBoundaryCellNumbering ( ) const

Numbering of boundary cells is according to boundaryCells()

Definition at line 2260 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ globalPointBoundaryCells()

const Foam::labelListList & globalPointBoundaryCells ( ) const

Definition at line 2271 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ globalPointTransformedBoundaryCells()

const Foam::labelListList & globalPointTransformedBoundaryCells ( ) const

Definition at line 2283 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ globalPointBoundaryCellsMap()

const Foam::distributionMap & globalPointBoundaryCellsMap ( ) const

Definition at line 2293 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ mergePoints() [1/2]

Foam::autoPtr< Foam::globalIndex > mergePoints ( labelList pointToGlobal,
labelList uniquePoints 
) const

◆ mergePoints() [2/2]

Foam::autoPtr< Foam::globalIndex > mergePoints ( const labelList meshPoints,
const Map< label > &  meshPointMap,
labelList pointToGlobal,
labelList uniqueMeshPoints 
) const

Helper for merging (collocated!) patch point data.

Takes maps from: local points to/from mesh. Determines

  • my unique points. These are mesh point indices, not patch point indices.
  • global numbering over all unique indices.
  • the global number for all local points.

Definition at line 2460 of file globalMeshData.C.

References distributionMapBase::constructSize(), globalMeshData::coupledPatch(), distributionMap::distribute(), HashTableCore::end(), HashTable< T, Key, Hash >::find(), forAll, globalMeshData::globalCoPointSlaves(), globalMeshData::globalCoPointSlavesMap(), Foam::labelMax, PrimitivePatch< FaceList, PointField >::meshPointMap(), PrimitivePatch< FaceList, PointField >::nPoints(), distributionMap::reverseDistribute(), List< T >::setSize(), List< T >::size(), and globalMeshData::syncData().

Here is the call graph for this function:

◆ movePoints()

void movePoints ( const pointField newPoints)

Update for moving points.

Definition at line 2674 of file globalMeshData.C.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

◆ topoChange()

void topoChange ( )

Change global mesh data given a topological change. Does a.

full parallel analysis to determine shared points and boundaries.

Definition at line 2683 of file globalMeshData.C.

References UPstream::allocateCommunicator(), polyMesh::bounds(), globalMeshData::clearOut(), Foam::endl(), UPstream::freeCommunicator(), Foam::identity(), boundBox::mag(), globalMeshData::matchTol_, UPstream::msgType(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nPoints(), UPstream::nProcs(), Foam::Pout, Foam::returnReduce(), and UPstream::worldComm.

Referenced by globalMeshData::globalMeshData(), and globalMeshData::procNbrProcs().

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

◆ operator=()

void operator= ( const globalMeshData )
delete

Disallow default bitwise assignment.

Referenced by globalMeshData::procNbrProcs().

Here is the caller graph for this function:

Member Data Documentation

◆ matchTol_

const scalar matchTol_ = 1e-8
static

Geometric tolerance (fraction of bounding box)

Definition at line 342 of file globalMeshData.H.

Referenced by globalMeshData::geometricSharedPoints(), and globalMeshData::topoChange().


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