-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
49 lines (47 loc) · 1.37 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
set -ex
PS3='ZPRE simulations: '
options=("k eigenvalue" "geometry plot" "neutron flux" "photon flux"
"neutron flux distribution" "rod worth" "fuel height"
"neutron leakage" "quit")
select opt in "${options[@]}"
do
case $opt in
"k eigenvalue")
echo "running k eigenvalue simulation..." &&
bash ./scripts/k.sh
;;
"geometry plot")
echo "plotting geometry..." &&
bash ./scripts/gp.sh
;;
"neutron flux")
echo "generating neutron flux plot..." &&
bash ./scripts/nf.sh
;;
"photon flux")
echo "generating photon flux plot..." &&
bash ./scripts/pf.sh
;;
"neutron flux distribution")
echo "generating neutron flux distributions..." &&
bash ./scripts/nfd.sh
;;
"rod worth")
echo "generating rod worth plots..." &&
bash ./scripts/rw.sh
;;
"fuel height")
echo "generating fuel height vs k plot..." &&
bash ./scripts/fh.sh
;;
"neutron leakage")
echo "generating relative counting rate plot..." &&
bash ./scripts/nl.sh
;;
"quit")
break
;;
*) echo "invalid option $REPLY";;
esac
done