Merge branch 'upstream/OpenFOAM' into master
[freefoam.git] / tutorials / multiphase / cavitatingFoam / les / Allrun.in
blob6d9887fd688ce0cebba543fdc40635dca696323d
1 #!/bin/sh
3 # Source tutorial run functions
4 . @FF_DATA_DIR@/shellFunctions/RunFunctions
6 # Alltest changes this to yes...
7 export FREEFOAM_TEST_MODE=no
8 if [ "$FREEFOAM_TEST_MODE" == "yes" ]; then
9 # Alltest changes this to the top test directory...
10 export FREEFOAM_CONFIG_DIR='${TEST_CONFIG_DIR}'
13 application="cavitatingFoam"
15 refineMeshByCellSet()
17 while [ $# -ge 1 ]
19 echo "creating cell set for primary zone - $1"
20 cp system/cellSetDict.$1 system/cellSetDict
21 runApplication -l log.cellSet.$1 cellSet
23 echo "refining primary zone - $1"
24 runApplication -l log.refineMesh.$1 refineMesh -dict -overwrite
25 shift
26 done
29 cd throttle
30 runApplication blockMesh
31 refineMeshByCellSet 1 2 3
32 runApplication $application
33 cd ..
35 cd throttle3D
36 cp -r 0.org 0
38 runApplication blockMesh
39 refineMeshByCellSet 1 2 3
41 echo "mapping fields from 2D throttle case"
42 runApplication mapFields ../throttle -sourceTime latestTime
44 runApplication decomposePar
45 runParallel $application 4
46 runApplication reconstructPar
47 cd ..