TUT: script cleanup, provide cleanCase0 for commonly used operation

This commit is contained in:
Mark Olesen
2017-10-12 19:20:56 +02:00
parent e16121af68
commit c792a9d7df
460 changed files with 1280 additions and 2126 deletions

View File

@ -15,4 +15,4 @@ fi
wmake wmake
# ----------------------------------------------------------------- end-of-file #------------------------------------------------------------------------------

View File

@ -30,9 +30,7 @@
# and all its subdirectories. # and all its subdirectories.
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
thisScript=$0 thisScript=$0
if [ "/${thisScript#/}" != "$thisScript" ] if [ "/${thisScript#/}" != "$thisScript" ]

View File

@ -30,19 +30,18 @@
# and all its subdirectories. # and all its subdirectories.
# #
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Normally use standard "make" # Normally use standard "make"
make="make" make="make"
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
thisScript=$0 thisScript=$0
if [ "/${thisScript#/}" != "$thisScript" ] if [ "/${thisScript#/}" != "$thisScript" ]
then then
thisScript="$PWD/$thisScript" thisScript="$PWD/$thisScript"
fi fi
unset passArgs runTests
skipFirst=false skipFirst=false
# Parse options # Parse options
@ -52,16 +51,15 @@ do
-t | -test) -t | -test)
passArgs="-test" passArgs="-test"
runTests=true runTests=true
shift
;; ;;
-s | -skipFirst) -s | -skipFirst)
skipFirst=true skipFirst=true
shift
;; ;;
*) *)
break break
;; ;;
esac esac
shift
done done
# If an argument is supplied do not execute ./Allrun to avoid recursion # If an argument is supplied do not execute ./Allrun to avoid recursion

View File

