db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
29 lines
710 B
Bash
Executable file
29 lines
710 B
Bash
Executable file
#!/bin/sh
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Get application name from directory
|
|
application=`basename $PWD`
|
|
|
|
runStarToFoam ()
|
|
{
|
|
if [ -f log.starToFoam ] ; then
|
|
echo "starToFoam already run on $PWD: remove log file to run"
|
|
else
|
|
echo "starToFoam: converting mesh $1"
|
|
starToFoam $1 > log.starToFoam 2>&1
|
|
fi
|
|
}
|
|
|
|
# Do prism
|
|
(cd prism && foamRunTutorials)
|
|
|
|
# Special handling for nacaAirfoil
|
|
cd nacaAirfoil
|
|
runStarToFoam prostar/nacaAirfoil
|
|
mv constant/polyMesh/boundary temp
|
|
sed -e s/"\([\t ]*type[\t ]*\)symmetryPlane"/"\1empty"/g \
|
|
temp > constant/polyMesh/boundary
|
|
rm temp
|
|
runApplication $application
|
|
cd ..
|