40 <<
"Number of cell values " << cellData.
size()
41 <<
" is not equal to the number of cells in the mesh " 49 neighbourCellData.
setSize(nBnd);
58 neighbourCellData[bFacei] = cellData[faceCells[i]];
61 syncTools::swapBoundaryFacePositions(mesh, neighbourCellData);
71 const labelList& meshPoints = globalData.coupledPatch().meshPoints();
74 globalData.globalPointTransformedSlaves();
76 forAll(meshPoints, coupledPointi)
78 label meshPointi = meshPoints[coupledPointi];
82 slaves[coupledPointi].size()
83 + transformedSlaves[coupledPointi].size()
88 isMasterPoint[meshPointi] =
true;
90 donePoint[meshPointi] =
true;
99 if (!donePoint[pointi])
101 isMasterPoint[pointi] =
true;
105 return isMasterPoint;
115 const labelList& meshEdges = globalData.coupledPatchMeshEdges();
118 globalData.globalEdgeTransformedSlaves();
120 forAll(meshEdges, coupledEdgeI)
122 label meshEdgeI = meshEdges[coupledEdgeI];
126 slaves[coupledEdgeI].size()
127 + transformedSlaves[coupledEdgeI].size()
132 isMasterEdge[meshEdgeI] =
true;
134 doneEdge[meshEdgeI] =
true;
143 if (!doneEdge[edgeI])
145 isMasterEdge[edgeI] =
true;
161 if (patches[
patchi].coupled())
164 refCast<const coupledPolyPatch>(patches[
patchi]);
170 isMasterFace.unset(pp.
start()+i);
195 if (!refCast<const coupledPolyPatch>(pp).owner())
199 isMasterFace.unset(pp.
start()+i);
207 isMasterFace.unset(pp.
start()+i);
233 isMasterFace.unset(pp.
start()+i);
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
label start() const
Return start label of this patch in the polyMesh face list.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
virtual bool owner() const =0
Does this side own the patch ?
errorManip< error > abort(error &err)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const globalMeshData & globalData() const
Return parallel info.
label size() const
Return the number of elements in the UList.
void setSize(const label)
Reset size of List.
const labelUList & faceCells() const
Return face-cell addressing.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
label nInternalFaces() const