Getting physical group of all elements with Python API.
Hello everybody,
is there a possibility to directly get the physical group of all elements with the Python API?
In an older issue, I saw that one can first use gmsh.model.getEntitiesForPhysicalGroup
to get the entities and second gmsh.model.mesh.getElements
to get the elements in these entities. However, is there a more efficient way of doing this? For instance, a method that gives all elements and the corresponding physical group?
Thanks, Jonas