syncTools Class Reference

Various tools to aid synchronising lists across coupled patches. WIP. More...

Static Public Member Functions

template<class T , class CombineOp , class TransformOp >
static void syncPointMap (const polyMesh &, Map< T > &pointValues, const CombineOp &cop, const TransformOp &top)
 Synchronise values on selected points. More...
 
template<class T , class CombineOp , class TransformOp >
static void syncEdgeMap (const polyMesh &, EdgeMap< T > &edgeValues, const CombineOp &cop, const TransformOp &top)
 Synchronise values on selected edges. More...
 
template<class T , class CombineOp , class TransformOp >
static void syncPointList (const polyMesh &, List< T > &, const CombineOp &cop, const T &nullValue, const TransformOp &top)
 Synchronise values on all mesh points. More...
 
template<class T , class CombineOp , class TransformOp >
static void syncPointList (const polyMesh &, const labelList &meshPoints, List< T > &, const CombineOp &cop, const T &nullValue, const TransformOp &top)
 Synchronise values on selected mesh points. More...
 
template<class T , class CombineOp , class TransformOp >
static void syncEdgeList (const polyMesh &, List< T > &, const CombineOp &cop, const T &nullValue, const TransformOp &top)
 Synchronise values on all mesh edges. More...
 
template<class T , class CombineOp , class TransformOp >
static void syncEdgeList (const polyMesh &, const labelList &meshEdges, List< T > &, const CombineOp &cop, const T &nullValue, const TransformOp &top)
 Synchronise values on selected mesh edges. More...
 
template<class T , class CombineOp , class TransformOp >
static void syncBoundaryFaceList (const polyMesh &, UList< T > &, const CombineOp &cop, const TransformOp &top, const bool parRun=Pstream::parRun())
 Synchronise values on boundary faces only. More...
 
template<class T , class CombineOp >
static void syncPointList (const polyMesh &mesh, List< T > &l, const CombineOp &cop, const T &nullValue)
 Synchronise values on all mesh points. More...
 
template<class CombineOp >
static void syncPointPositions (const polyMesh &mesh, List< point > &l, const CombineOp &cop, const point &nullValue)
 Synchronise locations on all mesh points. More...
 
template<class T , class CombineOp >
static void syncPointList (const polyMesh &mesh, const labelList &meshPoints, List< T > &l, const CombineOp &cop, const T &nullValue)
 Synchronise values on selected mesh points. More...
 
template<class CombineOp >
static void syncPointPositions (const polyMesh &mesh, const labelList &meshPoints, List< point > &l, const CombineOp &cop, const point &nullValue)
 Synchronise locations on selected mesh points. More...
 
template<class T , class CombineOp >
static void syncEdgeList (const polyMesh &mesh, List< T > &l, const CombineOp &cop, const T &nullValue)
 Synchronise values on all mesh edges. More...
 
template<class CombineOp >
static void syncEdgePositions (const polyMesh &mesh, List< point > &l, const CombineOp &cop, const point &nullValue)
 Synchronise locations on all mesh edges. More...
 
template<class T , class CombineOp >
static void syncEdgeList (const polyMesh &mesh, const labelList &meshEdges, List< T > &l, const CombineOp &cop, const T &nullValue)
 Synchronise values on selected mesh edges. More...
 
template<class CombineOp >
static void syncEdgePositions (const polyMesh &mesh, const labelList &meshEdges, List< point > &l, const CombineOp &cop, const point &nullValue)
 Synchronise locations on selected mesh edges. More...
 
template<class T , class CombineOp >
static void syncBoundaryFaceList (const polyMesh &mesh, UList< T > &l, const CombineOp &cop)
 Synchronise values on boundary faces only. More...
 
template<class CombineOp >
static void syncBoundaryFacePositions (const polyMesh &mesh, UList< point > &l, const CombineOp &cop)
 Synchronise locations on boundary faces only. More...
 
template<class T , class CombineOp >
static void syncFaceList (const polyMesh &mesh, UList< T > &l, const CombineOp &cop)
 Synchronise values on all mesh faces. More...
 
template<class CombineOp >
static void syncFacePositions (const polyMesh &mesh, UList< point > &l, const CombineOp &cop)
 Synchronise locations on all mesh faces. More...
 
template<class T >
static void swapBoundaryFaceList (const polyMesh &mesh, UList< T > &l)
 Swap coupled boundary face values. More...
 
static void swapBoundaryFacePositions (const polyMesh &mesh, UList< point > &l)
 Swap coupled positions. More...
 
template<class T >
static void swapFaceList (const polyMesh &mesh, UList< T > &l)
 Swap coupled face values. More...
 
template<class T >
static void swapBoundaryCellList (const polyMesh &mesh, const UList< T > &cellData, List< T > &neighbourCellData)
 Swap to obtain neighbour cell values for all boundary faces. More...
 
