Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / tutorials / multiphase / interFoam / les / nozzleFlow2D / Allrun
bloba66f56c1a7d5e33a012d58d0ae648d98715b26be
1 #!/bin/sh
2 cd ${0%/*} || exit 1 # run from this directory
4 # Source tutorial run functions
5 . $WM_PROJECT_DIR/bin/tools/RunFunctions
7 # Get application name
8 application=`getApplication`
10 runRefineMesh ()
12 echo "Running refineMesh on $PWD"
13 refineMesh -dict > log.refineMesh 2>&1
16 runApplication blockMesh
18 i=1
19 if [ -f log.topoSet ] ; then
20 i=3
22 while [ "$i" -lt 3 ] ; do
23 if [ -f log.topoSet ] ; then
24 mv log.topoSet log.topoSet.1
26 cp system/topoSetDict.${i} system/topoSetDict
27 runApplication topoSet
28 runRefineMesh
29 cp -r 1e-08/polyMesh/* constant/polyMesh
30 rm -rf 1e-08
31 i=`expr $i + 1`
32 done
33 cp constant/polyMesh/boundary.org constant/polyMesh/boundary
35 runApplication $application
37 # ----------------------------------------------------------------- end-of-file