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