Various minor changes to tutorial scripts. In particular, ensuring that they all change to the containing directory so that batches of tutorials can be run easily from the root of the installation.
20 lines
545 B
Bash
Executable File
20 lines
545 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Copy the source case
|
|
isTest "$@" && path=../../isothermalFilm || path=$FOAM_TUTORIALS/isothermalFilm
|
|
cp -r $path/rivuletPanel/constant .
|
|
cp -r $path/rivuletPanel/system .
|
|
cp -r $path/rivuletPanel/0 .
|
|
|
|
runApplication -a foamDictionary system/controlDict -entry solver -set film
|
|
|
|
runApplication blockMesh
|
|
|
|
runApplication foamRun
|
|
|
|
#------------------------------------------------------------------------------
|