Various tools to aid synchronizing lists across coupled patches. WIP. More...
Static Public Member Functions | |
template<class T , class CombineOp , class TransformOp > | |
static void | syncPointMap (const polyMesh &mesh, Map< T > &pointValues, const CombineOp &cop, const TransformOp &top) |
Synchronize values on selected points. More... | |
template<class T , class CombineOp , class TransformOp > | |
static void | syncEdgeMap (const polyMesh &mesh, EdgeMap< T > &edgeValues, const CombineOp &cop, const TransformOp &top) |
Synchronize values on selected edges. More... | |
template<class T , class CombineOp , class TransformOp > | |
static void | syncPointList (const polyMesh &mesh, List< T > &pointValues, const CombineOp &cop, const T &nullValue, const TransformOp &top) |
Synchronize values on all mesh points. More... | |
template<class T , class CombineOp , class TransformOp > | |
static void | syncPointList (const polyMesh &mesh, const labelUList &meshPoints, List< T > &pointValues, const CombineOp &cop, const T &nullValue, const TransformOp &top) |
Synchronize values on selected mesh points. More... | |
template<class T , class CombineOp , class TransformOp , class FlipOp > | |
static void | syncEdgeList (const polyMesh &mesh, List< T > &edgeValues, const CombineOp &cop, const T &nullValue, const TransformOp &top, const FlipOp &fop) |
Synchronize values on all mesh edges. More... | |
template<class T , class CombineOp , class TransformOp , class FlipOp > | |
static void | syncEdgeList (const polyMesh &mesh, const labelUList &meshEdges, List< T > &edgeValues, const CombineOp &cop, const T &nullValue, const TransformOp &top, const FlipOp &fop) |
Synchronize values on selected mesh edges. More... | |
template<class T , class CombineOp , class TransformOp > | |
static void | syncBoundaryFaceList (const polyMesh &mesh, UList< T > &faceValues, const CombineOp &cop, const TransformOp &top, const bool parRun=UPstream::parRun()) |
Synchronize values on boundary faces only. More... | |
template<class T , class CombineOp > | |
static void | syncPointList (const polyMesh &mesh, List< T > &pointValues, const CombineOp &cop, const T &nullValue) |
Synchronize values on all mesh points. More... | |
template<class CombineOp > | |
static void | syncPointPositions (const polyMesh &mesh, List< point > &positions, const CombineOp &cop, const point &nullValue) |
Synchronize locations on all mesh points. More... | |
template<class T , class CombineOp > | |
static void | syncPointList (const polyMesh &mesh, const labelUList &meshPoints, List< T > &pointValues, const CombineOp &cop, const T &nullValue) |
Synchronize values on selected mesh points. More... | |
template<class CombineOp > | |
static void | syncPointPositions (const polyMesh &mesh, const labelUList &meshPoints, List< point > &positions, const CombineOp &cop, const point &nullValue) |
Synchronize locations on selected mesh points. More... | |
template<class T , class CombineOp > | |
static void | syncEdgeList (const polyMesh &mesh, List< T > &edgeValues, const CombineOp &cop, const T &nullValue) |
Synchronize values on all mesh edges. More... | |
template<class CombineOp > | |
static void | syncEdgePositions (const polyMesh &mesh, List< point > &positions, const CombineOp &cop, const point &nullValue) |
Synchronize locations on all mesh edges. More... | |
template<class T , class CombineOp > | |
static void | syncEdgeList (const polyMesh &mesh, const labelUList &meshEdges, List< T > &edgeValues, const CombineOp &cop, const T &nullValue) |
Synchronize values on selected mesh edges. More... | |
template<class CombineOp > | |
static void | syncEdgePositions (const polyMesh &mesh, const labelUList &meshEdges, List< point > &positions, const CombineOp &cop, const point &nullValue) |
Synchronize locations on selected mesh edges. More... | |
template<class T , class CombineOp > | |
static void | syncBoundaryFaceList (const polyMesh &mesh, UList< T > &faceValues, const CombineOp &cop) |
Synchronize values on boundary faces only. More... | |
template<class CombineOp > | |
static void | syncBoundaryFacePositions (const polyMesh &mesh, UList< point > &positions, const CombineOp &cop) |
Synchronize locations on boundary faces only. More... | |
template<class T , class CombineOp > | |
static void | syncFaceList (const polyMesh &mesh, UList< T > &faceValues, const CombineOp &cop, const bool parRun=UPstream::parRun()) |
Synchronize values on all mesh faces. More... | |
template<class CombineOp > | |
static void | syncFacePositions (const polyMesh &mesh, UList< point > &positions, const CombineOp &cop, const bool parRun=UPstream::parRun()) |
Synchronize locations on all mesh faces. More... | |
template<class T > | |
static void | swapBoundaryFaceList (const polyMesh &mesh, UList< T > &faceValues, const bool parRun=UPstream::parRun()) |
Swap coupled boundary face values. Uses eqOp. More... | |
static void | swapBoundaryFacePositions (const polyMesh &mesh, UList< point > &positions, const bool parRun=UPstream::parRun()) |
Swap coupled positions. Uses eqOp. More... | |
template<class T > | |
static void | swapFaceList (const polyMesh &mesh, UList< T > &faceValues, const bool parRun=UPstream::parRun()) |
Swap coupled face values. Uses eqOp. More... | |
template<class T > | |
static void | swapBoundaryCellList (const polyMesh &mesh, const UList< T > &cellData, List< T > &neighbourCellData, const bool parRun=UPstream::parRun()) |
Extract and swap to obtain neighbour cell values for all boundary faces. More... | |
static void | swapBoundaryCellPositions (const polyMesh &mesh, const UList< point > &cellData, List< point > &neighbourCellData, const bool parRun=UPstream::parRun()) |
Extract and swap to obtain neighbour cell positions for all boundary faces. More... | |
template<class T > | |
static FOAM_NODISCARD List< T > | swapBoundaryCellList (const polyMesh &mesh, const UList< T > &cellData, const bool parRun=UPstream::parRun()) |
Return neighbour cell values for all boundary faces by swapping via boundary faces. More... | |
static FOAM_NODISCARD List< point > | swapBoundaryCellPositions (const polyMesh &mesh, const UList< point > &cellData, const bool parRun=UPstream::parRun()) |
Return neighbour cell positions for all boundary faces by swapping via boundary faces. More... | |
template<class T , class CombineOp > | |
static void | syncPointMap (const polyMesh &mesh, Map< T > &pointValues, const CombineOp &cop) |
Synchronize values on selected points. More... | |
template<class CombineOp > | |
static void | syncPointPositions (const polyMesh &mesh, Map< point > &positions, const CombineOp &cop) |
Synchronize locations on selected points. More... | |
template<class T , class CombineOp > | |
static void | syncEdgeMap (const polyMesh &mesh, EdgeMap< T > &edgeValues, const CombineOp &cop) |
Synchronize values on selected edges. Edges are represented by the two vertices that make it up so global edges never get constructed. More... | |
template<class CombineOp > | |
static void | syncEdgePositions (const polyMesh &mesh, EdgeMap< point > &edgePositions, const CombineOp &cop) |
Synchronize locations on selected edges. More... | |
template<unsigned Width, class CombineOp > | |
static void | syncFaceList (const polyMesh &mesh, const bool isBoundaryOnly, PackedList< Width > &faceValues, const CombineOp &cop, const bool parRun=UPstream::parRun()) |
Synchronize face values from PackedList/bitSet. More... | |
template<unsigned Width, class CombineOp > | |
static void | syncFaceList (const polyMesh &mesh, PackedList< Width > &faceValues, const CombineOp &cop, const bool parRun=UPstream::parRun()) |
Synchronize mesh face values from PackedList/bitSet. More... | |
template<unsigned Width, class CombineOp > | |
static void | syncBoundaryFaceList (const polyMesh &mesh, PackedList< Width > &faceValues, const CombineOp &cop, const bool parRun=UPstream::parRun()) |
Synchronize boundary face values from PackedList/bitSet. More... | |
template<unsigned Width> | |
static void | swapFaceList (const polyMesh &mesh, PackedList< Width > &faceValues, const bool parRun=UPstream::parRun()) |
Swap coupled face values. Uses eqOp. More... | |
template<unsigned Width> | |
static void | swapBoundaryFaceList (const polyMesh &mesh, PackedList< Width > &faceValues, const bool parRun=UPstream::parRun()) |
Swap coupled boundary face values. Uses eqOp. More... | |
template<unsigned Width, class CombineOp > | |
static void | syncPointList (const polyMesh &mesh, PackedList< Width > &pointValues, const CombineOp &cop, const unsigned int nullValue) |
template<unsigned Width, class CombineOp > | |
static void | syncEdgeList (const polyMesh &mesh, PackedList< Width > &edgeValues, const CombineOp &cop, const unsigned int nullValue) |
static bitSet | getMasterPoints (const polyMesh &mesh) |
Get per point whether it is uncoupled or a master of a coupled set of points. More... | |
static bitSet | getMasterEdges (const polyMesh &mesh) |
Get per edge whether it is uncoupled or a master of a coupled set of edges. More... | |
static bitSet | getMasterFaces (const polyMesh &mesh) |
Get per face whether it is uncoupled or a master of a coupled set of faces. More... | |
static bitSet | getInternalOrMasterFaces (const polyMesh &mesh) |
Get per face whether it is internal or a master of a coupled set of faces. More... | |
static bitSet | getInternalOrCoupledFaces (const polyMesh &mesh) |
Get per face whether it is internal or coupled. More... | |
Various tools to aid synchronizing lists across coupled patches. WIP.
Definition at line 62 of file syncTools.H.
|
static |
Synchronize values on selected points.
Communication if UPstream::parRun() == true.
Definition at line 79 of file syncToolsTemplates.C.
References polyMesh::boundaryMesh(), Pstream::broadcast(), HashTable< T, label, Hash< label > >::cfind(), Foam::ListListOps::combine(), cyclicPolyPatch::coupledPoints(), Foam::constant::electromagnetic::e, forAll, forAllConstIters(), polyMesh::globalData(), UPstream::master(), UPstream::masterNo(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), cyclicPolyPatch::neighbPatch(), globalMeshData::nGlobalPoints(), PrimitivePatch< FaceList, PointField >::nPoints(), polyBoundaryMesh::nProcessorPatches(), cyclicPolyPatch::owner(), UPstream::parRun(), patches, pp(), IPstream::recv(), HashTable< T, label, Hash< label > >::reserve(), UOPstream::send(), HashTable< T, label, Hash< label > >::set(), globalMeshData::sharedPointAddr(), globalMeshData::sharedPointLabels(), UList< T >::size(), and UPstream::subProcs().
Referenced by reconstructedDistanceFunction::markCellsNearSurf(), syncTools::syncPointMap(), and syncTools::syncPointPositions().
|
static |
Synchronize values on selected edges.
Communication if UPstream::parRun() == true.
Definition at line 370 of file syncToolsTemplates.C.
References polyMesh::boundaryMesh(), Pstream::broadcast(), HashTable< T, edge, Hash< edge > >::cfind(), HashTable< T, Key, Hash >::cfind(), Foam::ListListOps::combine(), cyclicPolyPatch::coupledEdges(), Foam::constant::electromagnetic::e, PrimitivePatch< FaceList, PointField >::edges(), f(), polyMesh::faces(), UList< T >::fcIndex(), forAll, forAllConstIters(), polyMesh::globalData(), UPstream::master(), UPstream::masterNo(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), PrimitivePatch< FaceList, PointField >::nEdges(), cyclicPolyPatch::neighbPatch(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), polyBoundaryMesh::nProcessorPatches(), cyclicPolyPatch::owner(), UPstream::parRun(), patches, pp(), IPstream::recv(), UOPstream::send(), globalMeshData::sharedPointAddr(), globalMeshData::sharedPointLabels(), UList< T >::size(), HashTable< T, Key, Hash >::size(), and UPstream::subProcs().
Referenced by holeToFace::calcClosure(), patchPatchDist::correct(), betaMax::markProcessorEdges(), syncTools::syncEdgeMap(), and syncTools::syncEdgePositions().
|
static |
Synchronize values on all mesh points.
Communication if UPstream::parRun() == true.
Definition at line 735 of file syncToolsTemplates.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, polyMesh::globalData(), mesh, Foam::nl, primitiveMesh::nPoints(), UList< T >::size(), and globalMeshData::syncPointData().
Referenced by singleProcessorFaceSets::add(), singleProcessorFaceSets::apply(), sensitivitySurfacePoints::assembleSensitivities(), motionSmootherAlgo::avg(), meshRefinement::blockLeakFaces(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::calcSnapDistance(), pointZone::checkParallelSync(), hexRef8::checkRefinementLevels(), edgeCollapser::consistentCollapse(), hexRef8::consistentSlowRefinement(), sensitivitySurfacePoints::constructGlobalPointNormalsAndAreas(), motionSmootherAlgo::correctBoundaryConditions(), removePoints::countPointUsage(), laplacianMotionSolver::curPoints(), pLaplacianMotionSolver::curPoints(), meshRefinement::dupNonManifoldBoundaryPoints(), meshRefinement::getMasterPoints(), dynamicMultiMotionSolverFvMesh::init(), patchTransformedInterpolation::interpolate(), motionSmootherAlgo::scaleMesh(), dynamicRefineFvMesh::selectUnrefinePoints(), motionSmootherAlgo::setDisplacement(), combineFaces::setRefinement(), removeFaces::setRefinement(), addPatchCellLayer::setRefinement(), fieldSmoother::smoothNormals(), pointBitSet::sync(), pointSet::sync(), syncTools::syncPointList(), syncTools::syncPointPositions(), weightedPosition::syncPoints(), meshRefinement::testSyncPointList(), and meshRefinement::weightedSum().
|
static |
Synchronize values on selected mesh points.
Communication if UPstream::parRun() == true.
Definition at line 757 of file syncToolsTemplates.C.
References Foam::abort(), HashTable< T, Key, Hash >::cfind(), globalMeshData::coupledPatch(), Foam::FatalError, FatalErrorInFunction, forAll, polyMesh::globalData(), globalMeshData::globalPointSlaves(), globalMeshData::globalPointSlavesMap(), globalMeshData::globalPointTransformedSlaves(), globalMeshData::globalTransforms(), mesh, PrimitivePatch< FaceList, PointField >::meshPointMap(), Foam::nl, PrimitivePatch< FaceList, PointField >::nPoints(), UList< T >::size(), and globalMeshData::syncData().
|
static |
Synchronize values on all mesh edges.
Communication if UPstream::parRun() == true.
Definition at line 814 of file syncToolsTemplates.C.
References Foam::abort(), edge::compare(), globalMeshData::coupledPatch(), globalMeshData::coupledPatchMeshEdges(), PrimitivePatch< FaceList, PointField >::edges(), primitiveMesh::edges(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, polyMesh::globalData(), globalMeshData::globalEdgeOrientation(), globalMeshData::globalEdgeSlaves(), globalMeshData::globalEdgeSlavesMap(), globalMeshData::globalEdgeTransformedSlaves(), globalMeshData::globalTransforms(), edge::line(), PrimitivePatch< FaceList, PointField >::localPoints(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), Foam::constant::atomic::mp, primitiveMesh::nEdges(), Foam::nl, polyMesh::points(), UList< T >::size(), and globalMeshData::syncData().
Referenced by edgeCollapser::consistentCollapse(), meshRefinement::getMasterEdges(), addPatchCellLayer::globalEdgeFaces(), removeFaces::setRefinement(), meshCutter::setRefinement(), addPatchCellLayer::setRefinement(), hexRef8::setRefinement(), syncTools::syncEdgeList(), and syncTools::syncEdgePositions().
|
static |
Synchronize values on selected mesh edges.
Communication if UPstream::parRun() == true.
Definition at line 911 of file syncToolsTemplates.C.
References Foam::abort(), HashTable< T, Key, Hash >::cfind(), edge::compare(), globalMeshData::coupledPatch(), globalMeshData::coupledPatchMeshEdgeMap(), PrimitivePatch< FaceList, PointField >::edges(), primitiveMesh::edges(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, polyMesh::globalData(), globalMeshData::globalEdgeOrientation(), globalMeshData::globalEdgeSlaves(), globalMeshData::globalEdgeSlavesMap(), globalMeshData::globalEdgeTransformedSlaves(), globalMeshData::globalTransforms(), edge::line(), PrimitivePatch< FaceList, PointField >::localPoints(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), Foam::constant::atomic::mp, PrimitivePatch< FaceList, PointField >::nEdges(), Foam::nl, polyMesh::points(), UList< T >::size(), globalMeshData::syncData(), and HashTable< T, Key, Hash >::const_iterator::val().
|
static |
Synchronize values on boundary faces only.
parRun | Allow parallel communication |
Definition at line 1012 of file syncToolsTemplates.C.
References Foam::abort(), polyMesh::boundaryMesh(), UPstream::defaultCommsType, Foam::FatalError, FatalErrorInFunction, PstreamBuffers::finishedNeighbourSends(), fld, forAll, mesh, primitiveMesh::nBoundaryFaces(), cyclicPolyPatch::neighbPatch(), primitiveMesh::nInternalFaces(), Foam::nl, UPstream::nonBlocking, UPstream::nRequests(), cyclicPolyPatch::owner(), UPstream::parRun(), patches, pp(), DynamicList< T, SizeMin >::push_uniq(), UIPstream::read(), UList< T >::size(), polyPatch::start(), UPstream::waitRequests(), and UOPstream::write().
Referenced by cellToFaceStencil::calcFaceStencil(), removeCells::getExposedFaces(), removePoints::getUnrefimentSet(), addPatchCellLayer::setRefinement(), syncTools::swapBoundaryFaceList(), syncTools::swapBoundaryFacePositions(), syncTools::swapFaceList(), syncTools::syncBoundaryFaceList(), syncTools::syncBoundaryFacePositions(), syncTools::syncFaceList(), and syncTools::syncFacePositions().
|
inlinestatic |
Synchronize values on all mesh points.
Communication if UPstream::parRun() == true.
Definition at line 216 of file syncTools.H.
References mesh, and syncTools::syncPointList().
|
inlinestatic |
Synchronize locations on all mesh points.
Communication if UPstream::parRun() == true.
Definition at line 240 of file syncTools.H.
References mesh, and syncTools::syncPointList().
|
inlinestatic |
Synchronize values on selected mesh points.
Communication if UPstream::parRun() == true.
Definition at line 264 of file syncTools.H.
References mesh, and syncTools::syncPointList().
|
inlinestatic |
Synchronize locations on selected mesh points.
Communication if UPstream::parRun() == true.
Definition at line 290 of file syncTools.H.
References mesh, and syncTools::syncPointList().
|
inlinestatic |
Synchronize values on all mesh edges.
Communication if UPstream::parRun() == true.
Definition at line 319 of file syncTools.H.
References mesh, and syncTools::syncEdgeList().
|
inlinestatic |
Synchronize locations on all mesh edges.
Communication if UPstream::parRun() == true.
Definition at line 344 of file syncTools.H.
References mesh, and syncTools::syncEdgeList().
Referenced by hexRef8::setRefinement().
|
inlinestatic |
Synchronize values on selected mesh edges.
Communication if UPstream::parRun() == true.
Definition at line 369 of file syncTools.H.
References mesh, and syncTools::syncEdgeList().
|
inlinestatic |
Synchronize locations on selected mesh edges.
Communication if UPstream::parRun() == true.
Definition at line 396 of file syncTools.H.
References mesh, and syncTools::syncEdgeList().
|
inlinestatic |
Synchronize values on boundary faces only.
Definition at line 425 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
|
inlinestatic |
Synchronize locations on boundary faces only.
Definition at line 445 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by meshRefinement::checkData(), and hexRef8::setRefinement().
|
inlinestatic |
Synchronize values on all mesh faces.
parRun | Allow parallel communication |
Definition at line 465 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by preserveBaffles::add(), singleProcessorFaceSets::add(), refinementHistory::add(), meshRefinement::balance(), holeToFace::calcClosure(), meshRefinement::createBaffles(), dynamicRefineFvMesh::extendMarkedCells(), dynamicRefineFvMesh::init(), hexRef8::setRefinement(), meshRefinement::splitMesh(), faceBitSet::sync(), faceBoolSet::sync(), faceSet::sync(), meshRefinement::updateIntersections(), and cellCellStencil::walkFront().
|
inlinestatic |
Synchronize locations on all mesh faces.
parRun | Allow parallel communication |
Definition at line 495 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
|
inlinestatic |
Swap coupled boundary face values. Uses eqOp.
parRun | Allow parallel communication |
Definition at line 524 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by Foam::calcCellCellsImpl(), meshRefinement::checkCoupledFaceZones(), meshRefinement::checkData(), hexRef8::checkMesh(), faceZone::checkParallelSync(), hexRef8::checkRefinementLevels(), polyMeshGeometry::checkVolRatio(), hexRef8::consistentSlowRefinement(), hexRef8::consistentSlowRefinement2(), hexRef8::consistentUnrefinement(), fluxSummary::initialiseCellZoneAndDirection(), SloanRenumber::renumber(), rotorDiskSource::setFaceArea(), tetDecomposer::setRefinement(), addPatchCellLayer::setRefinement(), hexRef8::setRefinement(), syncTools::swapBoundaryCellList(), and faceZoneSet::sync().
|
inlinestatic |
Swap coupled positions. Uses eqOp.
parRun | Allow parallel communication |
Definition at line 545 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), and polyMeshGeometry::checkFaceWeights().
|
inlinestatic |
Swap coupled face values. Uses eqOp.
parRun | Allow parallel communication |
Definition at line 567 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by dynamicRefineFvMesh::init(), removeFaces::setRefinement(), and tetDecomposer::setRefinement().
|
static |
Extract and swap to obtain neighbour cell values for all boundary faces.
parRun | Allow parallel communication |
Definition at line 1404 of file syncToolsTemplates.C.
References Foam::abort(), polyMesh::boundaryMesh(), Foam::FatalError, FatalErrorInFunction, mesh, primitiveMesh::nBoundaryFaces(), primitiveMesh::nCells(), Foam::nl, patches, pp(), List< T >::resize(), UList< T >::size(), and syncTools::swapBoundaryFaceList().
Referenced by decompositionMethod::decompose(), cellCellStencil::globalCellCells(), cellCellStencil::setUpFront(), syncTools::swapBoundaryCellList(), and meshRefinement::zonify().
|
static |
Extract and swap to obtain neighbour cell positions for all boundary faces.
parRun | Allow parallel communication |
Definition at line 27 of file syncTools.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, mesh, Foam::nl, pp(), List< T >::resize(), and UList< T >::size().
Referenced by polyMeshGeometry::checkFaceSkewness(), and syncTools::swapBoundaryCellPositions().
|
inlinestatic |
Return neighbour cell values for all boundary faces by swapping via boundary faces.
parRun | Allow parallel communication |
Definition at line 624 of file syncTools.H.
References mesh, and syncTools::swapBoundaryCellList().
|
inlinestatic |
Return neighbour cell positions for all boundary faces by swapping via boundary faces.
parRun | Allow parallel communication |
Definition at line 641 of file syncTools.H.
References mesh, and syncTools::swapBoundaryCellPositions().
|
inlinestatic |
Synchronize values on selected points.
Communication if UPstream::parRun() == true.
Definition at line 663 of file syncTools.H.
References mesh, and syncTools::syncPointMap().
|
inlinestatic |
Synchronize locations on selected points.
Communication if UPstream::parRun() == true.
Definition at line 685 of file syncTools.H.
References mesh, and syncTools::syncPointMap().
|
inlinestatic |
Synchronize values on selected edges. Edges are represented by the two vertices that make it up so global edges never get constructed.
Communication if UPstream::parRun() == true.
Definition at line 709 of file syncTools.H.
References mesh, and syncTools::syncEdgeMap().
|
inlinestatic |
Synchronize locations on selected edges.
Communication if UPstream::parRun() == true.
Definition at line 731 of file syncTools.H.
References mesh, and syncTools::syncEdgeMap().
|
static |
Synchronize face values from PackedList/bitSet.
mesh | The mesh |
isBoundaryOnly | True if faceValues are for the boundary only and not the entire mesh. This determines the face offset when accessing values. |
faceValues | The face values to synchronize |
cop | The combine operation |
parRun | Allow parallel communication |
Definition at line 1255 of file syncToolsTemplates.C.
References Foam::abort(), polyMesh::boundaryMesh(), Foam::FatalError, FatalErrorInFunction, mesh, cyclicPolyPatch::neighbPatch(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, UPstream::nonBlocking, UPstream::nRequests(), cyclicPolyPatch::owner(), UPstream::parRun(), patches, pp(), range, UIPstream::read(), PackedList< Width >::set(), UPtrList< T >::size(), PackedList< Width >::size(), polyPatch::start(), UPstream::waitRequests(), and UOPstream::write().
|
static |
Synchronize mesh face values from PackedList/bitSet.
parRun | Allow parallel communication |
Definition at line 1442 of file syncToolsTemplates.C.
References mesh.
|
static |
Synchronize boundary face values from PackedList/bitSet.
parRun | Allow parallel communication |
Definition at line 1455 of file syncToolsTemplates.C.
References mesh.
|
static |
Swap coupled face values. Uses eqOp.
parRun | Allow parallel communication |
Definition at line 1468 of file syncToolsTemplates.C.
References mesh.
|
static |
Swap coupled boundary face values. Uses eqOp.
parRun | Allow parallel communication |
Definition at line 1486 of file syncToolsTemplates.C.
References mesh.
|
static |
Definition at line 1504 of file syncToolsTemplates.C.
References Foam::abort(), mapDistributeBase::constructSize(), globalMeshData::coupledPatch(), Foam::FatalError, FatalErrorInFunction, forAll, polyMesh::globalData(), globalMeshData::globalPointSlaves(), globalMeshData::globalPointSlavesMap(), globalMeshData::globalPointTransformedSlaves(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), Foam::nl, primitiveMesh::nPoints(), PackedList< Width >::size(), and globalMeshData::syncData().
|
static |
Definition at line 1547 of file syncToolsTemplates.C.
References Foam::abort(), mapDistributeBase::constructSize(), globalMeshData::coupledPatchMeshEdges(), Foam::FatalError, FatalErrorInFunction, forAll, polyMesh::globalData(), globalMeshData::globalEdgeSlaves(), globalMeshData::globalEdgeSlavesMap(), globalMeshData::globalEdgeTransformedSlaves(), mesh, primitiveMesh::nEdges(), Foam::nl, PackedList< Width >::size(), and globalMeshData::syncData().
|
static |
Get per point whether it is uncoupled or a master of a coupled set of points.
Definition at line 61 of file syncTools.C.
References forAll, mesh, and List< T >::set().
Referenced by meshRefinement::printMeshInfo().
|
static |
Get per edge whether it is uncoupled or a master of a coupled set of edges.
Definition at line 90 of file syncTools.C.
References forAll, polyMesh::globalData(), mesh, primitiveMesh::nEdges(), and List< T >::set().
Referenced by motionSmootherAlgo::updateMesh().
|
static |
Get per face whether it is uncoupled or a master of a coupled set of faces.
Definition at line 119 of file syncTools.C.
References polyMesh::boundaryMesh(), mesh, primitiveMesh::nFaces(), pp(), and bitSet::unset().
Referenced by meshRefinement::countHits(), meshRefinement::printMeshInfo(), faceZoneSet::sync(), meshRefinement::updateIntersections(), and meshRefinement::zonify().
|
static |
Get per face whether it is internal or a master of a coupled set of faces.
Definition at line 139 of file syncTools.C.
References polyMesh::boundaryMesh(), mesh, primitiveMesh::nFaces(), pp(), and bitSet::unset().
|
static |
Get per face whether it is internal or coupled.
Definition at line 165 of file syncTools.C.
References polyMesh::boundaryMesh(), mesh, primitiveMesh::nFaces(), pp(), and bitSet::unset().
Referenced by snappyLayerDriver::doLayers(), and meshRefinement::getZoneFaces().