Static Public Member Functions | List of all members
syncTools Class Reference

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)
 

Detailed Description

Various tools to aid synchronizing lists across coupled patches. WIP.

Require

Source files

Definition at line 62 of file syncTools.H.

Member Function Documentation

◆ syncPointMap() [1/2]

void syncPointMap ( const polyMesh mesh,
Map< T > &  pointValues,
const CombineOp &  cop,
const TransformOp &  top 
)
static

◆ syncEdgeMap() [1/2]

void syncEdgeMap ( const polyMesh mesh,
EdgeMap< T > &  edgeValues,
const CombineOp &  cop,
const TransformOp &  top 
)
static

◆ syncPointList() [1/5]

void syncPointList ( const polyMesh mesh,
List< T > &  pointValues,
const CombineOp &  cop,
const T nullValue,
const TransformOp &  top 
)
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().

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

◆ syncPointList() [2/5]

void syncPointList ( const polyMesh mesh,
const labelUList meshPoints,
List< T > &  pointValues,
const CombineOp &  cop,
const T nullValue,
const TransformOp &  top 
)
static

◆ syncEdgeList() [1/5]

void syncEdgeList ( const polyMesh mesh,
List< T > &  edgeValues,
const CombineOp &  cop,
const T nullValue,
const TransformOp &  top,
const FlipOp &  fop 
)
static

◆ syncEdgeList() [2/5]

void syncEdgeList ( const polyMesh mesh,
const labelList meshEdges,
List< T > &  edgeValues,
const CombineOp &  cop,
const T nullValue,
const TransformOp &  top,
const FlipOp &  fop 
)
static

◆ syncBoundaryFaceList() [1/3]

void syncBoundaryFaceList ( const polyMesh mesh,
UList< T > &  faceValues,
const CombineOp &  cop,
const TransformOp &  top,
const bool  parRun = Pstream::parRun() 
)
static

◆ syncPointList() [3/5]

static void syncPointList ( const polyMesh mesh,
List< T > &  pointValues,
const CombineOp &  cop,
const T nullValue 
)
inlinestatic

Definition at line 177 of file syncTools.H.

References mesh, and syncTools::syncPointList().

Here is the call graph for this function:

◆ syncPointPositions() [1/3]

static void syncPointPositions ( const polyMesh mesh,
List< point > &  positions,
const CombineOp &  cop,
const point nullValue 
)
inlinestatic

Definition at line 197 of file syncTools.H.

References mesh, and syncTools::syncPointList().

Here is the call graph for this function:

◆ syncPointList() [4/5]

static void syncPointList ( const polyMesh mesh,
const labelList meshPoints,
List< T > &  pointValues,
const CombineOp &  cop,
const T nullValue 
)
inlinestatic

Definition at line 217 of file syncTools.H.

References mesh, and syncTools::syncPointList().

Here is the call graph for this function:

◆ syncPointPositions() [2/3]

static void syncPointPositions ( const polyMesh mesh,
const labelList meshPoints,
List< point > &  positions,
const CombineOp &  cop,
const point nullValue 
)
inlinestatic

Definition at line 239 of file syncTools.H.

References mesh, and syncTools::syncPointList().

Here is the call graph for this function:

◆ syncEdgeList() [3/5]

static void syncEdgeList ( const polyMesh mesh,
List< T > &  edgeValues,
const CombineOp &  cop,
const T nullValue 
)
inlinestatic

Definition at line 264 of file syncTools.H.

References mesh, and syncTools::syncEdgeList().

Here is the call graph for this function:

◆ syncEdgePositions() [1/3]

static void syncEdgePositions ( const polyMesh mesh,
List< point > &  positions,
const CombineOp &  cop,
const point nullValue 
)
inlinestatic

Definition at line 285 of file syncTools.H.

References mesh, and syncTools::syncEdgeList().

Referenced by hexRef8::setRefinement().

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

◆ syncEdgeList() [4/5]

static void syncEdgeList ( const polyMesh mesh,
const labelList meshEdges,
List< T > &  edgeValues,
const CombineOp &  cop,
const T nullValue 
)
inlinestatic

Definition at line 306 of file syncTools.H.

References mesh, and syncTools::syncEdgeList().

Here is the call graph for this function:

◆ syncEdgePositions() [2/3]

static void syncEdgePositions ( const polyMesh mesh,
const labelList meshEdges,
List< point > &  positions,
const CombineOp &  cop,
const point nullValue 
)
inlinestatic

Definition at line 329 of file syncTools.H.

References mesh, and syncTools::syncEdgeList().

Here is the call graph for this function:

◆ syncBoundaryFaceList() [2/3]

static void syncBoundaryFaceList ( const polyMesh mesh,
UList< T > &  faceValues,
const CombineOp &  cop 
)
inlinestatic

Definition at line 356 of file syncTools.H.

References mesh, and syncTools::syncBoundaryFaceList().

Here is the call graph for this function:

◆ syncBoundaryFacePositions()

static void syncBoundaryFacePositions ( const polyMesh mesh,
UList< point > &  positions,
const CombineOp &  cop 
)
inlinestatic

Definition at line 374 of file syncTools.H.

References mesh, and syncTools::syncBoundaryFaceList().

Referenced by meshRefinement::checkData(), and hexRef8::setRefinement().

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

◆ syncFaceList() [1/3]

static void syncFaceList ( const polyMesh mesh,
UList< T > &  faceValues,
const CombineOp &  cop 
)
inlinestatic

