Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / tutorials / multiphase / cavitatingFoam / les / throttle3D / Allrun
blob213a2a5ecf094bfac092971663a6d716f15d619c
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 # Set application name
8 application=`getApplication`
10 refineMeshByCellSet()
12 while [ $# -ge 1 ]
14 if [ ! -e log.refineMesh.$1 ]
15 then
16 echo "creating cell set for primary zone - $1"
17 cp system/topoSetDict.$1 system/topoSetDict
18 topoSet > log.topoSet.$1 2>&1
20 echo "refining primary zone - $1"
21 refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
23 shift
24 done
27 cp -r 0.org 0
29 runApplication blockMesh
30 refineMeshByCellSet 1 2 3
32 echo "mapping fields from 2D throttle case"
33 runApplication mapFields ../throttle -sourceTime latestTime
35 runApplication decomposePar
36 runParallel $application 4
37 runApplication reconstructPar
39 # ----------------------------------------------------------------- end-of-file