[Gmsh] Booleandifference II different problem

Christophe Geuzaine cgeuzaine at uliege.be
Tue Nov 5 16:22:43 CET 2019



> On 30 Oct 2019, at 18:03, Sabrina Zacarias <szacarias at ikp.tu-darmstadt.de> wrote:
> 
> 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;

Can you send the actual script?


> 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.
> 

The behavior of newv is there for backward compatibility. To get a dense numbering you can set "Geometry.OldNewReg = 0".

Christophe

> 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
> 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list