ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / tutorials / compressible / rhoCentralFoam / Allrun
blob322de821c0f33e3920f2ab3b602f4ee8580faa5f
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 cases=" \
8 shockTube \
9 wedge15Ma5 \
10 obliqueShock \
11 forwardStep \
12 LadenburgJet60psi \
13 biconic25-55Run35 \
16 moveTimeMeshToConstant()
18 DT=`foamInfoExec -times | tail -1`
19 if [ "$DT" != 0 ]
20 then
21 mv ${DT}/polyMesh/* constant/polyMesh
22 rm -rf ${DT}
27 for caseName in $cases
30 cd $caseName || exit
32 runApplication blockMesh
34 case "$caseName" in
35 shockTube)
36 runApplication setFields
39 biconic25-55Run35)
40 runApplication datToFoam grid256.dat
42 CONST="constant"
43 cat $CONST/pointsHeader $CONST/points.tmp > $CONST/polyMesh/points
44 runApplication collapseEdges "2e-07" 5
45 moveTimeMeshToConstant
47 echo "Changing patch type to wedge type in boundary file"
48 mv $CONST/polyMesh/boundary $CONST/polyMesh/boundary.bak
49 sed -f $CONST/wedgeScr $CONST/polyMesh/boundary.bak > $CONST/polyMesh/boundary
50 rm $CONST/polyMesh/boundary.bak
52 esac
54 runApplication `getApplication`
56 done
58 # ----------------------------------------------------------------- end-of-file