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:
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
application=`getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
cp 0/T.org 0/T
|
||||
\cp 0/T.org 0/T
|
||||
runApplication setFields
|
||||
runApplication $application
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
application=`getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
cp 0/T.org 0/T
|
||||
\cp 0/T.org 0/T
|
||||
runApplication setFields
|
||||
runApplication $application
|
||||
|
||||
|
||||
@ -5,6 +5,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
cp 0/T.org 0/T
|
||||
\cp 0/T.org 0/T
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -6,7 +6,7 @@ application=`getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
|
||||
cp -r 0.org 0
|
||||
restore0Dir
|
||||
|
||||
# Create 1D and 3D baffles
|
||||
runApplication createBaffles -overwrite
|
||||
|
||||
@ -21,7 +21,6 @@ rm log.topoSet
|
||||
runApplication topoSet -region cabin -dict system/topoSetDictRegister
|
||||
|
||||
# set the initial fields
|
||||
rm -rf 0
|
||||
cp -rf 0.org 0
|
||||
restore0Dir
|
||||
|
||||
runApplication $(getApplication)
|
||||
|
||||
@ -17,5 +17,4 @@ runApplication subsetMesh c0 -patch walls -overwrite
|
||||
runApplication splitMeshRegions -cellZones -overwrite
|
||||
|
||||
# set the initial fields
|
||||
rm -rf 0
|
||||
cp -rf 0.org 0
|
||||
restore0Dir
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
@ -25,5 +24,4 @@ rm -rf constant/air/polyMesh/sets
|
||||
paraFoam -touch -region porous
|
||||
paraFoam -touch -region air
|
||||
|
||||
|
||||
cp -rf 0.org 0
|
||||
restore0Dir
|
||||
|
||||
Reference in New Issue
Block a user