initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / tutorials / multiphase / interFoam / les / nozzleFlow2D / Allrun
blob655eb4c8874e3c19195c318867379af30162833f
1 #!/bin/sh
2 # Source tutorial run functions
3 . $WM_PROJECT_DIR/bin/tools/RunFunctions
5 # Get application name
6 application=`getApplication`
8 runRefineMesh ()
10 echo "Running refineMesh on $PWD"
11 refineMesh -dict > log.refineMesh 2>&1
14 runApplication blockMesh
16 i=1
17 if [ -f log.cellSet ] ; then
18 i=3
20 while [ "$i" -lt 3 ] ; do
21 if [ -f log.cellSet ] ; then
22 mv log.cellSet log.cellSet.1
24 cp system/cellSetDict.${i} system/cellSetDict
25 runApplication cellSet
26 runRefineMesh
27 cp -r 1e-08/polyMesh/* constant/polyMesh
28 rm -rf 1e-08
29 i=`expr $i + 1`
30 done
31 cp constant/polyMesh/boundary.org constant/polyMesh/boundary
33 runApplication $application