Implementing h5py in the code is necessary because of the reasons listed below
Arrayfire operations are slower for larger arrays, splitting it into smaller sized arrays will help speed up the simulation. Data can be dumped after regular intervals using h5py
The data obtained from the simulations is required for further analysis. Using h5py, The data can be accessed after the simulation is complete.
Implementing h5py in the code is necessary because of the reasons listed below