FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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

#include <dynamicMesh/edgeCollapser.H>


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 59 of file edgeCollapser.H.

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

Constructor & Destructor Documentation

edgeCollapser ( const polyMesh &   mesh  )

Construct from mesh.

Definition at line 271 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 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().

void updateMesh ( const mapPolyMesh &   map  )

Definition at line 592 of file edgeCollapser.C.


The documentation for this class was generated from the following files: