2 cd ${0%/*} ||
exit 1 # run from this directory
4 # Source tutorial run functions
5 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
16 moveTimeMeshToConstant
()
18 DT
=`foamInfoExec -times | tail -1`
21 mv ${DT}/polyMesh
/* constant
/polyMesh
27 for caseName
in $cases
32 runApplication blockMesh
36 runApplication setFields
40 runApplication datToFoam grid256.dat
43 cat $CONST/pointsHeader
$CONST/points.tmp
> $CONST/polyMesh
/points
44 runApplication collapseEdges
"2e-07" 5
45 moveTimeMeshToConstant
47 echo "Changing patch type to wedge type in boundary file"
48 mv $CONST/polyMesh
/boundary
$CONST/polyMesh
/boundary.bak
49 sed -f $CONST/wedgeScr
$CONST/polyMesh
/boundary.bak
> $CONST/polyMesh
/boundary
50 rm $CONST/polyMesh
/boundary.bak
54 runApplication
`getApplication`
58 # ----------------------------------------------------------------- end-of-file