CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

.stl from GMSH in SnappyHexMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By mturcios777

Reply
 
LinkBack Thread Tools Display Modes
Old   November 27, 2012, 12:56
Default .stl from GMSH in SnappyHexMesh
  #1
Member
 
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 4
vainilreb is on a distinguished road
Hi,

is it possible to use a 2D-Mesh from GMSH which is saved in the .stl-format as stl-input for snappyHexMesh?

Or is there any other way to extract an stl-File from a geometry which was modelled in GMSH?

Thank you very much!

Robert
vainilreb is offline   Reply With Quote

Old   November 27, 2012, 13:27
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
Hi Robert,

Do you mean a 2D geometry to make a 2D case in snappyHexMesh? I've never heard of doing a 2D case in snappy, but I guess you could do it.

As long as you have an STL file, snappyHexMesh will read it. As to what happens after that, there is only one way to find out...
mturcios777 is offline   Reply With Quote

Old   November 27, 2012, 13:41
Default
  #3
Member
 
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 4
vainilreb is on a distinguished road
No, I mean a 3D-geometry created in gmsh. I want to save it as .stl to mesh it with snappyHexMesh. But I don't know how to get an .stl from a .geo! :/
I tried simply 2D-meshing the 3D-geometry and then saving the mesh in the stl format, but so far that does not work at all.
vainilreb is offline   Reply With Quote

Old   November 27, 2012, 14:11
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
Ah, I see now. You should be able to mesh as long as you get the STL. Have you checked that the STL is watertight? You can inspect the STL in paraview, have a look and see if there are any serious problems, maybe post a picture somewhere.
mturcios777 is offline   Reply With Quote

Old   November 29, 2012, 04:42
Default
  #5
Member
 
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 4
vainilreb is on a distinguished road
Well, the stl looks good. Unfortunately gmsh did not save the physical groups to the file? The stl is a simple desk with an inlet patch where I want ammonia to be added to the system.

Could it be a problem that the stl contains surfaces which intersect the walls of the blockMesh geometry? I'm talking about the lower surfaces of the desk's legs. Maybe I should leave them away?
vainilreb is offline   Reply With Quote

Old   November 29, 2012, 06:52
Default
  #6
Member
 
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 74
Rep Power: 4
vainilreb is on a distinguished road
Snappy finally did it! Once I have figured out how to divide the surfaces into different physical groups I will be happy.
vainilreb is offline   Reply With Quote

Old   November 29, 2012, 15:12
Default
  #7
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
Glad to hear it worked well; please be sure to post your solution so that future users can benefit from it. There are many threads on splitting geometry up into patches. I personally prefer splitting the surface into multiple files, as it makes it easier to isolate a problem patch.

I use blender for when I need to see the geometry to manipulate it, or write an octave/matlab script to separate out the triangles based on certain criteria.
Nicole likes this.
mturcios777 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SnappyHexMesh .stl Jochem OpenFOAM 7 August 3, 2012 06:20
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
gmshToFoam problem: not the same mesh in Gmsh vs. paraview zhernadi Open Source Meshers: Gmsh, Netgen, CGNS, ... 8 July 7, 2011 02:28
Import problem ARC Open Source Meshers: Gmsh, Netgen, CGNS, ... 0 February 27, 2010 11:56
stitchMesh and snappyHexMesh gdbaldw OpenFOAM 0 December 23, 2009 03:09


All times are GMT -4. The time now is 21:32.