2 cd ${0%/*} ||
exit 1 # run from this directory
4 # Source tutorial run functions
5 .
$WM_PROJECT_DIR/bin
/tools
/RunFunctions
8 application
=`getApplication`
12 if [ -f log.star3ToFoam
-o -f log.starToFoam
]
14 echo "star3ToFoam already run on $PWD: remove log file to re-run"
16 echo "star3ToFoam: converting mesh $1"
17 star3ToFoam
$1 > log.star3ToFoam
2>&1
21 runStarToFoam prostar
/nacaAirfoil
22 mv constant
/polyMesh
/boundary temp
23 sed -e s
/"\([\t ]*type[\t ]*\)symmetryPlane"/"\1empty"/g \
24 temp
> constant
/polyMesh
/boundary
26 runApplication
$application
30 # ----------------------------------------------------------------- end-of-file