[Gmsh] storing elementary entities of physical group in a variable/list

Boehm, Christian Hermann Kurt christian.boehm at hm.edu
Mon May 1 10:01:24 CEST 2017


Hello everybody,

i wonder if something like this is possible, because whatever i try, it just doesn't work :( :


SetFactory("OpenCASCADE");

...

Physical Surface("BasePlate", 1) = {1:6};


Physical Surface("Hole1", 2) = {7};


Physical Surface("Hole2", 3) = {8};


Physical Surface(1) += { BooleanDifference{ Surface{ 1:6 }; Delete; }{ Surface{ 7 }; Delete; } };

tmp[ ] = Physical Surface{1};         % I think here is the problem???


Physical Surface(1) += { BooleanDifference{ Surface{ tmp[ ] }; Delete; }{ Surface{ 8 }; Delete; } };

...


Or is there a better/smarter way to store the elementary entities making up a physical group,

so that i can reference to them by using the physical group id ?


I hope you can unterstand my issue :).

Help is really appreciated!


Christian B.

Munich University of Applied Sciences



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


More information about the gmsh mailing list