mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
33 lines
533 B
Bash
Executable File
33 lines
533 B
Bash
Executable File
#!/bin/sh
|
|
|
|
currDir=`pwd`
|
|
application=`basename $currDir`
|
|
|
|
# Find and source additional functions
|
|
tutorialPath=$PWD
|
|
while [ ! -f $tutorialPath/CleanFunctions ]
|
|
do
|
|
tutorialPath="$tutorialPath/.."
|
|
done
|
|
. $tutorialPath/CleanFunctions
|
|
|
|
|
|
keepCases="cavity cavityGrade cavityClipped elbow"
|
|
loseCases="cavityFine cavityHighRe"
|
|
|
|
|
|
for case in $keepCases
|
|
do
|
|
(cd $case && $tutorialPath/cleanAll)
|
|
|
|
if [ "$case" = "elbow" ]
|
|
then
|
|
rm -rf $case/fluentInterface
|
|
fi
|
|
done
|
|
|
|
for case in $loseCases
|
|
do
|
|
removeCase $case
|
|
done
|