CFD Online Logo CFD Online URL
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

boundary conditions with Gmsh stl

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

LinkBack Thread Tools Display Modes
Old   June 22, 2012, 07:10
Default boundary conditions with Gmsh stl
New Member
Join Date: May 2012
Posts: 7
Rep Power: 7
Bercht is on a distinguished road

I created a geometry with Gmsh and exported it as an stl file. After that i meshed it with snappyHexMesh. But i dont have any boundaries defined with this method. Everytime i export an stl file with gmsh i get the msg, that physical groups can't be saved.
Is there any way i can create my boundaries with a combination of gmsh->stl->SHM ?
If no, what else could I use?
Bercht is offline   Reply With Quote

Old   July 10, 2012, 11:04
New Member
Mike Jaworski
Join Date: Jul 2012
Location: New Jersey
Posts: 6
Rep Power: 7
Jaworski.Mike is on a distinguished road
Hi Bercht,
I think I had this problem as well. What I saw is that even if I defined physical entities in gmsh, that the stl file would only be listed as a single solid with the name "Created by Gmsh", which is useless if you need multiple patches. I worked around it by saving the different patches separately, running sed on the files to replace the "Created by Gmsh" with "minY" or whatever I wanted, and then putting the various stl files together with cat.

I've been wondering if I'm doing something wrong in Gmsh or if there's an easier way or a scriptable way to do the same thing, because it's a pain when there are a lot of patches on a part. Still, this is how I've been going from Gmsh->stl->sHM.

Jaworski.Mike is offline   Reply With Quote


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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 13:58
boundary conditions and mesh exporting vaina74 Open Source Meshers: Gmsh, Netgen, CGNS, ... 2 May 27, 2010 09:38
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15
A problem about setting boundary conditions lyang Main CFD Forum 0 September 19, 1999 18:29

All times are GMT -4. The time now is 17:50.