TUT: tutorial script updates
This commit is contained in:
parent
53cf9e2182
commit
40401ccbd0
@ -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
|
|||||||
. $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
|
|||||||
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
|
|||||||
# 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
|
|||||||
cleanTimeDirectories
|
cleanTimeDirectories
|
||||||
\rm -rf processor* > /dev/null 2>&1
|
\rm -rf processor* > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user