static void swapBoundaryCellPositions (const polyMesh &mesh, const UList< point > &cellData, List< point > &neighbourCellData)
 Swap to obtain neighbour cell positions for all boundary faces. More...
 
template<class T , class CombineOp >
static void syncPointMap (const polyMesh &mesh, Map< T > &l, const CombineOp &cop)
 Synchronise values on selected points. More...
 
template<class CombineOp >
static void syncPointPositions (const polyMesh &mesh, Map< point > &l, const CombineOp &cop)
 Synchronise locations on selected points. More...
 
template<class T , class CombineOp >
static void syncEdgeMap (const polyMesh &mesh, EdgeMap< T > &l, const CombineOp &cop)
 Synchronise values on selected edges. Edges are represented. More...
 
template<class CombineOp >
static void syncEdgePositions (const polyMesh &mesh, EdgeMap< point > &l, const CombineOp &cop)
 Synchronise locations on selected edges. More...
 
template<unsigned nBits, class CombineOp >
static void syncFaceList (const polyMesh &mesh, PackedList< nBits > &faceValues, const CombineOp &cop, const bool parRun=Pstream::parRun())
 
template<unsigned nBits>
static void swapFaceList (const polyMesh &mesh, PackedList< nBits > &faceValues)
 
template<unsigned nBits, class CombineOp >
static void syncPointList (const polyMesh &mesh, PackedList< nBits > &pointValues, const CombineOp &cop, const unsigned int nullValue)
 
template<unsigned nBits, class CombineOp >
static void syncEdgeList (const polyMesh &mesh, PackedList< nBits > &edgeValues, const CombineOp &cop, const unsigned int nullValue)
 
static PackedBoolList getMasterPoints (const polyMesh &)
 Get per point whether it is uncoupled or a master of a. More...
 
static PackedBoolList getMasterEdges (const polyMesh &)
 Get per edge whether it is uncoupled or a master of a. More...
 
static PackedBoolList getMasterFaces (const polyMesh &)
 Get per face whether it is uncoupled or a master of a. More...
 
static PackedBoolList getInternalOrMasterFaces (const polyMesh &)
 Get per face whether it is internal or a master of a. More...
 
static PackedBoolList getInternalOrCoupledFaces (const polyMesh &)
 Get per face whether it is internal or coupled. More...
 

Detailed Description

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

Require

  • combineOperator (e.g. sumEqOp - not sumOp!) that is defined for the type and combineReduce(UList<T>, combineOperator) should be defined.
  • null value which gets overridden by any valid value.
  • transform function
Source files

Definition at line 62 of file syncTools.H.

Member Function Documentation

◆ syncPointMap() [1/2]

◆ syncEdgeMap() [1/2]

◆ syncPointList() [1/5]

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

◆ syncPointList() [2/5]

◆ syncEdgeList() [1/5]

◆ syncEdgeList() [2/5]

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

◆ syncBoundaryFaceList() [1/2]

◆ syncPointList() [3/5]

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

Synchronise values on all mesh points.

Definition at line 175 of file syncTools.H.

References syncTools::syncPointList().

Here is the call graph for this function:

◆ syncPointPositions() [1/3]

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

Synchronise locations on all mesh points.

Definition at line 195 of file syncTools.H.

References syncTools::syncPointList().

Here is the call graph for this function:

◆ syncPointList() [4/5]

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

Synchronise values on selected mesh points.

Definition at line 215 of file syncTools.H.

References syncTools::syncPointList().

Here is the call graph for this function:

◆ syncPointPositions() [2/3]

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

Synchronise locations on selected mesh points.

Definition at line 237 of file syncTools.H.

References syncTools::syncPointList().

Here is the call graph for this function:

◆ syncEdgeList() [3/5]

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

Synchronise values on all mesh edges.

Definition at line 262 of file syncTools.H.

References syncTools::syncEdgeList().

Here is the call graph for this function:

◆ syncEdgePositions() [1/3]

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

Synchronise locations on all mesh edges.

Definition at line 282 of file syncTools.H.

References 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 > &  l,
const CombineOp &  cop,
const T nullValue 
)
inlinestatic

Synchronise values on selected mesh edges.

Definition at line 302 of file syncTools.H.

References syncTools::syncEdgeList().

Here is the call graph for this function:

◆ syncEdgePositions() [2/3]

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

Synchronise locations on selected mesh edges.

Definition at line 324 of file syncTools.H.

References syncTools::syncEdgeList().

Here is the call graph for this function:

◆ syncBoundaryFaceList() [2/2]

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

Synchronise values on boundary faces only.

Definition at line 350 of file syncTools.H.

References syncTools::syncBoundaryFaceList().

Here is the call graph for this function:

◆ syncBoundaryFacePositions()

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

Synchronise locations on boundary faces only.

