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