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

collapseEdges.C File Reference

Collapse short edges and combines edges that are in line. More...

Go to the source code of this file.


Detailed Description

Collapse short edges and combines edges that are in line.

Original source file collapseEdges.C

  • collapse short edges. Length of edges to collapse provided as argument.
  • merge two edges if they are in line. Maximum angle provided as argument.
  • remove unused points.

Cannot remove cells. Can remove faces and points but does not check for nonsense resulting topology.

When collapsing an edge with one point on the boundary it will leave the boundary point intact. When both points inside it chooses random. When both points on boundary random again. Note: it should in fact use features where if one point is on a feature it collapses to that one. Alas we don't have features on a polyMesh.

Definition in file collapseEdges.C.

Copyright © 2000-2009 OpenCFD Ltd