diff options
| author | Connor Moore <connor.moore@psi.ch> | 2026-08-05 15:29:41 +0200 |
|---|---|---|
| committer | Connor Moore <connor.moore@psi.ch> | 2026-08-05 15:29:41 +0200 |
| commit | 7d3c464c1c86ff0c885d1fdc6cdebd0d8c8a4a02 (patch) | |
| tree | 24bf1b7e44d9b8b27a975c14d8306638b4a37027 | |
| parent | 986e83689cba71963554783fc173152297f413f9 (diff) | |
Added global spectrum tally
| -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 ## |
