HDF5 output file DistribCell

Hi all,

I am using DistribCell filter to produce the fission reaction rate for each pin in the hexagonal assembly. Tallies.out file contains the information about the position of each pin in the hexagonal lattice. However, I was not able to find these indicies stored in the statepoint.h5 file. Did I miss something? Is it possible to get this information (I mean indices of the cells in the lattice) using PythonAPI and statepoint HDF5 only file without reading from the tallies.out?

Thank you,

Denis.

Hi Denis,

The easiest way of getting at that information in the HDF5 file is using the Python API with something like:

sp = openmc.StatePoint(‘statepoint.X.h5’)
tally = sp.tallies[1]
print(tally.get_pandas_dataframe())

Provided that you have a summary.h5 file in the directory with your statepoint file, the geometry information will automatically be loaded so that when you request the pandas dataframe, it will show information on what each index in the distribcell filter corresponds to. You can also take a look at this example, which does include the use of a distributed cell filter.

Best regards,
Paul

Hi Paul,

Thank you very much for pointing me into the right direction. Everything worked very well.

Best regards,

Denis.