[Gmsh] Booleandifference II different problem

Sabrina Zacarias szacarias at ikp.tu-darmstadt.de
Wed Oct 30 18:03:25 CET 2019


Hello, I fixed the previous problem (extremely trivial, sorry about that), however I have another one. After defining two volumes called vol_tot and vol_tpc, I would like to make a booleanDifference and get the 3rd volume, called vol_tot. However, nor the elementary entity vol_tot or the physical entity physiv_gas are tagged when I look in the ‘visibility’ option, whereas vol_env and vol_tpc do appear. 

Here is the relevant part of the code:

n_physv = 1; // physical volumes
vol_tot = newv;

BooleanDifference(vol_tot) = { Volume{vol_env};Delete;}{Volume{vol_tpc};};

physv_gas = n_physv; Physical Volume(physv_gas) = {vol_tot}; n_physv += 1;
Also (I don’t know if it is related) when I print the tag number of vol_tot, I get 57. Which I find very strange since there are only two volumes defined (vol_env and vol_tpc), so I was expecting to get a tag number 3.

Any help is greatly appreciated.

Best regards,

Sabrina
-- 
Sabrina Zacarias
Institut für Kernphysik
Technische Universität Darmstadt
S2|14 / office 319
Schlossgartenstr. 9

64289 Darmstadt

Office: +49 6151 16 23589

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20191030/7a56879f/attachment.html>


More information about the gmsh mailing list