Go to the documentation of this file.
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];
64 syncTools::swapBoundaryFacePositions(
mesh, neighbourCellData);
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());
160 if (!refCast<const coupledPolyPatch>(pp).owner())
162 isMaster.unset(pp.range());
167 isMaster.unset(pp.range());
188 isMaster.unset(pp.range());
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
label nFaces() const
Number of mesh faces.
label nEdges() const
Number of mesh edges.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
A patch is a list of labels that address the faces in the global face list.
void resize(const label newSize)
Adjust allocated size of list.
Various mesh related information for a parallel run. Upon construction, constructs all info using par...
errorManip< error > abort(error &err)
#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...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
const polyBoundaryMesh & patches
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.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
const globalMeshData & globalData() const
Return parallel info.
Smooth ATC in cells next to a set of patches supplied by type.