Plot cross section

I want to plot capture cross section, how do I plot it in openmc ?

OpenMC has the following command, plot_xs. The .xs accesses cross section information, there are a few other commands that can be used for .xs. Here is documentation for the plot command,

and here is a support page about plotting multiple on one graph if that is what you might require,
About using plot_xs method - #6 by bentridisalah.
Therefore, if you wanted to plot the capture cross section data on u-235 you could use the following code,

openmc.plot_xs(
     reactions = {"U235":["capture"]},
     temperature=293.6,
     ce_cross_sections= "/home/smrcenter/openmc/endfb80/cross_sections.xml"
)

But replace the path to the cross section file I used with your own.

1 Like