fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / tutorials / compressible / sonicLiquidFoam / Allrun
blob6d1d356b34507add807d1803fa0fd05ffda30394
1 #!/bin/sh
2 # Source tutorial run functions
3 . $WM_PROJECT_DIR/bin/tools/RunFunctions
5 # Set application name
6 application="sonicLiquidFoam"
8 setDecompressionTankFine ()
10 blockMeshDict="$1/constant/polyMesh/blockMeshDict"
11 controlDict="$1/system/controlDict"
12 sed \
13 -e s/"30 20"/"120 80"/g \
14 -e s/"30 5"/"120 20"/g \
15 -e s/"25 5"/"100 20"/g \
16 -e s/"30 95"/"120 380"/g \
17 $blockMeshDict > temp.$$
18 mv temp.$$ $blockMeshDict
19 sed \
20 -e s/"\(deltaT[ \t]*\) 5e-07;"/"\1 1e-07;"/g \
21 -e s/"\(endTime[ \t]*\) 0.00025;"/"\1 0.00015;"/g \
22 $controlDict > temp.$$
23 mv temp.$$ $controlDict
26 # Do decompressionTank
27 (cd decompressionTank && foamRunTutorials)
29 # Clone case
30 cloneCase decompressionTank decompressionTankFine
32 cd decompressionTankFine
33 # Modify case
34 setDecompressionTankFine .
35 # And execute
36 runApplication blockMesh
37 runApplication $application
38 cd ..