Mapping OpenFOAM results into dolfinx

If you can read it into a pyvista unstructured grid, you can extract the topology and geometry and create a dolfinx mesh. I have tried to explain this in the following tutorial:
http://jsdokken.com/FEniCS23-tutorial/src/mesh_generation.html

You should also then consider mesh.topology.original_cell_index and mesh.geometry.input_global_indices, as for instance explained in