|
[Sponsors] |
April 5, 2014, 19:40 |
Import mesh from Rhino
|
#1 |
Member
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 14 |
Hey Bruno,
Thanks for the help. I was able to get it going. I was wondering if you could please inform me if it is possible to import a file already meshed in Rhino into OpenFOAM and still be able to distinguish boundaries? I received some STL files but they are in binary mode and I cannot open them in OpenFOAM. I was hoping if it is possible to somehow define the surfaces in Rhino, mesh the structure, import to OpenFOAM and still be capable of defining boundary conditions to each desired surface instead of the structure of a whole. Cheers Lucas |
|
April 5, 2014, 20:20 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Lucas,
I've moved your post from the other thread: http://www.cfd-online.com/Forums/ope...ionfoam-3.html - since this question is completely off-topic of the other thread. I'm not familiar with Rhino, but in order to preserve surface names from STL to OpenFOAM's patches, you'll have to rely on using ASCII STL files and to use the same structure used by snappyHexMesh. The easiest for understanding this is to do the opposite, namely to convert patches in OpenFOAM to STL. For example, if you go into an existing case for which you already have an OpenFOAM mesh, then run: Code:
foamToSurface test.stl Give SwiftSnap a try, since it relies on Blender for handling the geometries and helps set-up the "snappyHexMeshDict" file: http://openfoamwiki.net/index.php/Contrib/SwiftSnap Best regards, Bruno
__________________
|
|
April 6, 2014, 03:23 |
|
#3 |
Member
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 14 |
Bruno,
Thanks for the response! I will check on that! Obrigado! Lucas |
|
May 15, 2014, 19:52 |
|
#4 |
New Member
Pål Grøthe Sandnes
Join Date: Oct 2010
Posts: 13
Rep Power: 16 |
In rhino you can first make a simple mesh of your geometry. Use setobjectname to name your boundaries. export the mesh to an obj file (object names will not be maintained in stl files from rhino). The patches shall now be identifiable when you proceed with sHm.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface | Kryo | OpenFOAM Meshing & Mesh Conversion | 13 | February 17, 2022 08:34 |
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! | divergence | OpenFOAM Meshing & Mesh Conversion | 0 | January 23, 2019 05:17 |
[snappyHexMesh] Layers:problem with curvature | giulio.topazio | OpenFOAM Meshing & Mesh Conversion | 10 | August 22, 2012 10:03 |
Unable to import mesh on the CFX-Pre | jarrai | CFX | 1 | December 20, 2010 08:05 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |