### How to read mesh from subfolder of .h5 file

88
views
0
3 months ago by
Hi there,  the subject mentioned in this question have been discussed quite frequently on this forum and i have used the earlier posts to read mesh from the .h5 file (screen shot attached as the file is too large to attached here) through the following code

import dolfin as df

mesh = df.Mesh()
f = df.HDF5File(df.mpi_comm_world(), "CASE2_low_40.h5", "r")
f.read(mesh, "geometry/mesh", False)​

The error that i get is as under:-
Traceback (most recent call last):
File "load.py", line 6, in <module>
RuntimeError:

*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
*** fenics@fenicsproject.org
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------------------------------------------------------------------------
*** Error: Unable to open MeshValueCollection dataset.
*** Where: This error was encountered inside HDF5File.cpp.
*** Process: 0
***
*** DOLFIN version: 1.6.0
*** Git changeset: dcc25c029d66c32bb714a01bfc832b34c7120e72
*** -------------------------------------------------------------------------

Can any one kindly suggest how can i read mesh and other details (such as mesh function and domain) from this .h5 file
Grateful !
Community: FEniCS Project