2 cd ${0%/*} ||
exit 1 # run from this directory
4 # Source tutorial run functions
5 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
7 setDecompressionTankFine
()
9 blockMeshDict
="constant/polyMesh/blockMeshDict"
10 controlDict
="system/controlDict"
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
21 -e s
/"\(deltaT[ \t]*\) 5e-07;"/"\1 1e-07;"/g \
22 -e s
/"\(endTime[ \t]*\) 0.00025;"/"\1 0.00015;"/g \
23 $controlDict > temp.$$
24 mv temp.$$
$controlDict
28 # Do decompressionTank
29 ( cd decompressionTank
&& foamRunTutorials
)
32 cloneCase decompressionTank decompressionTankFine
35 cd decompressionTankFine ||
exit
38 setDecompressionTankFine
41 runApplication blockMesh
42 runApplication
`getApplication`
45 # ----------------------------------------------------------------- end-of-file