diff options
| author | Connor Moore <connor.moore@psi.ch> | 2026-07-03 13:30:40 +0200 |
|---|---|---|
| committer | Connor Moore <connor.moore@psi.ch> | 2026-07-03 13:30:40 +0200 |
| commit | 9091090aa0f2b3d497963e169802c23bb7af8973 (patch) | |
| tree | cc1f04ff4ff8f45b589b0536b39d6c5eb4b1e128 /hp_height_study_driver.sh | |
| parent | 64774b2e395af63452f07ab14c051a2fb74e9367 (diff) | |
Added LCLRS run settings and verbosified argparse help
Diffstat (limited to 'hp_height_study_driver.sh')
| -rwxr-xr-x | hp_height_study_driver.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/hp_height_study_driver.sh b/hp_height_study_driver.sh new file mode 100755 index 0000000..234bbaf --- /dev/null +++ b/hp_height_study_driver.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +mkdir -p results/outputs +touch results/keff_table +echo "\#" $(date) > results/keff_table + + +if [[ $1 == "lcl" ]]; then + prog=openmc-inst01.py krusty.py +else + prog=./krusty.py +fi + +green="\e[0;32m" +reset="\e[0m" + +for pool_height in $(seq 1 45); do + echo -e "$green Starting runs for $pool_height cm pool height... $reset" + for sat_height in $(seq $pool_height 45); do + output_file=results/outputs/p$pool_height\_s$sat_height.out + $prog -p $pool_height -s $sat_height > $output_file + keff=$(cat $output_file | grep "Combined k-effective" | cut -d "=" -f 2 | cut -d "+" -f 1) + pm=$(cat $output_file | grep "Combined k-effective" | cut -d "=" -f 2 | cut -d "-" -f 2) + md5=$(cat $output_file | grep "MD5:" | cut -d ":" -f 2 | sed "s/ //g") + echo K-eff $keff +/- $pm found for p=$pool_height and s=$sat_height \($md5\) + echo $pool_height $sat_height $keff $pm $md5 \($(date)\) >> results/keff_table + done +done |
