From 7d3c464c1c86ff0c885d1fdc6cdebd0d8c8a4a02 Mon Sep 17 00:00:00 2001 From: Connor Moore Date: Wed, 5 Aug 2026 15:29:41 +0200 Subject: Added global spectrum tally --- hpmr.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ## -- cgit v1.2.3