initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / tutorials / multiphase / interFoam / ras / Allrun
blobc01559fc7760107018a2ad7d0d65f79866915e35
1 #!/bin/sh
2 # Source tutorial run functions
3 . $WM_PROJECT_DIR/bin/tools/RunFunctions
5 # Set application name
6 application="interFoam"
8 setDamBreakFine ()
10 blockMeshDict="constant/polyMesh/blockMeshDict"
11 controlDict="system/controlDict"
12 sed \
13 -e s/"23 8"/"46 10"/g \
14 -e s/"19 8"/"40 10"/g \
15 -e s/"23 42\(.*\) 1 1)"/"46 76\1 2 1)"/g \
16 -e s/"4 42\(.*\) 1 1)"/"4 76\1 2 1)"/g \
17 -e s/"19 42\(.*\) 1 1)"/"40 76\1 2 1)"/g \
18 $blockMeshDict > temp.$$
19 mv temp.$$ $blockMeshDict
20 sed \
21 -e s/"\(deltaT[ \t]*\) 0.001;"/"\1 5e-04;"/g \
22 -e s/"\(endTime[ \t]*\) 1;"/"\1 0.4;"/g \
23 $controlDict > temp.$$
24 mv temp.$$ $controlDict
27 # Do damBreak
28 (cd damBreak && foamRunTutorials)
30 # Clone case
31 cloneCase damBreak damBreakFine
33 cd damBreakFine
34 # Modify case
35 setDamBreakFine
36 cp ../damBreak/0/alpha1.org 0/alpha1
37 # And execute
38 runApplication blockMesh
39 runApplication setFields
40 runApplication decomposePar
41 runParallel $application 4
42 runApplication reconstructPar
43 cd ..