summaryrefslogtreecommitdiff
path: root/hpmr.py
diff options
context:
space:
mode:
authorConnor Moore <connor.moore@psi.ch>2026-07-22 08:41:46 +0200
committerConnor Moore <connor.moore@psi.ch>2026-07-22 08:41:46 +0200
commit9a25302782e0c82c5194c9dc9cab1a150070bd5e (patch)
treebe38e8f28394c003b8d3b21141fe53e3678b826c /hpmr.py
parenta83e5e65ba15b6b27e50b4425bd9d62c90071fd9 (diff)
Fixed stacking error for 3D calculation
Diffstat (limited to 'hpmr.py')
-rwxr-xr-xhpmr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hpmr.py b/hpmr.py
index 477830a..ef818cc 100755
--- a/hpmr.py
+++ b/hpmr.py
@@ -713,8 +713,8 @@ geo_core_refl_bot_cell = openmc.Cell(name="Bottom Axial Reflector Cell",fill=geo
# 3D Stacking Lattice
geo_core_axial_lattice = openmc.RectLattice()
geo_core_axial_lattice.lower_left = (-sys.float_info.max/2, -sys.float_info.max/2, -int(160//geo_const_height)/2*geo_const_height)
-geo_core_axial_lattice.pitch=(sys.float_info.max, sys.float_info.max, geo_const_height)
-geo_core_axial_lattice.universes = [[[geo_core_rad_universe]] for _ in range(int(160//geo_const_height))]
+geo_core_axial_lattice.pitch=(sys.float_info.max, sys.float_info.max, 2*geo_const_height)
+geo_core_axial_lattice.universes = [[[geo_core_rad_universe]] for _ in range(int(160//(2*geo_const_height)))]
geo_core_axial_lattice.outer=geo_none_universe
geo_core_cell = openmc.Cell(name="Core 3D Cell",fill=geo_core_axial_lattice, region=-geo_const_core_cyl & +geo_const_core_z_min & -geo_const_core_z_max)