diff options
| author | Connor Moore <connor.moore@psi.ch> | 2026-07-10 09:56:42 +0200 |
|---|---|---|
| committer | Connor Moore <connor.moore@psi.ch> | 2026-07-10 09:56:42 +0200 |
| commit | aa4391a8d1eb3795a97640d80008a99ce4068dad (patch) | |
| tree | 60c3bd73748afffe404c0e81820c33b5c8fa5304 /extract_to_table.sh | |
| parent | b4037e62ff173b5850bb500ad169eb7a7228079f (diff) | |
Updated driving scripts, plotting scripts, utility scripts
Diffstat (limited to 'extract_to_table.sh')
| -rwxr-xr-x | extract_to_table.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/extract_to_table.sh b/extract_to_table.sh new file mode 100755 index 0000000..b2e62eb --- /dev/null +++ b/extract_to_table.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Initialize table +echo "#" $(date) > results/keff_table + +# Generate a k-eff table + +files=$(ls results/*.out) + + +for file in $files; do + ph=$(echo $file | cut -d "/" -f 2 | cut -d "." -f 1 | cut -d "_" -f 1 | sed 's/p//') + sh=$(echo $file | cut -d "/" -f 2 | cut -d "." -f 1 | cut -d "_" -f 2 | sed 's/s//') + keff=$(cat $file | grep "Combined k-effective" | cut -d "=" -f 2 | cut -d "+" -f 1 | sed 's/ //g') + pm=$(cat $file | grep "Combined k-effective" | cut -d "=" -f 2 | cut -d "-" -f 2 | sed 's/ //g') + echo POOL: $ph SAT: $sh :::: KEFF: $keff +/- $pm + echo $ph $sh $keff $pm >> results/keff_table +done + +# sort the table +sort -o results/keff_table results/keff_table -k1,2g + +# fully saturated table +cat results/keff_table | awk '$2==45 {print}' > results/keff_45s_table + +# three quarter saturated table +cat results/keff_table | awk '$2==35 {print}' > results/keff_35s_table + +# half saturated table +cat results/keff_table | awk '$2==25 {print}' > results/keff_25s_table + +# one quarter saturated table +cat results/keff_table | awk '$2==15 {print}' > results/keff_15s_table |
