TUT: tutorial script updates

This commit is contained in:
Andrew Heather 2019-06-24 13:51:15 +01:00
parent 53cf9e2182
commit 40401ccbd0
4 changed files with 5 additions and 6 deletions

View File

@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
if notTest $@
then
foamRunTutorials
foamRunTutorials -skipFirst
else
echo "--- Skipping testing of tutorials in : $PWD" 1>&2
fi

View File

@ -5,4 +5,4 @@ cd ${0%/*} || exit 1 # run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase0
\rm -r results
\rm -rf results

View File

@ -21,7 +21,7 @@ runApplication blockMesh
for val in ${Models[@]}; do
echo "Running the case with the model: $val"
\cp 0/U.$val 0/U
\rm -r constant/boundaryData/inlet
\rm -rf constant/boundaryData/inlet
\cp -r constant/boundaryData/inlet.$val constant/boundaryData/inlet
runApplication pimpleFoam
gnuplot plot.patch

View File

@ -20,9 +20,9 @@ runApplication blockMesh
# Compute parallel and collect data
for val in ${Models[@]}; do
echo "Running the case with the model: $val"
\rm 0/U*
\rm -f 0/U*
\cp 0.orig/U.$val 0/U
\rm -r constant/boundaryData/inlet
\rm -rf constant/boundaryData/inlet
\cp -r constant/boundaryData/inlet.$val constant/boundaryData/inlet
runApplication decomposePar
runParallel pimpleFoam
@ -34,4 +34,3 @@ for val in ${Models[@]}; do
cleanTimeDirectories
\rm -rf processor* > /dev/null 2>&1
done