2 # Source tutorial run functions
3 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
6 application
="sonicLiquidFoam"
8 setDecompressionTankFine
()
10 blockMeshDict
="$1/constant/polyMesh/blockMeshDict"
11 controlDict
="$1/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
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
)
30 cloneCase decompressionTank decompressionTankFine
32 cd decompressionTankFine
34 setDecompressionTankFine .
36 runApplication blockMesh
37 runApplication
$application