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,12 +1,11 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase0
cleanCase
rm -f constant/polyMesh/boundary
rm -f constant/polyMesh/zoneID
rm -f constant/cellInterpolationWeight
rm -rf 0
#------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
./Allrun.pre

View File

@ -1,28 +1,27 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $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 -s 1 topoSet -dict ./system/topoSetDictRefine
#runApplication -s 1 refineMesh -overwrite -dict ./system/refineMeshDict
runApplication -s 1 topoSet -dict ./system/topoSetDictRefine
runApplication -s 1 refineMesh -overwrite -dict ./system/refineMeshDict
runApplication -s 2 topoSet -dict ./system/topoSetDictRefine
runApplication -s 2 refineMesh -overwrite -dict ./system/refineMeshDict
# Select cellSets
runApplication -s 3 topoSet -dict ./system/topoSetDictHull
#runApplication -s 1 topoSet -dict system/topoSetDictRefine
#runApplication -s 1 refineMesh -overwrite -dict system/refineMeshDict
runApplication -s 1 topoSet -dict system/topoSetDictRefine
runApplication -s 1 refineMesh -overwrite -dict system/refineMeshDict
runApplication -s 2 topoSet -dict system/topoSetDictRefine
runApplication -s 2 refineMesh -overwrite -dict system/refineMeshDict
# Select cellSets
runApplication -s 3 topoSet -dict system/topoSetDictHull
runApplication -s 3 subsetMesh keepBox -patch hullWall -overwrite
# Select cellSets
runApplication -s 4 topoSet -dict ./system/topoSetDictPropeller
runApplication -s 4 topoSet -dict system/topoSetDictPropeller
runApplication -s 4 subsetMesh keepBox -patch propellerWall -overwrite
# Select cellSets
runApplication -s 5 topoSet -dict ./system/topoSetDictRudder
runApplication -s 5 topoSet -dict system/topoSetDictRudder
runApplication -s 5 subsetMesh keepBox -patch rudderWall -overwrite
restore0Dir
@ -31,7 +30,6 @@ restore0Dir
runApplication -s 1 setFields -dict system/setFieldsDict
runApplication -s 2 setFields -dict system/setFieldsDictWaterLevel
touch rbm.foam
#------------------------------------------------------------------------------