@ -31,7 +31,7 @@
cleanTimeDirectories() cleanTimeDirectories()
{ {
echo "Cleaning $PWD case" echo "Cleaning case $PWD"
zeros="" zeros=""
while [ ${#zeros} -lt 8 ] while [ ${#zeros} -lt 8 ]
do do
@ -105,15 +105,13 @@ cleanCase()
cleanSnappyFiles cleanSnappyFiles
rm -f 0/cellDist > /dev/null 2>&1 rm -f 0/cellDist > /dev/null 2>&1
if [ -d constant ] (
then cd constant 2>/dev/null && \
(cd constant && \
rm -rf \ rm -rf \
cellDecomposition cellToRegion cellLevel* pointLevel* \ cellDecomposition cellToRegion cellLevel* pointLevel* \
polyMesh tetDualMesh \ polyMesh tetDualMesh \
> /dev/null 2>&1 \ > /dev/null 2>&1 \
) )
fi
if [ -e system/blockMeshDict.m4 ] if [ -e system/blockMeshDict.m4 ]
then then
@ -122,9 +120,17 @@ cleanCase()
} }
# Frequently used - cleanCase and rm -rf 0/
cleanCase0()
{
cleanCase
rm -rf 0
}
removeCase() removeCase()
{ {
echo "Removing ${1:-unknown} case" echo "Removing case ${1:-unknown}"
[ "$#" -ge 1 ] && rm -rf "$1" [ "$#" -ge 1 ] && rm -rf "$1"
} }
@ -143,7 +149,7 @@ cleanUcomponents()
cleanApplication() cleanApplication()
{ {
echo "Cleaning $PWD application" echo "Cleaning application $PWD"
wclean wclean
} }

View File

@ -3,7 +3,7 @@
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration | # \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation # \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
# \\/ M anipulation | Copyright (C) 2015-2016 OpenCFD Ltd. # \\/ M anipulation | Copyright (C) 2015-2017 OpenCFD Ltd.
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# License # License
# This file is part of OpenFOAM. # This file is part of OpenFOAM.
@ -43,6 +43,7 @@ isParallel()
return 1 return 1
} }
# #
# Look for '-test' in the argument list. # Look for '-test' in the argument list.
# #
@ -52,6 +53,7 @@ isTest()
return 1 return 1
} }
# #
# Extract 'numberOfSubdomains' from system/decomposeParDict # Extract 'numberOfSubdomains' from system/decomposeParDict
# (or alternative location). # (or alternative location).
@ -100,120 +102,139 @@ getApplication()
fi fi
} }
#
# Run given application in serial with logfile output.
# The preexistence of the log file prevents rerunning.
#
runApplication() runApplication()
{ {
APP_RUN= local appRun logFile logMode
LOG_IGNORE=false
LOG_APPEND=false
LOG_SUFFIX=
# Parse options and executable # Any additional parsed arguments (eg, decomposeParDict)
while [ $# -gt 0 ] && [ -z "$APP_RUN" ]; do local appArgs
key="$1"
case "$key" in # Parse options until executable is encountered
-append|-a) while [ $# -gt 0 -a -z "$appRun" ]
LOG_IGNORE=true do
LOG_APPEND=true case "$1" in
-a | -append)
logMode=append
;; ;;
-overwrite|-o) -o | -overwrite)
LOG_IGNORE=true logMode=overwrite
;; ;;
-suffix|-s) -s | -suffix)
LOG_SUFFIX=".$2" logFile=".$2"
shift shift
;; ;;
-decomposeParDict)
appArgs="$appArgs $1 $2"
shift
;;
'')
;;
*) *)
APP_RUN="$key" appRun="$1"
APP_NAME="${key##*/}"
LOG_SUFFIX="${APP_NAME}${LOG_SUFFIX}"
;; ;;
esac esac
shift shift
done done
if [ -f log.$LOG_SUFFIX ] && [ "$LOG_IGNORE" = "false" ] local appName="${appRun##*/}"
logFile="log.$appName$logFile"
if [ -f "$logFile" -a -z "$logMode" ]
then then
echo "$APP_NAME already run on $PWD:" \ echo "$appName already run on $PWD:" \
"remove log file 'log.$LOG_SUFFIX' to re-run" "remove log file '$logFile' to re-run"
else else
echo "Running $APP_RUN on $PWD" echo "Running $appRun on $PWD"
if [ "$LOG_APPEND" = "true" ]; then if [ "$logMode" = append ]
$APP_RUN "$@" >> log.$LOG_SUFFIX 2>&1 then
$appRun $appArgs "$@" >> $logFile 2>&1
else else
$APP_RUN "$@" > log.$LOG_SUFFIX 2>&1 $appRun $appArgs "$@" > $logFile 2>&1
fi fi
fi fi
} }
#
# Run given application in parallel with logfile output.
# The preexistence of the log file prevents rerunning.
#
runParallel() runParallel()
{ {
APP_RUN= local appRun logFile logMode nProcs
LOG_IGNORE=false
LOG_APPEND=false
LOG_SUFFIX=
# Store any parsed additional arguments e.g. decomposeParDict # Any additional parsed arguments (eg, decomposeParDict)
APP_PARARGS= local appArgs="-parallel"
# Initialise number of procs to unset value # Parse options until executable is encountered
nProcs=-1 while [ $# -gt 0 -a -z "$appRun" ]
do
# Parse options and executable case "$1" in
while [ $# -gt 0 ] && [ -z "$APP_RUN" ]; do -a | -append)
key="$1" logMode=append
case "$key" in
-append|-a)
LOG_IGNORE=true
LOG_APPEND=true
;; ;;
-overwrite|-o) -o | -overwrite)
LOG_IGNORE=true logMode=overwrite
;; ;;
-suffix|-s) -s | -suffix)
LOG_SUFFIX=".$2" logFile=".$2"
shift shift
;; ;;
-np|-n) -n | -np)
nProcs="$2" nProcs="$2"
shift shift
;; ;;
-decomposeParDict) -decomposeParDict)
appArgs="$appArgs $1 $2"
nProcs=$(getNumberOfProcessors "$2") nProcs=$(getNumberOfProcessors "$2")
APP_PARARGS="$APP_PARARGS -decomposeParDict $2"
shift shift
;; ;;
'')
;;
*) *)
APP_RUN="$key" appRun="$1"
APP_NAME="${key##*/}"
LOG_SUFFIX="${APP_NAME}${LOG_SUFFIX}"
;; ;;
esac esac
shift shift
done done
[ "$nProcs" -eq -1 ] && nProcs=$(getNumberOfProcessors system/decomposeParDict) [ -n "$nProcs" ] || nProcs=$(getNumberOfProcessors system/decomposeParDict)
if [ -f log.$LOG_SUFFIX ] && [ "$LOG_IGNORE" = "false" ] local appName="${appRun##*/}"
logFile="log.$appName$logFile"
if [ -f "$logFile" -a -z "$logMode" ]
then then
echo "$APP_NAME already run on $PWD:" \ echo "$appName already run on $PWD:" \
"remove log file 'log.$LOG_SUFFIX' to re-run" "remove log file '$logFile' to re-run"
else else
echo "Running $APP_RUN in parallel on $PWD using $nProcs processes" echo "Running $appRun ($nProcs processes) on $PWD "
if [ "$LOG_APPEND" = "true" ]; then if [ "$logMode" = append ]
( mpirun -np $nProcs $APP_RUN $APP_PARARGS -parallel "$@" < /dev/null >> log.$LOG_SUFFIX 2>&1 ) then
(
mpirun -np $nProcs $appRun $appArgs "$@" </dev/null >> $logFile 2>&1
)
else else
( mpirun -np $nProcs $APP_RUN $APP_PARARGS -parallel "$@" < /dev/null > log.$LOG_SUFFIX 2>&1 ) (
mpirun -np $nProcs $appRun $appArgs "$@" </dev/null > $logFile 2>&1
)
fi fi
fi fi
} }
compileApplication() compileApplication()
{ {
echo "Compiling $1 application" echo "Compiling $1 application"
wmake $1 wmake $1
} }
# #
# cloneCase srcDir dstDir # cloneCase srcDir dstDir
# #
@ -249,6 +270,7 @@ cloneCase()
return 0 return 0
} }
# #
# cloneParallelCase srcDir dstDir [...times] # cloneParallelCase srcDir dstDir [...times]
# #
@ -312,6 +334,7 @@ cloneParallelCase()
return 0 return 0
} }
# Overwrite 0/ with the contents of 0.orig/ if it exists. # Overwrite 0/ with the contents of 0.orig/ if it exists.
# The -processor option to do the processor directories instead # The -processor option to do the processor directories instead
# #
@ -338,4 +361,5 @@ restore0Dir()
fi fi
} }
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -8,4 +8,4 @@ wmake $targetType snappyHexMesh
wmake $targetType blockMesh wmake $targetType blockMesh
wmake $targetType extrudeModel wmake $targetType extrudeModel
# ----------------------------------------------------------------- end-of-file #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase
rm -f 0/enstrophy rm -f 0/enstrophy

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication boxTurb runApplication boxTurb

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Reset the controlDict # Reset the controlDict
if [ -f system/controlDict.orig ] if [ -f system/controlDict.orig ]

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase
rm -rf Fieldview > /dev/null 2>&1 rm -rf Fieldview > /dev/null 2>&1

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runAnsysToFoam() runAnsysToFoam()
{ {

View File

@ -1,11 +1,10 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions . $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase0
cleanCase
rm -f constant/polyMesh/boundary rm -f constant/polyMesh/boundary
rm -f constant/polyMesh/zoneID rm -f constant/polyMesh/zoneID
rm -rf 0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
./Allrun.pre ./Allrun.pre

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions . $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
runApplication blockMesh runApplication blockMesh

View File

@ -1,10 +1,7 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
restore0Dir restore0Dir
runApplication blockMesh runApplication blockMesh

View File

@ -1,10 +1,7 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
restore0Dir restore0Dir
runApplication blockMesh runApplication blockMesh

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -rf VTK rm -rf VTK

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
restore0Dir restore0Dir
runApplication blockMesh runApplication blockMesh

View File

@ -1,10 +1,7 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
./Allrun.mesh ./Allrun.mesh

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh

View File

@ -1,19 +1,13 @@
#!/bin/sh #!/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
keepCases="moriyoshiHomogeneous" keepCases="moriyoshiHomogeneous"
loseCases="moriyoshiHomogeneousPart2 moriyoshiHomogeneousHydrogen" loseCases="moriyoshiHomogeneousPart2 moriyoshiHomogeneousHydrogen"
for caseName in $keepCases for caseName in $keepCases
do do
( ( cd $caseName && foamCleanTutorials )
cd $caseName || exit
foamCleanTutorials
)
done done
for caseName in $loseCases for caseName in $loseCases

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
setControlDict() setControlDict()
{ {

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -rf chemFoam.out constant/reactions constant/thermo \ rm -rf chemFoam.out constant/reactions constant/thermo \
validation/OF_vs_CHEMKINII.eps validation/chemkinII validation/OF_vs_CHEMKINII.eps validation/chemkinII

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication chemkinToFoam \ runApplication chemkinToFoam \

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -rf chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII rm -rf chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication $(getApplication) runApplication $(getApplication)

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -rf chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII rm -rf chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication $(getApplication) runApplication $(getApplication)

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -rf chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII rm -rf chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication $(getApplication) runApplication $(getApplication)

View File

@ -21,4 +21,4 @@ gnuplot<<EOF
"chemkinII" with lines title "Chemkin II" lt -1 "chemkinII" with lines title "Chemkin II" lt -1
EOF EOF
# ----------------------------------------------------------------------------- #------------------------------------------------------------------------------

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -rf chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII rm -rf chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication $(getApplication) runApplication $(getApplication)

View File

@ -1,13 +1,10 @@
#!/bin/sh #!/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
mv ./-180 temp180 mv ./-180 temp180
cleanCase cleanCase0
rm -rf 0
mv temp180 ./-180 mv temp180 ./-180

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication kivaToFoam -file otape17 runApplication kivaToFoam -file otape17
runApplication $(getApplication) runApplication $(getApplication)

View File

@ -1,11 +1,9 @@
#!/bin/sh #!/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 cleanCase
rm -rf constant/panelRegion/polyMesh rm -rf constant/panelRegion/polyMesh
rm -f constant/polyMesh/boundary rm -f constant/polyMesh/boundary
rm -f validation/*.eps rm -f validation/*.eps
# ----------------------------------------------------------------------------- #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# create the blockMesh file with the parametric one # create the blockMesh file with the parametric one
m4 system/blockMeshDict.m4 > system/blockMeshDict m4 system/blockMeshDict.m4 > system/blockMeshDict
@ -25,4 +23,4 @@ paraFoam -touch -region panelRegion
(cd validation && ./createGraphs) (cd validation && ./createGraphs)
# ----------------------------------------------------------------------------- #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# create the underlying block mesh # create the underlying block mesh
runApplication blockMesh runApplication blockMesh

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh

View File

@ -1,10 +1,8 @@
#!/bin/sh #!/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 cleanCase
rm -rf constant/panelRegion/polyMesh rm -rf constant/panelRegion/polyMesh
# ----------------------------------------------------------------------------- #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication topoSet runApplication topoSet
@ -11,4 +9,4 @@ runApplication $(getApplication)
paraFoam -touchAll paraFoam -touchAll
# ----------------------------------------------------------------------------- #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication topoSet runApplication topoSet

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication topoSet runApplication topoSet

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Application name # Application name
application=$(getApplication) application=$(getApplication)

View File

@ -1,11 +1,7 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Application name # Application name
application=$(getApplication) application=$(getApplication)

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase
cleanSamples cleanSamples

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
cleanSamples cleanSamples
rm -rf 0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
restore0Dir restore0Dir
runApplication blockMesh runApplication blockMesh

View File

@ -1,9 +1,7 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
\rm -rf 0
#------------------------------------------------------------------------------

View File

@ -1,11 +1,11 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
restore0Dir restore0Dir
runApplication blockMesh runApplication blockMesh
runApplication -s preProcess $(getApplication) -postProcess -dict system/preProcess runApplication -s preProcess $(getApplication) -postProcess -dict system/preProcess
runApplication decomposePar runApplication decomposePar
runParallel $(getApplication) runParallel $(getApplication)
#------------------------------------------------------------------------------

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1 rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication surfaceFeatureExtract runApplication surfaceFeatureExtract

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
m4 system/blockMeshDict.m4 > system/blockMeshDict m4 system/blockMeshDict.m4 > system/blockMeshDict

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
m4 system/blockMeshDict.m4 > system/blockMeshDict m4 system/blockMeshDict.m4 > system/blockMeshDict

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
./makeMesh ./makeMesh
runApplication $(getApplication) runApplication $(getApplication)

View File

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
m4 < system/blockMeshDict.m4 > system/blockMeshDict m4 < system/blockMeshDict.m4 > system/blockMeshDict
runApplication blockMesh runApplication blockMesh
#------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Run function links the appropriate mesh files and clones the case # Run function links the appropriate mesh files and clones the case

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication $(getApplication) runApplication $(getApplication)

View File

@ -1,12 +1,10 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
# Remove copies of common files # Remove copies of common files
\rm -rf 0 constant \rm -rf constant
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
echo "Use common files for 0/, constant/ and blockMeshDict" echo "Use common files for 0/, constant/ and blockMeshDict"
\rm -rf 0 constant \rm -rf 0 constant

View File

@ -1,12 +1,10 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
# Remove copies of common files # Remove copies of common files
\rm -rf 0 constant \rm -rf constant
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
echo "Use common files for 0/, constant/ and blockMeshDict" echo "Use common files for 0/, constant/ and blockMeshDict"
\rm -rf 0 constant \rm -rf 0 constant

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
m4 system/blockMeshDict.m4 > system/blockMeshDict m4 system/blockMeshDict.m4 > system/blockMeshDict

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
rm -rf 0
rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1 rm -f constant/triSurface/*.eMesh* > /dev/null 2>&1
rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1 rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
./Allrun.mesh ./Allrun.mesh

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication surfaceFeatureExtract runApplication surfaceFeatureExtract

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Convert mesh from resources directory # Convert mesh from resources directory
runApplication star4ToFoam -scale 1 \ runApplication star4ToFoam -scale 1 \

View File

@ -1,11 +1,8 @@
#!/bin/sh #!/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 cleanCase0
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cleanCase
cleanSamples cleanSamples
rm -rf 0
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
restore0Dir restore0Dir
runApplication blockMesh runApplication blockMesh

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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
removeCase decompressionTankFine removeCase decompressionTankFine
foamCleanTutorials cases foamCleanTutorials cases

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
setDecompressionTankFine() setDecompressionTankFine()
{ {

View File

@ -1,10 +1,9 @@
#!/bin/sh #!/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 cleanCase
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1 rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication dsmcInitialise runApplication dsmcInitialise

View File

@ -1,10 +1,9 @@
#!/bin/sh #!/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 cleanCase
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1 rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication dsmcInitialise runApplication dsmcInitialise

View File

@ -1,10 +1,9 @@
#!/bin/sh #!/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 cleanCase
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1 rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication decomposePar runApplication decomposePar

View File

@ -1,10 +1,9 @@
#!/bin/sh #!/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 cleanCase
rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1 rm -rf 0/lagrangian 0/dsmcSigmaTcRMax 0/uniform > /dev/null 2>&1
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication decomposePar runApplication decomposePar

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication mdInitialise runApplication mdInitialise

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication mdInitialise runApplication mdInitialise

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/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 cleanCase
rm -rf processor[0-9] rm -rf processor[0-9]

View File

@ -1,8 +1,6 @@
#!/bin/sh #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh runApplication blockMesh
runApplication decomposePar runApplication decomposePar

Some files were not shown because too many files have changed in this diff Show More