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

collapseEdges.C File Reference

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


Detailed Description

Collapse short edges and combines edges that are in line.

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

Usage
  • collapseEdges [OPTIONS] <edge length [m]> <merge angle [degrees]>
Parameters:
\<edgelength [m]>
Todo:
Detailed description of argument.
Parameters:
\<mergeangle [degrees]>
Todo:
Detailed description of argument.
Parameters:
-overwrite
Overwrite existing data.
-case<dir>
Case directory.
-help
Display help message.
-doc
Display Doxygen API documentation page for this application.
-srcDoc
Display Doxygen source documentation page for this application.

Definition in file collapseEdges.C.

#include "src/OpenFOAM/global/argList/argList.H"
#include "src/OpenFOAM/db/Time/Time.H"
#include "src/dynamicMesh/polyTopoChange/polyTopoChange/edgeCollapser.H"
#include "src/dynamicMesh/polyTopoChange/polyTopoChange/polyTopoChange.H"
#include "src/dynamicMesh/polyTopoChange/polyTopoChanger/polyTopoChanger.H"
#include "src/OpenFOAM/meshes/polyMesh/polyMesh.H"
#include "src/OpenFOAM/meshes/polyMesh/mapPolyMesh/mapPolyMesh.H"
#include "src/OpenFOAM/primitives/mathematicalConstants/mathematicalConstants.H"
#include "src/OpenFOAM/primitives/Lists/PackedBoolList.H"
#include "src/OpenFOAM/containers/Lists/SortableList/SortableList.H"
#include "src/OpenFOAM/include/setRootCase.H"
#include "src/OpenFOAM/include/createTime.H"
#include "src/OpenFOAM/include/createPolyMesh.H"
Include dependency graph for collapseEdges.C:

Go to the source code of this file.