summaryrefslogtreecommitdiff
path: root/hpmr.py
diff options
context:
space:
mode:
authorConnor Moore <connor.moore@psi.ch>2026-07-03 09:47:08 +0200
committerConnor Moore <connor.moore@psi.ch>2026-07-03 09:47:08 +0200
commitca028e4a69231d376f69e8ff3cf826d6fe393504 (patch)
tree6b94028ab5af8422c68564a218741cc2078889ae /hpmr.py
parent22f7776083832b3f3c92f94f958bb8daa5f282fb (diff)
Added inputs for LCLRS vs. normal runs in HPMR input and driving script
Diffstat (limited to 'hpmr.py')
-rwxr-xr-xhpmr.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/hpmr.py b/hpmr.py
index 0eaa9ba..8551f7d 100755
--- a/hpmr.py
+++ b/hpmr.py
@@ -20,8 +20,12 @@ cli_parser = argparse.ArgumentParser(
cli_parser.add_argument("-t","--technique",default="none",choices=["none","vwh","rpt","rrpt"],help="What homogenization technique to use (if any) [none/vwh/rpt/rrpt], default none")
cli_parser.add_argument("-r","--radius",default="0.8",type=float,help="Radius for RPT or RRPT homogenization [cm], default 0.8 cm. In the case of RRPT, this is the inner radius.")
+cli_parser.add_argument("-l","--lclrs",default=False,action="store_true",help="Flag for specifying LCLRS accessible cross-sections, default false.")
cli_args = cli_parser.parse_args()
+if cli_args.lclrs:
+ openmc.config["cross_sections"] = "/libs/endfb81_official/cross_sections.xml"
+
############ INTPUT-OUTPUT MAPPING ############
path = sys.argv[0]
@@ -30,11 +34,11 @@ with open(path, "rb") as file:
filehash = hashlib.md5(contents).hexdigest()
-print("="*60)
+print("="*70)
print(f"Run date CET: {time.ctime()}")
print(f"Input file MD5: {filehash}")
print(f"Input arguments: {cli_args}")
-print("="*60)
+print("="*70)
############ MATERIALS ############
# All materials are specified in the report on HEAT PIPE MICROREACTOR MODELING WITH BLUECRAB
@@ -667,4 +671,4 @@ geometry.export_to_xml()
settings.export_to_xml()
# Run!
-#openmc.run()
+openmc.run()