mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tutorials: Simplified the Allrun and Allclean scripts
This commit is contained in:
@ -1,30 +0,0 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
(
|
||||
cd periodicCubeArgon || exit
|
||||
|
||||
rm -rf 0/lagrangian 0/uniform
|
||||
rm -f Ar-Ar
|
||||
rm -f electrostatic
|
||||
rm -f constant/idList
|
||||
rm -rf constant/polyMesh/sets
|
||||
cleanCase
|
||||
)
|
||||
|
||||
|
||||
(
|
||||
cd periodicCubeWater || exit
|
||||
|
||||
rm -rf 0/lagrangian 0/uniform
|
||||
rm -f O-O
|
||||
rm -f electrostatic
|
||||
rm -f constant/idList
|
||||
rm -rf constant/polyMesh/sets
|
||||
cleanCase
|
||||
)
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -rf 0/lagrangian 0/uniform
|
||||
rm -f Ar-Ar
|
||||
rm -f electrostatic
|
||||
rm -f constant/idList
|
||||
rm -rf constant/polyMesh/sets
|
||||
cleanCase
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -1,18 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
for caseName in periodicCubeArgon periodicCubeWater
|
||||
do
|
||||
(
|
||||
cd $caseName || exit
|
||||
runApplication blockMesh
|
||||
runApplication mdInitialise
|
||||
runApplication `getApplication`
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication mdInitialise
|
||||
runApplication `getApplication`
|
||||
)
|
||||
done
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
rm -rf 0/lagrangian 0/uniform
|
||||
rm -f O-O
|
||||
rm -f electrostatic
|
||||
rm -f constant/idList
|
||||
rm -rf constant/polyMesh/sets
|
||||
cleanCase
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication mdInitialise
|
||||
runApplication `getApplication`
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
Reference in New Issue
Block a user