diff options
Diffstat (limited to 'hpmr.py')
| -rwxr-xr-x | hpmr.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -811,7 +811,11 @@ settings.temperature = {'method': "interpolation"} tal_global = openmc.Tally(name="Global Reaction Rate") tal_global.scores = ["absorption","fission"] -tallies = openmc.Tallies([tal_global]) +tal_spectrum = openmc.Tally(name="Global Energy Spectrum") +tal_spectrum.filters = [openmc.EnergyFilter(np.logspace(np.log10(1.0),np.log10(20e6),500))] +tal_spectrum.scores = ["flux"] + +tallies = openmc.Tallies([tal_global, tal_spectrum]) tallies.export_to_xml() ## Export ## |
