OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

edgeCollapser Class Reference

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...

Collaboration diagram for edgeCollapser:

List of all members.


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 &)

Detailed Description

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.

Source files

Definition at line 54 of file edgeCollapser.H.


Constructor & Destructor Documentation

edgeCollapser ( const polyMesh &  mesh  ) 

Construct from mesh.

Definition at line 263 of file edgeCollapser.C.


Member Function Documentation

ClassName ( "edgeCollapser"   ) 

Runtime type information.

const labelList& pointRegion (  )  const [inline]

For every point the region it belongs to or -1.

Definition at line 132 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 141 of file edgeCollapser.H.

bool unaffectedEdge ( const label  edgeI  )  const

Check that edge is not marked for anything.

Definition at line 274 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 282 of file edgeCollapser.C.

References primitiveMesh::edges().

Here is the call graph for this function:

bool setRefinement ( polyTopoChange &  meshMod  ) 

Play commands into polyTopoChange to create mesh. Return true.

if anything changed.

Definition at line 368 of file edgeCollapser.C.

void updateMesh ( const mapPolyMesh &  map  ) 

Definition at line 584 of file edgeCollapser.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd