CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Modification of collapseEdges utility (https://www.cfd-online.com/Forums/openfoam-bugs/62425-modification-collapseedges-utility.html)

olwi September 9, 2008 09:35

Hi, Among other things, the
 
Hi,

Among other things, the collapseEdges utility removes faces with area < areaFactor * maxFaceArea, where maxFaceArea is the area of the largest face of the model, and areaFactor is hard-coded to 1e-9.

I happen to run cases where there is a very large difference in size between smallest and largest cells. When working with 2D wedge geometries, I need collapseEdges to clean up after Bernhard's excellent makeAxialMesh utility. In some cases the hard-coded value for areaFactor is to large, and thousands of perfectly healthy faces are marked for removal...

I here humbly contribute a modified version, collapseEdgesBetter, in which the option -areaFactor can be used to set a sound value. If missing, the hard-coded value 1e-9 is used as default.

Best regards,

Ola

http://www.cfd-online.com/OpenFOAM_D...s/mime_zip.gif collapseEdgesBetter.ZIP


All times are GMT -4. The time now is 23:43.