|
[Sponsors] |
[Gmsh] How to create one solid per surface when exporting STL files? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 22, 2021, 07:59 |
How to create one solid per surface when exporting STL files?
|
#1 |
New Member
Join Date: Sep 2020
Posts: 28
Rep Power: 5 |
Hello!
I create physical surfaces for using them in OpenFOAM later in .geo thanks to: Code:
Merge "fisrt.stl"; Surface Loop(1) = {1}; // first surface* Physical Surface("firstWall") = {1}; Merge "second.stl"; Surface Loop(2) = {2}; // second surface* Physical Surface("secondWall") = {2}; Volume(1) = {1,2}; Physical Volume("Volume") = {1}; Code:
solid firstWall ... endsolid firstWall solid secondWall ... endsolid secondWall Code:
solid Created by Gmsh ... endsolid Created by Gmsh Thanks! |
|
May 17, 2021, 20:44 |
|
#2 |
New Member
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 6 |
I figured a way to do this by changing some default options in gmsh. I am using version 4.8.1. Open the GUI, then
Help --> Current Options and Workspace Then search for the option Mesh.StlOneSolidPerSurface and set it to 2; Mesh.StlOneSolidPerSurface = 2; Click Update (lower right corner) Before closing gmsh, go to Menu "Tools", select "Options", select "Advanced Tab" and check the option "Save options on exit". Now when meshing and exporting from the command line you should get the desired behaviour. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 02:09 |
[snappyHexMesh] Add additional boundary layers to complex stl surface | tobijingles | OpenFOAM Meshing & Mesh Conversion | 1 | October 26, 2011 10:45 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 03:01 |
solid edge problem....can you help? | cindy | Main CFD Forum | 3 | April 5, 2004 13:43 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 12, 2001 23:19 |