CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Generating a proper STL mesh for snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2015, 04:18
Default Generating a proper STL mesh for snappyHexMesh
  #1
New Member
 
riccardo maione
Join Date: Jun 2014
Posts: 13
Rep Power: 11
riccardomaione is on a distinguished road
Hello all,

I am trying to generate a mesh with snappyHexMesh, in order to do that I drawed a STEP and from that an STL file with gmsh. the STL looks good in surfaceCheck, the problem is I don't know how to define boundaries on this STL file. I would also like to divide this STL to multiple pieces in order to have more freedom in the meshing phase. Anyone knows how to do it in a simple way?

thanks to all for the help
Riccardo
riccardomaione is offline   Reply With Quote

Old   August 24, 2015, 15:37
Default
  #2
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 16
student666 is on a distinguished road
Hi Riccardo,

have a look to these links:

https://www.youtube.com/watch?v=ObsFQUiVi1U
https://www.youtube.com/watch?v=1zQbU-E4k1U

they should help you a lot.

Anyway, someone uses to define groups of faces into Salome, export them into step files, to generate the 2D meshes then save them as stl (better quality). Remember that by this way, there's a sort of bug and before you can use them into OF you have to scale the stl by using surfaceTranformPoints open foam utility.

Code:
surfaceTransformPoints -scale '(0.001 0.001 0.001)' <surfaceFile> <output surfaceFile>
bye
student666 is offline   Reply With Quote

Old   August 25, 2015, 02:17
Default
  #3
New Member
 
riccardo maione
Join Date: Jun 2014
Posts: 13
Rep Power: 11
riccardomaione is on a distinguished road
Oh, that's perfect,

I will give it a shot, your help is much appreciated

thank you
Riccardo
riccardomaione 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
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
ICEM 12 CFD help creating volume mesh from stl EmpError ANSYS 0 November 13, 2010 06:38
ParaView and Qt 4.3.5 on Mac OS X 10.6 Adrian OpenFOAM 3 August 8, 2010 03:16
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38


All times are GMT -4. The time now is 11:16.