Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / tutorials / compressible / rhoCentralFoam / Allrun
blobd20d46fdd9b1cca90fae300cf18cf3192ce5ae79
1 #!/bin/sh
2 # Source tutorial run functions
3 . $WM_PROJECT_DIR/bin/tools/RunFunctions
5 # Get application name
6 application="rhoCentralFoam"
8 cases=" \
9 shockTube \
10 wedge15Ma5 \
11 obliqueShock \
12 forwardStep \
13 LadenburgJet60psi \
14 biconic25-55Run35 \
17 moveTimeMeshToConstant ()
19 DT=`foamInfoExec -times | tail -1`
20 if [ "$DT" != 0 ] ; then
21 mv ${DT}/polyMesh/* constant/polyMesh
22 rm -rf ${DT}
26 for case in $cases
28 (cd $case && runApplication blockMesh)
30 if [ "$case" = "shockTube" ] ; then
31 (cd $case && runApplication setFields)
34 if [ "$case" = "biconic25-55Run35" ] ; then
35 cd $case
37 wmake datToFoam
38 runApplication datToFoam grid256.dat
40 CONST="constant"
41 cat $CONST/pointsHeader $CONST/points.tmp > $CONST/polyMesh/points
42 runApplication collapseEdges "2e-07" 5
43 moveTimeMeshToConstant
45 echo "Changing patch type to wedge type in boundary file"
46 mv $CONST/polyMesh/boundary $CONST/polyMesh/boundary.bak
47 sed -f $CONST/wedgeScr $CONST/polyMesh/boundary.bak > $CONST/polyMesh/boundary
48 rm $CONST/polyMesh/boundary.bak
50 cd ..
53 (cd $case && runApplication $application)
54 done