mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: consistency in Allclean Allrun scripts
This commit is contained in:
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user