initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / tutorials / lesCavitatingFoam / Allrun
blob33517002c0787a16cfdd6ccff70fd2621b7633c7
1 #!/bin/sh
3 # Source tutorial run functions
4 . $WM_PROJECT_DIR/bin/tools/RunFunctions
6 application="lesCavitatingFoam"
8 refineMeshByCellSet()
10 echo "creating cell set for primary zone - $1"
11 cp system/cellSetDict.$1 system/cellSetDict
12 cellSet >& log.cellSet.$1
14 echo "refining primary zone - $1"
15 refineMesh -dict -overwrite >& log.refineMesh.$1
18 cd throttle
19 runApplication blockMesh
21 refineMeshByCellSet 1
22 refineMeshByCellSet 2
23 refineMeshByCellSet 3
25 runApplication $application
26 cd ..
28 cd throttle3D
29 cp -r 0.org 0
31 runApplication blockMesh
33 refineMeshByCellSet 1
34 refineMeshByCellSet 2
35 refineMeshByCellSet 3
37 echo "mapping fields from 2D throttle case"
38 mapFields ../throttle -sourceTime latestTime >& log.mapFields
40 runApplication decomposePar
41 hostname > system/machines
42 runParallel $application 4 system/machines
43 runApplication reconstructPar
44 cd ..