Upgrade case file headers
[foam-extend-3.2.git] / tutorials / combustion / XiFoam / ras / Allrun
blob0c311946f1dfca601f372ab539d30cbf123f6316
1 #!/bin/sh
2 # Source tutorial run functions
3 . $WM_PROJECT_DIR/bin/tools/RunFunctions
5 # Set application name
6 application="XiFoam"
8 setControlDict () {
9 controlDict="system/controlDict"
10 sed \
11 -e s/"\(deltaT[ \t]*\) 5e-06;"/"\1 1e-05;"/g \
12 -e s/"\(endTime[ \t]*\) 0.005;"/"\1 0.015;"/g \
13 -e s/"\(writeInterval[ \t]*\) 10;"/"\1 50;"/g \
14 $controlDict > temp.$$
15 mv temp.$$ $controlDict
18 # Do moriyoshiHomogeneous
19 (cd moriyoshiHomogeneous && foamRunTutorials)
21 # Clone case
22 cloneCase moriyoshiHomogeneous moriyoshiHomogeneousPart2
24 # Modify and execute
25 cd moriyoshiHomogeneousPart2
26 cp -r ../moriyoshiHomogeneous/0.005 .
27 setControlDict
28 runApplication $application
29 cd ..