Given list of cells to remove insert all the topology changes. More...
#include <dynamicMesh/removeCells.H>
Given list of cells to remove insert all the topology changes.
Definition at line 60 of file removeCells.H.
Public Member Functions | |
ClassName ("removeCells") | |
Runtime type information.
| |
removeCells (const polyMesh &mesh, const bool syncPar=true) | |
Construct from mesh. syncPar: do parallel synchronization.
| |
labelList | getExposedFaces (const labelList &cellsToRemove) const |
Get labels of exposed faces. These are.
| |
void | setRefinement (const labelList &cellsToRemove, const labelList &facesToExpose, const labelList &patchIDs, polyTopoChange &) const |
Play commands into polyTopoChange to remove cells.
| |
void | updateMesh (const mapPolyMesh &) |
Force recalculation of locally stored data on topological change.
|
removeCells | ( | const polyMesh & | mesh, |
const bool | syncPar = true
|
||
) |
Construct from mesh. syncPar: do parallel synchronization.
Definition at line 64 of file removeCells.C.
ClassName | ( | "removeCells" | ) |
Runtime type information.
Foam::labelList getExposedFaces | ( | const labelList & | cellLabels ) | const |
Get labels of exposed faces. These are.
coupled faces that become uncoupled (since one of the sides gets deleted)
coupled faces that become uncoupled (since on of the sides gets deleted)
Definition at line 81 of file removeCells.C.
References List< T >::append(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), polyPatch::coupled(), forAll, patches, polyPatch::start(), and syncTools::syncFaceList().
Referenced by meshRefinement::splitMesh(), and meshRefinement::splitMeshRegions().
void setRefinement | ( | const labelList & | cellsToRemove, |
const labelList & | facesToExpose, | ||
const labelList & | 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 188 of file removeCells.C.
References Foam::abort(), polyPatch::coupled(), Foam::endl(), f(), Foam::FatalError, FatalErrorIn, faceZone::flipMap(), forAll, IOobject::name(), Foam::nl, patches, face::reverseFace(), polyTopoChange::setAction(), PtrList< T >::size(), List< T >::size(), polyPatch::start(), WarningIn, faceZone::whichFace(), and ZoneMesh< ZoneType, MeshType >::whichZone().
void updateMesh | ( | const mapPolyMesh & | ) | [inline]
|
Force recalculation of locally stored data on topological change.
Definition at line 115 of file removeCells.H.