Does polyTopoChanges to remove edges. Can remove faces due to edge collapse but can not remove cells due to face removal! Also removes unused points. More...
#include <dynamicMesh/edgeCollapser.H>
Does polyTopoChanges to remove edges. Can remove faces due to edge collapse but can not remove cells due to face removal! Also removes unused points.
Definition at line 59 of file edgeCollapser.H.
Public Member Functions | |
ClassName ("edgeCollapser") | |
Runtime type information.
| |
edgeCollapser (const polyMesh &mesh) | |
Construct from mesh.
| |
const labelList & | pointRegion () const |
For every point the region it belongs to or -1.
| |
const DynamicList< label > & | pointRegionMaster () const |
For every region the master (i.e. the point the region will.
| |
bool | unaffectedEdge (const label edgeI) const |
Check that edge is not marked for anything.
| |
bool | collapseEdge (const label edgeI, const label master) |
Set edge to collapse and point to collapse it to.
| |
bool | setRefinement (polyTopoChange &) |
Play commands into polyTopoChange to create mesh. Return true.
| |
void | updateMesh (const mapPolyMesh &) |
edgeCollapser | ( | const polyMesh & | mesh ) |
Construct from mesh.
Definition at line 271 of file edgeCollapser.C.
ClassName | ( | "edgeCollapser" | ) |
Runtime type information.
const labelList& pointRegion | ( | ) | const [inline]
|
For every point the region it belongs to or -1.
Definition at line 135 of file edgeCollapser.H.
const DynamicList<label>& pointRegionMaster | ( | ) | const [inline]
|
For every region the master (i.e. the point the region will.
be replaced by)
Definition at line 142 of file edgeCollapser.H.
bool unaffectedEdge | ( | const label | edgeI ) | const |
Check that edge is not marked for anything.
Definition at line 282 of file edgeCollapser.C.
bool collapseEdge | ( | const label | edgeI, |
const label | master | ||
) |
Set edge to collapse and point to collapse it to.
Return true if collapse is valid. (always true at the moment)
Definition at line 290 of file edgeCollapser.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, Foam::max(), and Foam::min().
bool setRefinement | ( | polyTopoChange & | meshMod ) |
Play commands into polyTopoChange to create mesh. Return true.
if anything changed.
Definition at line 376 of file edgeCollapser.C.
References cells, Foam::endl(), faceZone::flipMap(), forAll, Foam::Info, polyTopoChange::modifyFace(), polyTopoChange::removeCell(), polyTopoChange::removeFace(), polyTopoChange::removePoint(), List< T >::size(), faceZone::whichFace(), polyBoundaryMesh::whichPatch(), and ZoneMesh< ZoneType, MeshType >::whichZone().
void updateMesh | ( | const mapPolyMesh & | map ) |
Definition at line 592 of file edgeCollapser.C.