2 # Source tutorial run functions
3 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
6 application
=`getApplication`
10 if [ -f $1/log.kivaToFoam
] ; then
11 echo "kivaToFoam already run on $1: remove log file to run"
13 echo "kivaToFoam: converting kiva file"
14 kivaToFoam
-case $1 -file $2 > $1/log.kivaToFoam
2>&1
20 if [ -f $2/log-2.
$1 ] ; then
21 echo "$1 already run on $2: remove log file to run"
23 echo "Running $1 on $2"
24 $1 -case $2 > $2/log-2.
$1 2>&1
28 runKivaToFoam . otape17
29 cp system
/controlDict
.1st system
/controlDict
30 runApplication
$application
31 cp system
/controlDict
.2nd system
/controlDict
32 restartApplication
$application .