|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 61
Rep Power: 2 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 505
Rep Power: 9 ![]() |
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... |
|
|
|
|
|
|
|
|
#3 |
|
Member
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 61
Rep Power: 2 ![]() |
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. |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 505
Rep Power: 9 ![]() |
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.
|
|
|
|
|
|
|
|
|
#5 |
|
Member
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 61
Rep Power: 2 ![]() |
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?
|
|
|
|
|
|
|
|
|
#6 |
|
Member
Robert
Join Date: Aug 2012
Location: Berlin
Posts: 61
Rep Power: 2 ![]() |
Snappy finally did it! Once I have figured out how to divide the surfaces into different physical groups I will be happy.
|
|
|
|
|
|
|
|
|
#7 |
|
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 505
Rep Power: 9 ![]() |
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. |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 03: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 10:56 |
| stitchMesh and snappyHexMesh | gdbaldw | OpenFOAM | 0 | December 23, 2009 02:09 |