Getting salome mesh to FEniCSx python

I usually do more than what you have done here when working with meshio.
An example of this (using gmsh) can be found in many posts in the forum, such as):

which points to my tutorial and is similar to:

Note that I’ve been rewriting adios4dolfinx to support all kinds of IO backends, including:

  • pyvista (meshio)
  • VTKHDF
  • XDMF

in: General backend support by jorgensd · Pull Request #193 · jorgensd/adios4dolfinx · GitHub

I could help you read the .med file if you provide an example.
For instance I made a bespoke writer for the exodus file format at: GitHub - jorgensd/mesh_converter: A mesh converter from EXODUS 2 to XDMF

There are many demos that does this, for instance at: