Merge branch 'master' of ssh://opencfd@repo.or.cz/srv/git/OpenFOAM-1.5.x
[OpenFOAM-1.5.x.git] / tutorials / sonicTurbFoam / Allrun
blobcb60b8cc068eab826bb581e62b57e7b578a553fb
1 #!/bin/sh
2 # Source tutorial run functions
3 . $WM_PROJECT_DIR/bin/tools/RunFunctions
5 # Get application name from directory
6 application=`basename $PWD`
8 runStarToFoam ()
10 if [ -f log.starToFoam ] ; then
11 echo "starToFoam already run on $PWD: remove log file to run"
12 else
13 echo "starToFoam: converting mesh $1"
14 starToFoam $1 > log.starToFoam 2>&1
18 # Do prism
19 (cd prism && foamRunTutorials)
21 # Special handling for nacaAirfoil
22 cd nacaAirfoil
23 runStarToFoam prostar/nacaAirfoil
24 mv constant/polyMesh/boundary temp
25 sed -e s/"\([\t ]*type[\t ]*\)symmetryPlane"/"\1empty"/g \
26 temp > constant/polyMesh/boundary
27 rm temp
28 runApplication $application
29 cd ..