31 lines
773 B
Bash
Executable file
31 lines
773 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
PS3='MSRE simulations: '
|
|
options=("k eigenvalue" "geometry plot" "neutron flux" "photon flux" "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
|
|
;;
|
|
"quit")
|
|
break
|
|
;;
|
|
*) echo "invalid option $REPLY";;
|
|
esac
|
|
done
|