120 #ifndef regionSplit_H 121 #define regionSplit_H 143 public MeshObject<polyMesh, TopologicalMeshObject, regionSplit>,
163 class bitSetOrBoolList
183 bool test(
const label i)
const 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,
ClassName("regionSplit")
Runtime type information.
This class separates the mesh into distinct unconnected regions, each of which is then given a label ...
regionSplit(const polyMesh &mesh, const bool doGlobalRegions=Pstream::parRun())
Construct from mesh.
label nLocalRegions() const
Return local number of regions.
List< bool > select(const label n, const labelUList &locations)
Construct a selection list of bools (all false) with the given pre-size, subsequently add specified l...
static bool & parRun() noexcept
Test if this a parallel run.
const globalIndex & globalNumbering() const noexcept
Return global region numbering.
static int myProcNo(const label communicator=worldComm)
Number of this process (starting from masterNo() = 0)
static const List< bool > & null()
Return a null List.
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
globalIndex reduceRegions(const label numLocalRegions, const bitSet &blockedFace, labelList &cellRegion) const
Manually consolidate regions globally by swapping information.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
static const bitSet & null()
Return a null bitSet reference.
bool test(const label pos) const
Test value at specified position, never auto-vivify entries.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
std::enable_if< std::is_same< bool, TypeT >::value, bool >::type test(const label i) const
Test bool value at specified position, always false for out-of-range access.
const polyMesh & mesh() const
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
label nRegions() const
Return total number of regions.
Mesh consisting of general polyhedral cells.
label totalSize() const
Global sum of localSizes.
label localSize() const
My local size.