CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] How to create one solid per surface when exporting STL files?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2021, 07:57
Default How to create one solid per surface when exporting STL files?
  #1
New Member
 
Join Date: Sep 2020
Posts: 28
Rep Power: 5
Reptider is on a distinguished road
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};
I can create a stl file using Export -> ASCII + per physical surfaces and receive nessecary results in stl file like:
Code:
solid firstWall
... 
endsolid firstWall
solid secondWall
...
endsolid secondWall
However, when I use in the terminal this command: "gmsh -2 name.geo -o name.stl:, I get a single solid. How can I do this operation using onlu the terminal?
Thanks!
Reptider 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] 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
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 12:43
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


All times are GMT -4. The time now is 22:27.