summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhpmr.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/hpmr.py b/hpmr.py
index 27e7848..9c1cac8 100755
--- a/hpmr.py
+++ b/hpmr.py
@@ -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 ##