Difference between revisions of "Contrib snapEdge"

From OpenFOAMWiki
Line 21: Line 21:
  
 
[[File:pyramid.png | 500px | left: tet after snappyHexMesh, right: tet after snapEdge ]]
 
[[File:pyramid.png | 500px | left: tet after snappyHexMesh, right: tet after snapEdge ]]
 +
[[File:pyramid2.png | 500px | left: tet after snappyHexMesh, right: tet after snapEdge ]]
 +
  
 
The rear part of an Ahmed body
 
The rear part of an Ahmed body

Revision as of 13:45, 1 September 2010

snapEdge

snapEdge does not work wonders, it sometimes works and sometimes not.

What it does is that it finds the features on STL surfaces and maps the selected patches to those lines/edges.

Download from here http://openfoam.nequam.se/cases/snapEdge.tgz (update: 1 sept 2010).

To install it, unpack it anywhere with 'tar zxfv snapEdge.tgz'. Go to the snapEdge directory and run wmake.

There is a snapEdgeDict example in there as well.


Here are a few examples.

This shows the inlet patch of a pipe before and after using snapEdge.

left: inlet patch after snappyHexMesh, right: inlet patch after snapEdge

And another example of a tet.

left: tet after snappyHexMesh, right: tet after snapEdge left: tet after snappyHexMesh, right: tet after snapEdge


The rear part of an Ahmed body

left: inlet patch after snappyHexMesh, right: inlet patch after snapEdge


Something I dont know what it is supposed to be.

left: inlet patch after snappyHexMesh, right: inlet patch after snapEdge

I highly recommend running checkMesh after running snapEdge.

--Niklas 07:49, 1 September 2010 (CEST)