February 1, 2009 2

iRhino STL export

By in General, OpenFOAM

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.

rhino_nur_polygonnetz

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.

stl-export-options

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:

  1. Excel Tabelle für LaTeX exportieren
  2. Plotten mit Octave und gnuplot

Tags: ,

2 Responses to “iRhino STL export”

  1. Felipe says:

    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

  2. Jens says:

    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.

Leave a Reply