diff options
Diffstat (limited to 'hpmr.py')
| -rwxr-xr-x | hpmr.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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() |