Definition at line 368 of file syncTools.H.

References 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/2]

◆ syncFacePositions()

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

Synchronise locations on all mesh faces.

Definition at line 411 of file syncTools.H.

References primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), and syncTools::syncBoundaryFaceList().

Here is the call graph for this function:

◆ swapBoundaryFaceList()

◆ swapBoundaryFacePositions()

static void swapBoundaryFacePositions ( const polyMesh mesh,
UList< point > &  l 
)
inlinestatic

Swap coupled positions.

Definition at line 451 of file syncTools.H.

References syncTools::syncBoundaryFaceList().

Referenced by polyMeshTetDecomposition::checkFaceTets(), polyMeshTetDecomposition::findFaceBasePts(), and syncTools::swapBoundaryCellPositions().

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 > &  l 
)
inlinestatic

Swap coupled face values.

Definition at line 468 of file syncTools.H.

References primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), and syncTools::syncBoundaryFaceList().

Referenced by refiner::refiner().

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

◆ syncPointMap() [2/2]

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

Synchronise values on selected points.

Definition at line 510 of file syncTools.H.

References syncTools::syncPointMap().

Here is the call graph for this function:

◆ syncPointPositions() [3/3]

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

Synchronise locations on selected points.

Definition at line 522 of file syncTools.H.

References syncTools::syncPointMap().

Here is the call graph for this function:

◆ syncEdgeMap() [2/2]

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

Synchronise values on selected edges. Edges are represented.

by the two vertices that make it up so global edges never get constructed.

Definition at line 542 of file syncTools.H.

References syncTools::syncEdgeMap().

Here is the call graph for this function:

◆ syncEdgePositions() [3/3]

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

Synchronise locations on selected edges.

Definition at line 554 of file syncTools.H.

References syncTools::syncEdgeMap().

Here is the call graph for this function:

◆ syncFaceList() [2/2]

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

◆ swapFaceList() [2/2]

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

Definition at line 1567 of file syncToolsTemplates.C.

◆ syncPointList() [5/5]

◆ syncEdgeList() [5/5]

◆ getMasterPoints()

Foam::PackedBoolList getMasterPoints ( const polyMesh mesh)
static

Get per point whether it is uncoupled or a master of a.

coupled set of points

Definition at line 65 of file syncTools.C.

References globalMeshData::coupledPatch(), forAll, polyMesh::globalData(), globalMeshData::globalPointSlaves(), globalMeshData::globalPointTransformedSlaves(), PrimitivePatch< FaceList, PointField >::meshPoints(), and primitiveMesh::nPoints().

Referenced by meshRefinement::printMeshInfo().

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

◆ getMasterEdges()

Foam::PackedBoolList getMasterEdges ( const polyMesh mesh)
static

Get per edge whether it is uncoupled or a master of a.

coupled set of edges

Definition at line 109 of file syncTools.C.

References globalMeshData::coupledPatchMeshEdges(), forAll, polyMesh::globalData(), globalMeshData::globalEdgeSlaves(), globalMeshData::globalEdgeTransformedSlaves(), and primitiveMesh::nEdges().

Referenced by motionSmootherAlgo::topoChange().

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

◆ getMasterFaces()

Foam::PackedBoolList getMasterFaces ( const polyMesh mesh)
static

Get per face whether it is uncoupled or a master of a.

coupled set of faces

Definition at line 153 of file syncTools.C.

References polyMesh::boundaryMesh(), forAll, primitiveMesh::nFaces(), coupledPolyPatch::owner(), patches, patchi, polyPatch::start(), and PackedBoolList::unset().

Referenced by polyMesh::checkFaceSkewness(), meshRefinement::countHits(), meshRefinement::printMeshInfo(), faceZoneSet::sync(), and meshRefinement::zonify().

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

◆ getInternalOrMasterFaces()

Foam::PackedBoolList getInternalOrMasterFaces ( const polyMesh mesh)
static

Get per face whether it is internal or a master of a.

coupled set of faces

Definition at line 180 of file syncTools.C.

References polyMesh::boundaryMesh(), polyPatch::coupled(), forAll, primitiveMesh::nFaces(), patches, patchi, polyPatch::start(), and PackedBoolList::unset().

Referenced by polyMesh::checkFaceOrthogonality(), polyMesh::checkFaceWeight(), and polyMesh::checkVolRatio().

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

◆ getInternalOrCoupledFaces()

Foam::PackedBoolList getInternalOrCoupledFaces ( const polyMesh mesh)
static

Get per face whether it is internal or coupled.

Definition at line 216 of file syncTools.C.

References polyMesh::boundaryMesh(), polyPatch::coupled(), forAll, primitiveMesh::nFaces(), patches, patchi, polyPatch::start(), and PackedBoolList::unset().

Referenced by polyMesh::checkCellDeterminant().

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: