mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: script cleanup, provide cleanCase0 for commonly used operation
This commit is contained in:
@ -1,11 +1,8 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
rm -rf 0 > /dev/null 2>&1
|
||||
cleanCase0
|
||||
|
||||
# Remove surface
|
||||
rm -f constant/triSurface/propellerTip.obj.gz > /dev/null 2>&1
|
||||
|
||||
@ -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
|
||||
|
||||
./Allrun.pre
|
||||
|
||||
|
||||
@ -1,13 +1,10 @@
|
||||
#!/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
|
||||
|
||||
# copy propeller surface from resources directory
|
||||
\cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
|
||||
|
||||
|
||||
# - meshing
|
||||
|
||||
runApplication blockMesh
|
||||
@ -18,7 +15,6 @@ runApplication renumberMesh -overwrite
|
||||
# force removal of fields generated by snappy
|
||||
rm -rf 0
|
||||
|
||||
|
||||
# - generate face/cell sets and zones
|
||||
|
||||
#runApplication setSet -batch createInletOutletSets.setSet
|
||||
@ -28,11 +24,9 @@ runApplication topoSet -dict system/createInletOutletSets.topoSetDict
|
||||
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
|
||||
# - test by running moveDynamicMesh
|
||||
#runApplication moveDynamicMesh -checkAMI
|
||||
|
||||
|
||||
# - apply the initial fields
|
||||
|
||||
restore0Dir
|
||||
|
||||
Reference in New Issue
Block a user