initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / tutorials / multiphase / cavitatingFoam / les / Allrun
blobc6b98bda754e16c0a63cee7214e4ce817626bab1
1 #!/bin/sh
3 # Source tutorial run functions
4 . $WM_PROJECT_DIR/bin/tools/RunFunctions
6 # Set application name
7 application="cavitatingFoam"
9 refineMeshByCellSet()
11 while [ $# -ge 1 ]
13 echo "creating cell set for primary zone - $1"
14 cp system/cellSetDict.$1 system/cellSetDict
15 cellSet > log.cellSet.$1 2>&1
17 echo "refining primary zone - $1"
18 refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
19 shift
20 done
23 cd throttle
24 runApplication blockMesh
25 refineMeshByCellSet 1 2 3
26 runApplication $application
27 cd ..
29 cd throttle3D
30 cp -r 0.org 0
32 runApplication blockMesh
33 refineMeshByCellSet 1 2 3
35 echo "mapping fields from 2D throttle case"
36 mapFields ../throttle -sourceTime latestTime >& log.mapFields
38 runApplication decomposePar
39 runParallel $application 4
40 runApplication reconstructPar
41 cd ..