#!/bin/sh cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions # copy flange surface from resources folder cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/ # Create tight-fitting background mesh runApplication blockMesh runApplication foamyHexMesh # Change collapseEdges to only do one iteration cp system/collapseDict system/collapseDict.org sed -e s/"\(maximumIterations[ \t]*\)\([0-9]*\);"/"\1 1;"/g \ system/collapseDict.org > system/collapseDict runApplication collapseEdges -latestTime -collapseFaces # ----------------------------------------------------------------- end-of-file