TUT: consistency in Allclean Allrun scripts

This commit is contained in:
Mark Olesen
2018-06-21 15:19:09 +02:00
parent 736d358782
commit 8717f9936e
44 changed files with 161 additions and 187 deletions

View File

@ -1,8 +1,7 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase
#------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
runApplication blockMesh
runApplication decomposePar

View File

@ -1,7 +1,9 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cd ${0%/*} || exit 1
cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
rm constant/triSurface/membrane-*.stl.gz 2> /dev/null
rm -rf 0 constant/triSurface/membrane-*.stl.gz && cleanCase
#------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh
cd ${0%/*} || exit 1 cd ${0%/*} || exit 1
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
cp \
$FOAM_TUTORIALS/resources/geometry/membrane-boundaries.stl.gz \
@ -13,8 +11,10 @@ runApplication blockMesh
runApplication snappyHexMesh -overwrite
runApplication createBaffles -overwrite
cp -r 0.orig 0
restore0Dir
runApplication setFields
runApplication reactingFoam
#------------------------------------------------------------------------------