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) |
template<class T , class CombineOp , class TransformOp > | |
static void | syncEdgeMap (const polyMesh &mesh, EdgeMap< T > &edgeValues, const CombineOp &cop, const TransformOp &top) |
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) |
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) |
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) |
template<class T , class CombineOp , class TransformOp , class FlipOp > | |
static void | syncEdgeList (const polyMesh &mesh, const labelList &meshEdges, List< T > &edgeValues, const CombineOp &cop, const T &nullValue, const TransformOp &top, const FlipOp &fop) |
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=Pstream::parRun()) |
template<class T , class CombineOp > | |
static void | syncPointList (const polyMesh &mesh, List< T > &pointValues, const CombineOp &cop, const T &nullValue) |
template<class CombineOp > | |
static void | syncPointPositions (const polyMesh &mesh, List< point > &positions, const CombineOp &cop, const point &nullValue) |
template<class T , class CombineOp > | |
static void | syncPointList (const polyMesh &mesh, const labelList &meshPoints, List< T > &pointValues, const CombineOp &cop, const T &nullValue) |
template<class CombineOp > | |
static void | syncPointPositions (const polyMesh &mesh, const labelList &meshPoints, List< point > &positions, const CombineOp &cop, const point &nullValue) |
template<class T , class CombineOp > | |
static void | syncEdgeList (const polyMesh &mesh, List< T > &edgeValues, const CombineOp &cop, const T &nullValue) |
template<class CombineOp > | |
static void | syncEdgePositions (const polyMesh &mesh, List< point > &positions, const CombineOp &cop, const point &nullValue) |
template<class T , class CombineOp > | |
static void | syncEdgeList (const polyMesh &mesh, const labelList &meshEdges, List< T > &edgeValues, const CombineOp &cop, const T &nullValue) |
template<class CombineOp > | |
static void | syncEdgePositions (const polyMesh &mesh, const labelList &meshEdges, List< point > &positions, const CombineOp &cop, const point &nullValue) |
template<class T , class CombineOp > | |
static void | syncBoundaryFaceList (const polyMesh &mesh, UList< T > &faceValues, const CombineOp &cop) |
template<class CombineOp > | |
static void | syncBoundaryFacePositions (const polyMesh &mesh, UList< point > &positions, const CombineOp &cop) |
template<class T , class CombineOp > | |
static void | syncFaceList (const polyMesh &mesh, UList< T > &faceValues, const CombineOp &cop) |
template<class CombineOp > | |
static void | syncFacePositions (const polyMesh &mesh, UList< point > &positions, const CombineOp &cop) |
template<class T > | |
static void | swapBoundaryFaceList (const polyMesh &mesh, UList< T > &faceValues) |
static void | swapBoundaryFacePositions (const polyMesh &mesh, UList< point > &positions) |
template<class T > | |
static void | swapFaceList (const polyMesh &mesh, UList< T > &faceValues) |
template<class T > | |
static void | swapBoundaryCellList (const polyMesh &mesh, const UList< T > &cellData, List< T > &neighbourCellData) |
static void | swapBoundaryCellPositions (const polyMesh &mesh, const UList< point > &cellData, List< point > &neighbourCellData) |
template<class T , class CombineOp > | |
static void | syncPointMap (const polyMesh &mesh, Map< T > &pointValues, const CombineOp &cop) |
template<class CombineOp > | |
static void | syncPointPositions (const polyMesh &mesh, Map< point > &positions, const CombineOp &cop) |
template<class T , class CombineOp > | |
static void | syncEdgeMap (const polyMesh &mesh, EdgeMap< T > &edgeValues, const CombineOp &cop) |
template<class CombineOp > | |
static void | syncEdgePositions (const polyMesh &mesh, EdgeMap< point > &edgePositions, const CombineOp &cop) |
template<unsigned Width, class CombineOp > | |
static void | syncFaceList (const polyMesh &mesh, const bool isBoundaryOnly, PackedList< Width > &faceValues, const CombineOp &cop, const bool parRun=Pstream::parRun()) |
template<unsigned Width, class CombineOp > | |
static void | syncFaceList (const polyMesh &mesh, PackedList< Width > &faceValues, const CombineOp &cop, const bool parRun=Pstream::parRun()) |
template<unsigned Width, class CombineOp > | |
static void | syncBoundaryFaceList (const polyMesh &mesh, PackedList< Width > &faceValues, const CombineOp &cop, const bool parRun=Pstream::parRun()) |
template<unsigned Width> | |
static void | swapFaceList (const polyMesh &mesh, PackedList< Width > &faceValues) |
template<unsigned Width> | |
static void | swapBoundaryFaceList (const polyMesh &mesh, PackedList< Width > &faceValues) |
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) |
static bitSet | getMasterEdges (const polyMesh &mesh) |
static bitSet | getMasterFaces (const polyMesh &mesh) |
static bitSet | getInternalOrMasterFaces (const polyMesh &mesh) |
static bitSet | getInternalOrCoupledFaces (const polyMesh &mesh) |
Various tools to aid synchronizing lists across coupled patches. WIP.
Definition at line 62 of file syncTools.H.
|
static |
Definition at line 77 of file syncToolsTemplates.C.
References polyMesh::boundaryMesh(), Foam::ListListOps::combine(), cyclicPolyPatch::coupledPoints(), Foam::constant::electromagnetic::e, PstreamBuffers::finishedSends(), forAll, forAllConstIters(), polyMesh::globalData(), UPstream::master(), UPstream::masterNo(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), cyclicPolyPatch::neighbPatch(), globalMeshData::nGlobalPoints(), UPstream::nonBlocking, cyclicPolyPatch::owner(), UPstream::parRun(), patches, UPstream::scheduled, globalMeshData::sharedPointAddr(), globalMeshData::sharedPointLabels(), and UPstream::subProcs().
Referenced by reconstructedDistanceFunction::markCellsNearSurf(), syncTools::syncPointMap(), and syncTools::syncPointPositions().
|
static |
Definition at line 358 of file syncToolsTemplates.C.
References polyMesh::boundaryMesh(), HashTable< T, edge, Hash< edge > >::cfind(), Foam::ListListOps::combine(), cyclicPolyPatch::coupledEdges(), Foam::constant::electromagnetic::e, PrimitivePatch< FaceList, PointField >::edges(), f(), polyMesh::faces(), PstreamBuffers::finishedSends(), forAll, forAllConstIters(), polyMesh::globalData(), HashTable< T, edge, Hash< edge > >::insert(), UPstream::master(), UPstream::masterNo(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), cyclicPolyPatch::neighbPatch(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), UPstream::nonBlocking, cyclicPolyPatch::owner(), UPstream::parRun(), patches, UPstream::scheduled, globalMeshData::sharedPointAddr(), globalMeshData::sharedPointLabels(), and UPstream::subProcs().
Referenced by patchPatchDist::correct(), syncTools::syncEdgeMap(), and syncTools::syncEdgePositions().
|
static |
Definition at line 714 of file syncToolsTemplates.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, polyMesh::globalData(), mesh, primitiveMesh::nPoints(), and globalMeshData::syncPointData().
Referenced by singleProcessorFaceSets::add(), sensitivitySurface::addGeometricSens(), snappyLayerDriver::addLayers(), singleProcessorFaceSets::apply(), sensitivitySurfacePoints::assembleSensitivities(), motionSmootherAlgo::avg(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::calcSnapDistance(), pointZone::checkParallelSync(), hexRef8::checkRefinementLevels(), edgeCollapser::consistentCollapse(), hexRef8::consistentSlowRefinement(), sensitivitySurfacePoints::constructGlobalPointNormalsAndAreas(), motionSmootherAlgo::correctBoundaryConditions(), removePoints::countPointUsage(), 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 |
Definition at line 736 of file syncToolsTemplates.C.
References Foam::abort(), globalMeshData::coupledPatch(), Foam::FatalError, FatalErrorInFunction, forAll, polyMesh::globalData(), globalMeshData::globalPointSlaves(), globalMeshData::globalPointSlavesMap(), globalMeshData::globalPointTransformedSlaves(), globalMeshData::globalTransforms(), mesh, PrimitivePatch< FaceList, PointField >::meshPointMap(), PrimitivePatch< FaceList, PointField >::nPoints(), UList::size(), and globalMeshData::syncData().
|
static |
Definition at line 793 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(), polyMesh::points(), 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 |
Definition at line 890 of file syncToolsTemplates.C.
References Foam::abort(), 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(), polyMesh::points(), and globalMeshData::syncData().
|
static |
Definition at line 991 of file syncToolsTemplates.C.
References Foam::abort(), polyMesh::boundaryMesh(), UPstream::defaultCommsType, Foam::FatalError, FatalErrorInFunction, PstreamBuffers::finishedSends(), fld, forAll, mesh, primitiveMesh::nBoundaryFaces(), cyclicPolyPatch::neighbPatch(), primitiveMesh::nInternalFaces(), Foam::nl, UPstream::nonBlocking, UPstream::nRequests(), cyclicPolyPatch::owner(), patches, UIPstream::read(), UList::size(), polyPatch::start(), UPstream::waitRequests(), and UOPstream::write().
Referenced by cellToFaceStencil::calcFaceStencil(), removePoints::getUnrefimentSet(), syncTools::swapBoundaryFaceList(), syncTools::swapBoundaryFacePositions(), syncTools::swapFaceList(), syncTools::syncBoundaryFaceList(), syncTools::syncBoundaryFacePositions(), syncTools::syncFaceList(), and syncTools::syncFacePositions().
|
inlinestatic |
Definition at line 177 of file syncTools.H.
References mesh, and syncTools::syncPointList().
|
inlinestatic |
Definition at line 197 of file syncTools.H.
References mesh, and syncTools::syncPointList().
|
inlinestatic |
Definition at line 217 of file syncTools.H.
References mesh, and syncTools::syncPointList().
|
inlinestatic |
Definition at line 239 of file syncTools.H.
References mesh, and syncTools::syncPointList().
|
inlinestatic |
Definition at line 264 of file syncTools.H.
References mesh, and syncTools::syncEdgeList().
|
inlinestatic |
Definition at line 285 of file syncTools.H.
References mesh, and syncTools::syncEdgeList().
Referenced by hexRef8::setRefinement().
|
inlinestatic |
Definition at line 306 of file syncTools.H.
References mesh, and syncTools::syncEdgeList().
|
inlinestatic |
Definition at line 329 of file syncTools.H.
References mesh, and syncTools::syncEdgeList().
|
inlinestatic |
Definition at line 356 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
|
inlinestatic |
Definition at line 374 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by meshRefinement::checkData(), and hexRef8::setRefinement().
|
inlinestatic |
Definition at line 392 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by preserveBaffles::add(), singleProcessorFaceSets::add(), refinementHistory::add(), meshRefinement::balance(), meshRefinement::createBaffles(), dynamicRefineFvMesh::extendMarkedCells(), dynamicRefineFvMesh::init(), dynamicOversetFvMesh::normalisation(), hexRef8::setRefinement(), meshRefinement::splitMesh(), faceBoolSet::sync(), faceBitSet::sync(), faceSet::sync(), and meshRefinement::updateIntersections().
|
inlinestatic |
Definition at line 417 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Definition at line 441 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by decompositionMethod::calcCellCells(), meshRefinement::checkCoupledFaceZones(), meshRefinement::checkData(), hexRef8::checkMesh(), faceZone::checkParallelSync(), hexRef8::checkRefinementLevels(), polyMeshGeometry::checkVolRatio(), hexRef8::consistentSlowRefinement(), hexRef8::consistentUnrefinement(), fluxSummary::initialiseCellZoneAndDirection(), SloanRenumber::renumber(), rotorDiskSource::setFaceArea(), tetDecomposer::setRefinement(), hexRef8::setRefinement(), syncTools::swapBoundaryCellList(), and faceZoneSet::sync().
|
inlinestatic |
Definition at line 457 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceTets(), polyMeshGeometry::checkFaceTwist(), and polyMeshGeometry::checkFaceWeights().
Definition at line 474 of file syncTools.H.
References mesh, and syncTools::syncBoundaryFaceList().
Referenced by dynamicRefineFvMesh::init(), and removeFaces::setRefinement().
|
static |
Definition at line 1385 of file syncToolsTemplates.C.
References Foam::abort(), polyMesh::boundaryMesh(), Foam::FatalError, FatalErrorInFunction, mesh, primitiveMesh::nBoundaryFaces(), primitiveMesh::nCells(), patches, List::resize(), UList::size(), and syncTools::swapBoundaryFaceList().
Referenced by decompositionMethod::decompose(), cellCellStencil::globalCellCells(), dynamicOversetFvMesh::normalisation(), and meshRefinement::zonify().
|
static |
Definition at line 27 of file syncTools.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, mesh, patches, List::resize(), and UList::size().
Referenced by polyMeshGeometry::checkFaceSkewness().
|
inlinestatic |
Definition at line 517 of file syncTools.H.
References mesh, and syncTools::syncPointMap().
|
inlinestatic |
Definition at line 535 of file syncTools.H.
References mesh, and syncTools::syncPointMap().
|
inlinestatic |
Definition at line 555 of file syncTools.H.
References mesh, and syncTools::syncEdgeMap().
|
inlinestatic |
Definition at line 573 of file syncTools.H.
References mesh, and syncTools::syncEdgeMap().
|
static |
Definition at line 1226 of file syncToolsTemplates.C.
References Foam::abort(), polyMesh::boundaryMesh(), PackedList::cdata_bytes(), PackedList::data_bytes(), Foam::FatalError, FatalErrorInFunction, mesh, cyclicPolyPatch::neighbPatch(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, UPstream::nonBlocking, UPstream::nRequests(), cyclicPolyPatch::owner(), patches, range, UIPstream::read(), PtrList::set(), PackedList::set(), PackedList::size(), PackedList::size_bytes(), polyPatch::start(), UPstream::waitRequests(), and UOPstream::write().
|
static |
Definition at line 1419 of file syncToolsTemplates.C.
References mesh.
|
static |
Definition at line 1432 of file syncToolsTemplates.C.
References mesh.
|
static |
Definition at line 1445 of file syncToolsTemplates.C.
References mesh.
|
static |
Definition at line 1456 of file syncToolsTemplates.C.
References mesh.
|
static |
Definition at line 1467 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(), primitiveMesh::nPoints(), PackedList::size(), and globalMeshData::syncData().
|
static |
Definition at line 1510 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(), PackedList::size(), and globalMeshData::syncData().
|
static |
Definition at line 61 of file syncTools.C.
References globalMeshData::coupledPatch(), forAll, globalMeshData::globalPointSlaves(), globalMeshData::globalPointTransformedSlaves(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), bitSet::set(), and bitSet::unset().
Referenced by meshRefinement::printMeshInfo().
|
static |
Definition at line 90 of file syncTools.C.
References globalMeshData::coupledPatchMeshEdges(), forAll, polyMesh::globalData(), globalMeshData::globalEdgeSlaves(), globalMeshData::globalEdgeTransformedSlaves(), mesh, primitiveMesh::nEdges(), bitSet::set(), and bitSet::unset().
Referenced by motionSmootherAlgo::updateMesh().
|
static |
Definition at line 119 of file syncTools.C.
References polyMesh::boundaryMesh(), mesh, primitiveMesh::nFaces(), patches, and bitSet::unset().
Referenced by meshRefinement::countHits(), meshRefinement::printMeshInfo(), faceZoneSet::sync(), meshRefinement::updateIntersections(), and meshRefinement::zonify().
|
static |
Definition at line 141 of file syncTools.C.
References polyMesh::boundaryMesh(), mesh, primitiveMesh::nFaces(), patches, and bitSet::unset().
|
static |
Definition at line 169 of file syncTools.C.
References polyMesh::boundaryMesh(), mesh, primitiveMesh::nFaces(), patches, and bitSet::unset().
Referenced by snappyLayerDriver::doLayers().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.