Skip to content
Snippets Groups Projects
Commit 40401ccb authored by Andrew Heather's avatar Andrew Heather
Browse files

TUT: tutorial script updates

parent 53cf9e21
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory ...@@ -4,7 +4,7 @@ cd ${0%/*} || exit 1 # Run from this directory
if notTest $@ if notTest $@
then then
foamRunTutorials foamRunTutorials -skipFirst
else else
echo "--- Skipping testing of tutorials in : $PWD" 1>&2 echo "--- Skipping testing of tutorials in : $PWD" 1>&2
fi fi
......
...@@ -5,4 +5,4 @@ cd ${0%/*} || exit 1 # run from this directory ...@@ -5,4 +5,4 @@ cd ${0%/*} || exit 1 # run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions . $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase0 cleanCase0
\rm -r results \rm -rf results
...@@ -21,7 +21,7 @@ runApplication blockMesh ...@@ -21,7 +21,7 @@ runApplication blockMesh
for val in ${Models[@]}; do for val in ${Models[@]}; do
echo "Running the case with the model: $val" echo "Running the case with the model: $val"
\cp 0/U.$val 0/U \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 \cp -r constant/boundaryData/inlet.$val constant/boundaryData/inlet
runApplication pimpleFoam runApplication pimpleFoam
gnuplot plot.patch gnuplot plot.patch
......
...@@ -20,9 +20,9 @@ runApplication blockMesh ...@@ -20,9 +20,9 @@ runApplication blockMesh
# Compute parallel and collect data # Compute parallel and collect data
for val in ${Models[@]}; do for val in ${Models[@]}; do
echo "Running the case with the model: $val" echo "Running the case with the model: $val"
\rm 0/U* \rm -f 0/U*
\cp 0.orig/U.$val 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 \cp -r constant/boundaryData/inlet.$val constant/boundaryData/inlet
runApplication decomposePar runApplication decomposePar
runParallel pimpleFoam runParallel pimpleFoam
...@@ -34,4 +34,3 @@ for val in ${Models[@]}; do ...@@ -34,4 +34,3 @@ for val in ${Models[@]}; do
cleanTimeDirectories cleanTimeDirectories
\rm -rf processor* > /dev/null 2>&1 \rm -rf processor* > /dev/null 2>&1
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment