Given list of cells to remove, insert all the topology changes. More...
Public Member Functions | |
ClassName ("removeCells") | |
Runtime type information. More... | |
removeCells (const polyMesh &mesh) | |
Construct from mesh. With parallel synchronization. More... | |
removeCells (const polyMesh &mesh, const bool syncPar) | |
Construct from mesh, optionally with parallel synchronization. More... | |
~removeCells ()=default | |
Destructor. More... | |
labelList | getExposedFaces (const bitSet &removedCell) const |
Get labels of faces exposed after cells removal. More... | |
labelList | getExposedFaces (const labelUList &cellsToRemove) const |
Get labels of faces exposed after cells removal. More... | |
void | setRefinement (const bitSet &removedCell, const labelUList &facesToExpose, const labelUList &patchIDs, polyTopoChange &) const |
Play commands into polyTopoChange to remove cells. More... | |
void | setRefinement (const labelUList &cellsToRemove, const labelUList &facesToExpose, const labelUList &patchIDs, polyTopoChange &) const |
Play commands into polyTopoChange to remove cells. More... | |
void | updateMesh (const mapPolyMesh &) |
Force recalculation of locally stored data on topological change. More... | |
Given list of cells to remove, insert all the topology changes.
Definition at line 63 of file removeCells.H.
|
explicit |
Construct from mesh. With parallel synchronization.
Definition at line 75 of file removeCells.C.
removeCells | ( | const polyMesh & | mesh, |
const bool | syncPar | ||
) |
Construct from mesh, optionally with parallel synchronization.
Definition at line 84 of file removeCells.C.
|
default |
Destructor.
ClassName | ( | "removeCells" | ) |
Runtime type information.
Foam::labelList getExposedFaces | ( | const bitSet & | removedCell | ) | const |
Get labels of faces exposed after cells removal.
These are
Definition at line 97 of file removeCells.C.
References List< T >::append(), DynamicList< T, SizeMin >::append(), forAll, patches, and Foam::Zero.
Referenced by fvMeshSubset::getExposedFaces(), meshRefinement::removeGapCells(), and meshRefinement::splitMeshRegions().
Foam::labelList getExposedFaces | ( | const labelUList & | cellsToRemove | ) | const |
Get labels of faces exposed after cells removal.
These are
Definition at line 493 of file removeCells.C.
void setRefinement | ( | const bitSet & | removedCell, |
const labelUList & | facesToExpose, | ||
const labelUList & | patchIDs, | ||
polyTopoChange & | meshMod | ||
) | const |
Play commands into polyTopoChange to remove cells.
patchIDs is for every element in facesToExpose (see above) the patch it has to go into. This cannot be a coupled patch!
Definition at line 201 of file removeCells.C.
References Foam::abort(), Foam::endl(), f(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, Foam::nl, patches, polyTopoChange::setAction(), UList< T >::size(), WarningInFunction, faceZone::whichFace(), ZoneMesh< ZoneType, MeshType >::whichZone(), Foam::Zero, and zoneID.
void setRefinement | ( | const labelUList & | cellsToRemove, |
const labelUList & | facesToExpose, | ||
const labelUList & | patchIDs, | ||
polyTopoChange & | meshMod | ||
) | const |
Play commands into polyTopoChange to remove cells.
patchIDs is for every element in facesToExpose (see above) the patch it has to go into. This cannot be a coupled patch!
Definition at line 504 of file removeCells.C.
|
inline |
Force recalculation of locally stored data on topological change.
Definition at line 131 of file removeCells.H.