CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Modification of collapseEdges utility

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2008, 09:35
Default Hi, Among other things, the
  #1
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17
olwi is on a distinguished road
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

collapseEdgesBetter.ZIP
olwi is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[mesh manipulation] CollapseEdges after makeAxialMesh utility in subversion testcase bonzodeb OpenFOAM Meshing & Mesh Conversion 1 June 5, 2009 04:24
modification of UDF ammi FLUENT 2 January 18, 2007 22:35
KIVA Modification Gede Main CFD Forum 0 May 10, 2006 23:06
modification for CFX? caty CFX 5 May 19, 2005 19:48
UDF modification merac FLUENT 4 March 1, 2001 07:42


All times are GMT -4. The time now is 13:06.