summaryrefslogtreecommitdiff
path: root/hpmr.py
diff options
context:
space:
mode:
authorConnor Moore <connor.moore@psi.ch>2026-06-29 14:51:42 +0200
committerConnor Moore <connor.moore@psi.ch>2026-06-29 14:51:42 +0200
commite4cd463d4274a642e8cfe739b39e6ab5721a9066 (patch)
tree44b95c7f6ebc6f8cbf872166998bfe9df904155d /hpmr.py
parente5b2ecd4df2db10f7835388554975987ffccbf69 (diff)
Added maximum RRPT radius calculation, driving script for parametric studies
Diffstat (limited to 'hpmr.py')
-rwxr-xr-xhpmr.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/hpmr.py b/hpmr.py
index 4075538..20ea672 100755
--- a/hpmr.py
+++ b/hpmr.py
@@ -6,6 +6,9 @@ import hashlib
import sys
import time
+# For LCLRS
+openmc.config["cross_sections"] = "/libs/endfb81_official/cross_sections.xml"
+
############ COMMAND LINE ARGUMENTS ############
cli_parser = argparse.ArgumentParser(
prog="HP-RM TRISO Homogenization Study",
@@ -477,6 +480,7 @@ print("\n TRISO Stacking Information from Packing Calculation")
print(f" -> Total TRISO pebbles packed: {geo_n_triso}")
print(f" -> Total TRISO volume in compact: {geo_n_triso*4/3*math.pi*geo_triso_spheres[4].r**3:.4f}")
print(f" -> Minimum RPT cylinder radius: {(geo_n_triso*4/3*geo_triso_spheres[4].r**3/(2*geo_constant_height))**0.5:.4f}")
+print(f" -> Maximum RRPT ring radius: {(1.15**2 - geo_n_triso*4/3*geo_triso_spheres[4].r**3/(2*geo_constant_height))**0.5:.4f}")
print(" TRISO Stacking calculation complete!\n")
# Get volume fractions for mixing
@@ -660,4 +664,4 @@ geometry.export_to_xml()
settings.export_to_xml()
# Run!
-openmc.run()
+#openmc.run()