Transferred copyright to the OpenFOAM Foundation
[OpenFOAM-2.0.x.git] / tutorials / combustion / XiFoam / ras / Allrun
blob352a424e97fc57620dfdbefe6006b5b697d900af
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 setControlDict()
9 controlDict="system/controlDict"
11 sed \
12 -e s/"\(deltaT[ \t]*\) 5e-06;"/"\1 1e-05;"/g \
13 -e s/"\(endTime[ \t]*\) 0.005;"/"\1 0.015;"/g \
14 -e s/"\(writeInterval[ \t]*\) 10;"/"\1 50;"/g \
15 $controlDict > temp.$$
16 mv temp.$$ $controlDict
20 # Do moriyoshiHomogeneous
21 ( cd moriyoshiHomogeneous && foamRunTutorials )
23 # Clone case
24 cloneCase moriyoshiHomogeneous moriyoshiHomogeneousPart2
26 # Modify and execute
28 cd moriyoshiHomogeneousPart2 || exit
30 cp -r ../moriyoshiHomogeneous/0.005 .
31 setControlDict
32 runApplication `getApplication`
35 # ----------------------------------------------------------------- end-of-file