40 if (cellData.
size() !=
mesh.nCells())
43 <<
"Number of cell values " << cellData.
size()
44 <<
" is not equal to the number of cells in the mesh " 50 neighbourCellData.
resize(
mesh.nBoundaryFaces());
54 label bFacei = pp.start()-
mesh.nInternalFaces();
60 neighbourCellData[bFacei] = cellData[celli];
74 const labelList& meshPoints = globalData.coupledPatch().meshPoints();
77 globalData.globalPointTransformedSlaves();
81 const label meshPointi = meshPoints[i];
83 if (!slaves[i].empty() || !transformedSlaves[i].empty())
85 isMaster.set(meshPointi);
87 unvisited.unset(meshPointi);
91 isMaster |= unvisited;
103 const labelList& meshEdges = globalData.coupledPatchMeshEdges();
106 globalData.globalEdgeTransformedSlaves();
110 const label meshEdgei = meshEdges[i];
112 if (!slaves[i].empty() || !transformedSlaves[i].empty())
114 isMaster.
set(meshEdgei);
116 unvisited.unset(meshEdgei);
120 isMaster |= unvisited;
136 if (!refCast<const coupledPolyPatch>(pp).owner())
138 isMaster.unset(pp.range());
156 for (
const polyPatch& pp :
patches)
160 if (!refCast<const coupledPolyPatch>(pp).owner())
162 isMaster.unset(pp.range());
167 isMaster.unset(pp.range());
184 for (
const polyPatch& pp :
patches)
188 isMaster.unset(pp.range());
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
List< labelList > labelListList
A List of labelList.
void size(const label n)
Older name for setAddressableSize.
void resize(const label len)
Adjust allocated size of list.
label nPoints() const noexcept
Number of mesh points.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#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...
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type set(const label i, bool val=true)
A bitSet::set() method for a list of bool.
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
Smooth ATC in cells next to a set of patches supplied by type.
label nFaces() const noexcept
Number of mesh faces.
#define forAll(list, i)
Loop across all elements in list.
const globalMeshData & globalData() const
Return parallel info.
errorManip< error > abort(error &err)
label nEdges() const
Number of mesh edges.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
const polyBoundaryMesh & patches
Mesh consisting of general polyhedral cells.
List< label > labelList
A List of labels.
A patch is a list of labels that address the faces in the global face list.