diff options
| author | Connor Moore <connor.moore@psi.ch> | 2026-08-04 10:08:51 +0200 |
|---|---|---|
| committer | Connor Moore <connor.moore@psi.ch> | 2026-08-04 10:08:51 +0200 |
| commit | 149a641bbfa8d31a8c2260c56d924b776015ad70 (patch) | |
| tree | 366b41c56f6fcaf7460ed9152ff003860d165012 | |
| parent | a1c326063b69307460612eb9ecb7beecdfa927b1 (diff) | |
Updated positions saving logic to read/write to positions.temp instead of positions.out, does not save if reading
| -rwxr-xr-x | hpmr.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -500,7 +500,7 @@ geo_triso_compact_domain = (4,4,int(4*geo_const_height)) if cli_args.triso_latti # Generate packing if cli_args.packing: - geo_triso_compact_packing = np.loadtxt("positions.out",delimiter=",") + geo_triso_compact_packing = np.loadtxt("positions.temp",delimiter=",") else: geo_triso_compact_packing = openmc.model.pack_spheres( radius=geo_triso_spheres[-1].r, @@ -511,7 +511,8 @@ else: ) # Export positions to file for backup -np.savetxt("positions.out",geo_triso_compact_packing,delimiter=",") +if !cli_args.packing: + np.savetxt("positions.temp",geo_triso_compact_packing,delimiter=",") # Create the TRISO particles geo_triso_compact_trisos = [openmc.model.TRISO(geo_triso_spheres[4].r, geo_triso_universe, loc) for loc in geo_triso_compact_packing] |
