Physical Curves and Points from gmsh

Good morning everyone,

I am aware that the dolfinx.io.gmshio functions model_to_mesh and read_from_mesh return (only) the triplet (mesh, cell_tags, facet_tags), but I was wondering if there was an easy way to retrieve the equivalent tags for edges and points (from gmsh Physical Curves and Physical Points, respectively).

Thank you in advance, as always.

P.S. I am working with a 3D domain!

@Henrik_Nicolay_Finsb has a function for this:

1 Like

I was just wondering if I needed to extend the model_to_mesh function, but I see it has already been done! Thanks!

@dokken This works flawlessly. May I ask why it is not implemented in main dolfinx?

Mainly because I didn’t think it was needed at the time I added gmshio.
It’s on the todo to propose adding it (but my todo is lengthy). Anyone else could propose it

1 Like

I can do that. Maybe I could even start with contributing to the main dolfinx :scream:

3 Likes