How to read mesh from subfolder of .h5 file

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"), "geometry/mesh", False)​

The error that i get is as under:-
Traceback (most recent call last):
File "", line 6, in <module>, "geometry/mesh", False)

*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
*** 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.
*** Reason: Dataset "geometry/mesh/domain_2/entities" not found in file.
*** 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
Please login to add an answer/comment or follow this question.

Similar posts:
Search »