HDF5 Files - geomechanics/mpm GitHub Wiki

HDF5 files are most easily read using the pandas package for Python. For each material point, these files will contain the coordinate, velocity, stresses, strains, and state variables. Below provides an example how to load the HDF5 data for an individual file and how to list the variables names to access the saved data.

import pandas as pd
df = pd.read_hdf('particles00000.h5')
print(list(df))