summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Moore <connor.moore@psi.ch>2026-07-27 16:05:30 +0200
committerConnor Moore <connor.moore@psi.ch>2026-07-27 16:05:30 +0200
commita51eedb048698a6054f09e23afa468e420d294b8 (patch)
tree63b445dd2719fe218626806d55e91f9bc92969eb
parente447cfccfddbd67f44307e6ab527f0fb4ce48976 (diff)
Added flag for enabling/disabling domain decomposition in TRISO lattice
-rwxr-xr-xhpmr.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/hpmr.py b/hpmr.py
index 770a8ba..460479b 100755
--- a/hpmr.py
+++ b/hpmr.py
@@ -36,6 +36,7 @@ cli_parser.add_argument("-g","--geometry-level",default="pin",choices=["pin","as
cli_parser.add_argument("-d","--drums-in",default=False,action="store_true",help="Flag for specifying the control drums are rotated in, default false")
cli_parser.add_argument("-p","--packing",default=False,action="store_true",help="Flag for specifying if packing information should be read from file")
cli_parser.add_argument("-e","--execute",default=False,action="store_true",help="Flag for automatically running OpenMC, default false.")
+cli_parser.add_argument("--triso-lattice",default=False,action="store_true",help="Flag for enabling TRISO lattice domain decomposition in the compact, default false.")
cli_args = cli_parser.parse_args()
if cli_args.lclrs:
@@ -467,7 +468,7 @@ geo_triso_universe = openmc.Universe(name="TRISO Kernel Universe",cells=geo_tris
## TRISO compact ##
geo_triso_compact_region = -openmc.ZCylinder(r=geo_const_triso_radius,x0=0.0,y0=0.0)&+geo_const_z_min&-geo_const_z_max
-geo_triso_compact_domain = (4,4,int(4*geo_const_height))
+geo_triso_compact_domain = (4,4,int(4*geo_const_height)) if cli_args.triso_lattice else (1,1,1)
# Generate packing
if cli_args.packing: