File size: 564 Bytes
5a600cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/bin/sh
cd "${0%/*}" || exit 1 # Run from this directory
# Source tutorial clean functions
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"
removeRegionDirs ()
{
_regionDirs="$(foamDictionary -keywords constant/materialProperties)"
for _d in system constant
do
for _r in $_regionDirs
do
_dir="${_d}/${_r}"
[ -d "$_dir" ] && rm -rf "$_dir"
done
done
}
cleanCase
removeRegionDirs
rm -rf 0
rm -f system/regionSolvers
#------------------------------------------------------------------------------
|