CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[CAD formats] Import mesh from Rhino

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By palgroth

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 5, 2014, 19:40
Default Import mesh from Rhino
  #1
Member
 
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 14
lramutti is on a distinguished road
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
lramutti is offline   Reply With Quote

Old   April 5, 2014, 20:20
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
you'll get a file "test.stl" in ASCII, where each "solid" block of code is respective to a patch.

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
__________________
wyldckat is offline   Reply With Quote

Old   April 6, 2014, 03:23
Default
  #3
Member
 
Lucas Mutti
Join Date: Aug 2013
Posts: 47
Rep Power: 14
lramutti is on a distinguished road
Bruno,

Thanks for the response! I will check on that!
Obrigado!

Lucas
lramutti is offline   Reply With Quote

Old   May 15, 2014, 19:52
Default
  #4
New Member
 
Pål Grøthe Sandnes
Join Date: Oct 2010
Posts: 13
Rep Power: 16
palgroth is on a distinguished road
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.
cmbv and Kevin370 like this.
palgroth is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 02:57.