How to plot particle distribution on fix source calculation

I’ve run the problem on fix source calculation with an external source file, and the state point file got out fine. But the “source” property doesn’t occur in the state point file, as shown in this example. So, how to plot particle distribution in this case?

Thank you.

In a fixed source calculation, because source points are sampled as needed and not stored in an array, the statepoint file doesn’t actually include the sampled source sites. However, in your case, if you already are using an external source file, you can easily plot the distribution without needing to run OpenMC at all. I’ve put together a quick example that shows how this can be done with the h5py package: