fusion-energy / neutronics-workshop

A workshop covering a range of fusion relevant analysis and simulations with OpenMC, DAGMC, Paramak and other open source fusion neutronics tools
MIT License
111 stars 50 forks source link

Change units of cross section plots to be in MeV #288

Open shimwell opened 1 month ago

shimwell commented 1 month ago

task 1 has several notebooks with plotting sections where we plot in the default eV units on the X axis

for example

fig = openmc.plotter.plot_xs(
    reactions = {
        'Li6': ['(n,Xt)'],
        'Li7': ['(n,Xt)'],
        'Be9': ['(n,2n)']
    },
)

could be changed to

fig = openmc.plotter.plot_xs(
    reactions = {
        'Li6': ['(n,Xt)'],
        'Li7': ['(n,Xt)'],
        'Be9': ['(n,2n)'],
    },
    energy_axis_units='MeV'
)