43 const bitSet& selectedCells
47 bitSet cellsToRemove(selectedCells);
50 cellsToRemove.
resize(nCells,
false);
81 void Foam::fvMeshSubsetter::removeCellsImpl
83 const bitSet& cellsToRemove,
95 removeCells cellRemover(
baseMesh(), syncPar);
97 cellRemover.setRefinement
106 autoPtr<fvMesh> newMeshPtr;
107 autoPtr<mapPolyMesh> map = meshMod.makeMesh
124 std::move(newMeshPtr),
137 const bitSet& selectedCells,
166 const bitSet& selectedCells,
188 const bool syncCouples
labelList getExposedFaces(const bitSet &removedCell) const
Get labels of faces exposed after cells removal.
void flip()
Invert all bits in the addressable region.
Given list of cells to remove, insert all the topology changes.
const fvMesh & baseMesh() const noexcept
Original mesh.
Ignore writing from objectRegistry::writeObject()
const labelList & faceMap() const
Return face map.
UList< label > labelUList
A UList of labels.
void resize(const label numElem, const unsigned int val=0u)
Reset addressable list size, does not shrink the allocated size.
void setCellSubset(const bitSet &selectedCells, const labelList &exposedFaces, const labelList &patchIDs, const bool syncPar=true)
For every exposed face (from above getExposedFaces)
labelList getExposedFaces(const bitSet &selectedCells, const bool syncPar=true) const
Get labels of exposed faces.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
labelList identity(const label len, label start=0)
Return an identity map of the given length with (map[i] == i)
static bitSet invertCellSelection(const label nCells, const bitSet &selectedCells)
const labelList & pointMap() const
Return point map.
void reset()
Reset subMesh and all maps. Same as clear()
const labelList & cellMap() const
Return cell map.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
List< label > labelList
A List of labels.
bitSet create(const label n, const labelHashSet &locations, const bool on=true)
Create a bitSet with length n with the specified on locations.
void clear()
Reset subMesh and all maps.