CollapseEdges

From OpenFOAMWiki

1 Name

collapseEdges - Collapse short edges and combines edges that are in line.

Valid versions: OF Version 21.png

2 Synopsis

collapseEdges [OPTIONS] EDGE_LENGTH MERGE_ANGLE

3 Description

  • Collapse edges smaller than EDGE_LENGTH given in meter
  • Merge edges that are in line: angle < MERGE_ANGLE given in degrees.
  • 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.

-overwrite

Overwrite the existing mesh files

-case DIR

Execute the command on the case directory DIR. If not provided, use the current directory

-noFunctionObjects

Skip the execution of the functionObjects

-help

Display the help and exit

This utility is used in the following tutorials:

  • compressible/rhoCentralFoam/biconic25-55Run35