coolingSphere, singleFluidCHT: Replaced text manipulations in Allclean with foamDictionary
This commit is contained in:
@ -4,9 +4,9 @@ cd "${0%/*}" || exit 1 # run from this directory
|
|||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"
|
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"
|
||||||
|
|
||||||
removeRegionDirs () {
|
removeRegionDirs ()
|
||||||
# HACK to get regionDirs from materialProperties
|
{
|
||||||
_regionDirs="$(grep -E "^[a-Z]" constant/materialProperties | tail -n +2)"
|
_regionDirs="$(foamDictionary -keywords constant/materialProperties)"
|
||||||
|
|
||||||
for d in system constant
|
for d in system constant
|
||||||
do
|
do
|
||||||
|
|||||||
@ -4,9 +4,9 @@ cd "${0%/*}" || exit 1 # Run from this directory
|
|||||||
# Source tutorial clean functions
|
# Source tutorial clean functions
|
||||||
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"
|
. "$WM_PROJECT_DIR/bin/tools/CleanFunctions"
|
||||||
|
|
||||||
removeRegionDirs () {
|
removeRegionDirs ()
|
||||||
# HACK to get regionDirs from materialProperties
|
{
|
||||||
_regionDirs="$(grep "^[a-zA-Z]" constant/materialProperties | tail -n +2)"
|
_regionDirs="$(foamDictionary -keywords constant/materialProperties)"
|
||||||
|
|
||||||
for _d in system constant
|
for _d in system constant
|
||||||
do
|
do
|
||||||
@ -16,14 +16,11 @@ removeRegionDirs () {
|
|||||||
[ -d "$_dir" ] && rm -rf "$_dir"
|
[ -d "$_dir" ] && rm -rf "$_dir"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
find . -name "region*" -type d | xargs rm -rf
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanCase
|
cleanCase
|
||||||
removeRegionDirs
|
removeRegionDirs
|
||||||
rm -rf 0 > /dev/null 2>&1
|
rm -rf 0 > /dev/null 2>&1
|
||||||
rm -rf constant/regionProperties > /dev/null 2>&1
|
rm -rf constant/regionProperties > /dev/null 2>&1
|
||||||
# rm -rf constant/extendedFeatureEdgeMesh > /dev/null 2>&1
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user