ENH: biconic25-55Run35: add overwrite flag to collapseEdges

This commit is contained in:
mattijs
2013-10-24 10:46:40 +01:00
parent 8712b8276e
commit a5e3f89b0e

View File

@ -4,15 +4,15 @@ cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
moveTimeMeshToConstant()
{
DT=`foamInfoExec -times | tail -1`
if [ "$DT" != 0 ]
then
mv ${DT}/polyMesh/* constant/polyMesh
rm -rf ${DT}
fi
}
#moveTimeMeshToConstant()
#{
# DT=`foamInfoExec -times | tail -1`
# if [ "$DT" != 0 ]
# then
# mv ${DT}/polyMesh/* constant/polyMesh
# rm -rf ${DT}
# fi
#}
runApplication blockMesh
@ -20,8 +20,8 @@ runApplication datToFoam grid256.dat
CONST="constant"
cat $CONST/pointsHeader $CONST/points.tmp > $CONST/polyMesh/points
runApplication collapseEdges
moveTimeMeshToConstant
runApplication collapseEdges -overwrite
#moveTimeMeshToConstant
echo "Changing patch type to wedge type in boundary file"
mv $CONST/polyMesh/boundary $CONST/polyMesh/boundary.bak