How to keep the physical group after createGeometry
For example, I have two surface: (2, 1)/(2, 2)
, and they also been add as the physical group.
Then, I want to re-mesh it by:
gmsh.model.mesh.classifySurfaces(math.pi, True, True)
gmsh.model.mesh.createGeometry()
After gmsh.model.mesh.generate(2)
, the gmsh.model.getPhysicalGroups()
would return empty result. The reason is the surface (2, 1)
would break into (2, 3)/(2, 4) ...
, and the surface (2, 1)
would be deleted.
So, is there any method to let me know which surface is come from surface (2, 1)
.
For example, I want to know (2, 3)
is come from (2, 1)
or (2, 2)
, or (2, 3)
is a indipendent surface. In this way, I can add (2, 3)/(2, 4) ...
as one physical group.
Any suggestion is appreciated~~~