Um von iRhino ein Modell als STL zu exportieren, genügt es nicht nur, den Weg über Datei-Export zu gehen und dann einfach das STL-Format auszuwählen. Das Programm spuckt dann leider immer Fehler aus. Allerdings kann man diese umgehen, indem man mit Bearbeiten-Objekte auswählen-Polygonnetze nur die Dreiecksflächen auswählt.

Anschließend kann man mit Datei-Auswahl exportieren dann – wie der Menüpunkt ahnen lässt – nur die ausgewählten Elemente exportierne. Da das STL-Format aus triangulierten Flächen besteht, haben Punkte, Linien & Co. nichts im Export zu suchen.

Für den Import in OpenFOAM (bzw. das Vernetzen mit snappyHexMesh) – und das einfachere händische Nachbearbeiten – sollte als ASCII exportiert werden, auch wenn die Datei deutlich größer wird.
Related posts:
Hey Jens I have a question concerning the stl file
generation. I want to simulate the flow around an airfoil in 2D
with OpenFOAM. Therefore I want to use snappyHexMesh, but I need
the stl file of the airfoil. Do you have any suggestion about how
could I do in a way that can be simply (I will simulate a family of
airfoils). Thanks in advance Felipe
Hi Felipe,
First an advice on the usage of snappyHexMesh: In principle you cannot use it to generate a 2D mesh, if you apply any refinement. This is due to the fact that snappyHexMesh refines cells by splitting them in all directions. As a matter of fact, you will obtain more than one cell in your desired empty direction. A workaround could be, not to use the refinements and create a sufficiently fine background mesh.
I am not a Rhino expert and cannot give you any advice on how to simplify the geometry generation in Rhino. There should be something like a scripting console? But if the cross-section of the airfoils can be described mathematically, you can try to create the airfoil e.g. in python and use VTK to generate an STL from that.