CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Meshing & Mesh Conversion (
-   -   How to convert an IGES hull surfaces to an OF mesh (

Ingenieur5 September 10, 2013 13:57

How to convert an IGES hull surfaces to an OF mesh
Hi all,
I have to state that I am new to OF as well as to Linux:rolleyes:
I managed to get through some tutorials including the Wighley hull but have no clew how to convert my own hull surface (Iges format out of NAPA and modified in Rhino3D) to a format usable instead of the wighley hull. To be honest I even cannot check the tutorial input as I do not know how to get to the original wighley hull file as everything is zipped in gz-files....:confused:
Do anyone know where to find such instruction or can give it directly???


jherb September 10, 2013 17:09

The Allrun script copies $FOAM_TUTORIALS/resources/geometry/wigley-scaled-oriented.stl.gz to in constant/triSurface/ your case directory.

It is in the STL file format (compressed by gzip)
You can uncompress it by ungzip scaled-oriented.stl.gz

You can view it in a CAD program like FreeCAD (

Then a mesh is created using snappyHexMesh (also see the Allrun script).

The blockMeshDict has to be adapted that your hull fits into the surrounding block mesh. Then your snappyHexMeshDict has to be modified correspondingly (e.g. for different names/sizes of the surfaces).

So I guess you have to learn how to use snappyHexMesh.

colinB September 11, 2013 04:11

Dear Soenke,

if you have Rhino you can export your iges file to stl (ascii)
and use this together with snappyHexMesh and blockMesh
to create an openfoam-mesh.

How to do this I recommend you to go through the motorbike
and the damBreak tutorials (motorbike for snappyHexMehs
and damBreak for multiphase) both of them are also briefly
explained in the user guide.

I hope this helps you

Ingenieur5 September 13, 2013 14:15

is there a description for the single steps of the mentioned motorbike tutorial? I fear just to run the allrunn command doesn't help to learn and understand snappyhexmesh, or?:confused:


jherb September 13, 2013 16:22

Look inside the Allrun script to see what programs are called. The configuration for snappyHexMesh is system/snappyHexMeshDict

A documentation of snappyHexMesh can be found e.g. here:

All times are GMT -4. The time now is 22:00.