mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
FIX: provide restore0Dir function to fix issue #159
- makes it easier to ensure the correct behaviour, consistently
This commit is contained in:
@ -5,17 +5,14 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# copy propeller surface from resources directory
|
||||
cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
|
||||
\cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/
|
||||
|
||||
|
||||
# - meshing
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
runApplication surfaceFeatureExtract
|
||||
|
||||
runApplication snappyHexMesh -overwrite
|
||||
|
||||
runApplication renumberMesh -overwrite
|
||||
|
||||
# force removal of fields generated by snappy
|
||||
@ -27,7 +24,6 @@ runApplication renumberMesh -overwrite
|
||||
#runApplication setSet -batch createInletOutletSets.setSet
|
||||
runApplication topoSet -dict system/createInletOutletSets.topoSetDict
|
||||
|
||||
|
||||
# - create the inlet/outlet and AMI patches
|
||||
|
||||
runApplication createPatch -overwrite
|
||||
@ -39,4 +35,4 @@ runApplication createPatch -overwrite
|
||||
|
||||
# - apply the initial fields
|
||||
|
||||
cp -rf 0.org 0
|
||||
restore0Dir
|
||||
|
||||
Reference in New Issue
Block a user