summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Moore <connor.moore@psi.ch>2026-08-05 15:29:41 +0200
committerConnor Moore <connor.moore@psi.ch>2026-08-05 15:29:41 +0200
commit7d3c464c1c86ff0c885d1fdc6cdebd0d8c8a4a02 (patch)
tree24bf1b7e44d9b8b27a975c14d8306638b4a37027
parent986e83689cba71963554783fc173152297f413f9 (diff)
Added global spectrum tally
-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 ##