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

[Gmsh] Gmsh Boolean Subtraction on .stl Files

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2018, 16:22
Post Gmsh Boolean Subtraction on .stl Files
  #1
New Member
 
Fariba Mohammadi
Join Date: Oct 2018
Posts: 1
Rep Power: 0
f_mdi2 is on a distinguished road
Hi,

I am trying to do Boolean subtraction on two surface meshes. My mesh files are in .stl format. In Gmsh, I tried to define each mesh as volume using Modules>Geometry>Elementary entities>Add>Volume. It created a .geo file containing my .stl file name as a command and used that as the script file.

Then I merged both files and tried to do the Boolean subtraction. It is giving me the following error,

Error: Unknown OpenCASCADE entity with dimension 3 with tag 1
Error: '', line 3: Could not apply boolean operator

My script looks like this,

Merge "left_ivc_vein.stl";
Surface Loop(1) = {1};
//+
Volume(1) = {1};
//+
Merge "left_ivc_filter.stl";
Surface Loop(2) = {2};
//+
Volume(2) = {2};
//+
SetFactory("OpenCASCADE");
BooleanDifference{ Volume{1}; }{ Volume{2}; Delete; }

I am new to Gmsh and I am not sure what I am doing wrong here. Any help is greatly appreciated.
f_mdi2 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
Query regarding post processing of .dat and .stl files bhargav4991 Tecplot 0 December 2, 2016 08:20
[Gmsh] Boolean operation in Gmsh? wwrfd OpenFOAM Meshing & Mesh Conversion 1 August 17, 2011 10:46
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 21:51
How to read .stl files with gambit 2.0 ? Lio FLUENT 6 July 1, 2004 08:39
[making animations] fclose fails to close files? Mika FLUENT 0 March 30, 2001 09:19


All times are GMT -4. The time now is 12:06.