Boundary tags changing after call to occ.add_box
Hello,
I have found out a weird behaviour on the OpenCASCADE kernel when attempting to generate PML regions for a 3D problem.
I was able to reproduce the bug in a simplified version of the original problem (slab_3d.py and utils/gmsh.py).
In the simplified version ( testmesh.py ), I start by creating two volumes sharing one face and a plane that will cut through this volumes. After the boolean operation, I keep note of the tags associated with the plane.
The problem appears if I create another volume by gmsh.model.occ.add_box
in a way that this volume will share one edge with one of the existent volumes.
After this call (and calls to gmsh.model.occ.remove_all_duplicates()
and gmsh.model.occ.synchronize()
), I note that new tags have been assigned for my existent plane, even though the plane shouldn't be affected by the gmsh.model.occ.add_box
call.
Any suggestions on how to deal with this behaviour? In my original problem I would need to keep track of the tags associated with the plane.
Best regards,
Francisco