diff options
| author | connorhhmoore <connor.moore@ontariotechu.net> | 2026-09-11 11:13:18 +0200 |
|---|---|---|
| committer | connorhhmoore <connor.moore@ontariotechu.net> | 2026-09-11 11:13:18 +0200 |
| commit | 8895e79222ccece3555b4faafd76096f9591dd5f (patch) | |
| tree | 2074bbbdb36ba5f94ff572e78019950610b0d9fe | |
| parent | c2ba193a533b88d0b70a546bdc8c5ceffd74421a (diff) | |
| -rwxr-xr-x | hpmr.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -824,6 +824,14 @@ 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"] +tal_flux_mesh = openmc.RegularMesh() +tal_flux_mesh.lower_left=(-set_dyn_radial,-set_dyn_radial,-set_dyn_axial) +tal_flux_mesh.upper_right=(+set_dyn_radial,+set_dyn_radial,+set_dyn_axial) +tal_flux_mesh.dimension=(300,300,300) +tal_flux = openmc.Tally(name="2D flux tally") +tal_flux.filters = [openmc.MeshFilter(tal_flux_mesh)] +tal_flux.scores = ["flux"] + tallies = openmc.Tallies([tal_global, tal_spectrum]) tallies.export_to_xml() |
