Go to the documentation of this file.
120 #ifndef regionSplit_H
121 #define regionSplit_H
143 public MeshObject<polyMesh, TopologicalMeshObject, regionSplit>,
163 class bitSetOrBoolList
170 explicit bitSetOrBoolList(
const bitSet& select)
176 explicit bitSetOrBoolList(
const boolList& select)
183 bool test(
const label i)
const
185 return a_.
test(i) || b_.test(i);
193 void checkBoundaryFaceSync(
const boolList& blockedFace)
const;
209 const label seedCellID,
210 const label markValue,
219 label localRegionSplit
232 const label numLocalRegions,
233 const bitSetOrBoolList& blockedFace,
261 const bitSet& blockedFace,
285 return globalNumbering_;
306 const label numLocalRegions,
307 const bitSet& blockedFace,
static const List< bool > & null()
Return a null List.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
static const bitSet & null()
Return a null bitSet reference.
label localSize() const
My local size.
bool test(const label pos) const
Test value at specified position, never auto-vivify entries.
Mesh consisting of general polyhedral cells.
regionSplit(const polyMesh &mesh, const bool doGlobalRegions=Pstream::parRun())
Construct from mesh.
const polyMesh & mesh() const
This class separates the mesh into distinct unconnected regions, each of which is then given a label ...
label nRegions() const
Return total number of regions.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
globalIndex reduceRegions(const label numLocalRegions, const bitSet &blockedFace, labelList &cellRegion) const
Manually consolidate regions globally by swapping information.
static int myProcNo(const label communicator=worldComm)
Number of this process (starting from masterNo() = 0)
label size() const
Global sum of localSizes.
static bool & parRun() noexcept
Test if this a parallel run.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
ClassName("regionSplit")
Runtime type information.
label nLocalRegions() const
Return local number of regions.
const globalIndex & globalNumbering() const noexcept
Return global region numbering.