◆ syncFacePositions()

static void syncFacePositions ( const polyMesh mesh,
UList< point > &  positions,
const CombineOp &  cop 
)
inlinestatic

Definition at line 417 of file syncTools.H.

References mesh, and syncTools::syncBoundaryFaceList().

Here is the call graph for this function:

◆ swapBoundaryFaceList() [1/2]

static void swapBoundaryFaceList ( const polyMesh mesh,
UList< T > &  faceValues 
)
inlinestatic

◆ swapBoundaryFacePositions()

static void swapBoundaryFacePositions ( const polyMesh mesh,
UList< point > &  positions 
)
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().

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

◆ swapFaceList() [1/2]

static void swapFaceList ( const polyMesh mesh,
UList< T > &  faceValues 
)
inlinestatic

Definition at line 474 of file syncTools.H.

References mesh, and syncTools::syncBoundaryFaceList().

Referenced by dynamicRefineFvMesh::init(), and removeFaces::setRefinement().

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

◆ swapBoundaryCellList()

void swapBoundaryCellList ( const polyMesh mesh,
const UList< T > &  cellData,
List< T > &  neighbourCellData 
)
static

◆ swapBoundaryCellPositions()

void swapBoundaryCellPositions ( const polyMesh mesh,
const UList< point > &  cellData,
List< point > &  neighbourCellData 
)
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().

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

◆ syncPointMap() [2/2]

static void syncPointMap ( const polyMesh mesh,
Map< T > &  pointValues,
const CombineOp &  cop 
)
inlinestatic

Definition at line 517 of file syncTools.H.

References mesh, and syncTools::syncPointMap().

Here is the call graph for this function:

◆ syncPointPositions() [3/3]

static void syncPointPositions ( const polyMesh mesh,
Map< point > &  positions,
const CombineOp &  cop 
)
inlinestatic

Definition at line 535 of file syncTools.H.

References mesh, and syncTools::syncPointMap().

Here is the call graph for this function:

◆ syncEdgeMap() [2/2]

static void syncEdgeMap ( const polyMesh mesh,
EdgeMap< T > &  edgeValues,
const CombineOp &  cop 
)
inlinestatic

Definition at line 555 of file syncTools.H.

References mesh, and syncTools::syncEdgeMap().

Here is the call graph for this function:

◆ syncEdgePositions() [3/3]

static void syncEdgePositions ( const polyMesh mesh,
EdgeMap< point > &  edgePositions,
const CombineOp &  cop 
)
inlinestatic

Definition at line 573 of file syncTools.H.

References mesh, and syncTools::syncEdgeMap().

Here is the call graph for this function:

◆ syncFaceList() [2/3]

void syncFaceList ( const polyMesh mesh,
const bool  isBoundaryOnly,
PackedList< Width > &  faceValues,
const CombineOp &  cop,
const bool  parRun = Pstream::parRun() 
)
static

◆ syncFaceList() [3/3]

void syncFaceList ( const polyMesh mesh,
PackedList< Width > &  faceValues,
const CombineOp &  cop,
const bool  parRun = Pstream::parRun() 
)
static

Definition at line 1419 of file syncToolsTemplates.C.

References mesh.

◆ syncBoundaryFaceList() [3/3]

void syncBoundaryFaceList ( const polyMesh mesh,
PackedList< Width > &  faceValues,
const CombineOp &  cop,
const bool  parRun = Pstream::parRun() 
)
static

Definition at line 1432 of file syncToolsTemplates.C.

References mesh.

◆ swapFaceList() [2/2]

void swapFaceList ( const polyMesh mesh,
PackedList< Width > &  faceValues 
)
static

Definition at line 1445 of file syncToolsTemplates.C.

References mesh.

◆ swapBoundaryFaceList() [2/2]

void swapBoundaryFaceList ( const polyMesh mesh,
PackedList< Width > &  faceValues 
)
static

Definition at line 1456 of file syncToolsTemplates.C.

References mesh.

◆ syncPointList() [5/5]

void syncPointList ( const polyMesh mesh,
PackedList< Width > &  pointValues,
const CombineOp &  cop,
const unsigned int  nullValue 
)
static

◆ syncEdgeList() [5/5]

void syncEdgeList ( const polyMesh mesh,
PackedList< Width > &  edgeValues,
const CombineOp &  cop,
const unsigned int  nullValue 
)
static

◆ getMasterPoints()

Foam::bitSet getMasterPoints ( const polyMesh mesh)
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().

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

◆ getMasterEdges()

Foam::bitSet getMasterEdges ( const polyMesh mesh)
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().

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

◆ getMasterFaces()

Foam::bitSet getMasterFaces ( const polyMesh mesh)
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().

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

◆ getInternalOrMasterFaces()

Foam::bitSet getInternalOrMasterFaces ( const polyMesh mesh)
static

Definition at line 141 of file syncTools.C.

References polyMesh::boundaryMesh(), mesh, primitiveMesh::nFaces(), patches, and bitSet::unset().

Here is the call graph for this function:

◆ getInternalOrCoupledFaces()

Foam::bitSet getInternalOrCoupledFaces ( const polyMesh mesh)
static

Definition at line 169 of file syncTools.C.

References polyMesh::boundaryMesh(), mesh, primitiveMesh::nFaces(), patches, and bitSet::unset().

Referenced by snappyLayerDriver::doLayers().

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

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