Plot cross sections

Hi everybody,
I would like to ask if OpenMC could plot cross sections, for example, principal Be cross sections as a function of energies for different libraries (ENDF/B, JEFF, etc)

Hi @Tianxiang. You have a few options:

  • Use functionality from openmc.data along with standard Python plotting utilities like matplotlib. See here for an example Jupyter notebook demonstrating this approach.
  • There’s also a openmc.plot_xs function that can plot cross sections. This is especially useful if you want to look at cross sections for an entire material instead of a single nuclide.

@Shimwell might have some other recommendations too as I know plotting nuclear data is a passion of his :smile:

Thanks for the ping, I have a few example notebooks that use a plotting utils script. I quite like Plotly for the interactivity.

I also have a couple of web apps for plotting isotopes or materials cross sections https://www.xsplot.com/

Hi @paulromano @Shimwell ,

Thank you very much. This is a very friendly community :slight_smile:

Best regards,

Tianxiang

1 Like