This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/tutorials/multiphase/interFoam/les/nozzleFlow2D/Allrun

40 lines
827 B
Text
Raw Normal View History

#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application=`getApplication`
runRefineMesh ()
{
echo "Running refineMesh on $PWD"
refineMesh -dict > log.refineMesh 2>&1
}
runApplication blockMesh
i=1
if [ -f log.cellSet ] ; then
i=3
fi
while [ "$i" -lt 3 ] ; do
if [ -f log.cellSet ] ; then
mv log.cellSet log.cellSet.1
fi
cp system/cellSetDict.${i} system/cellSetDict
runApplication cellSet
runRefineMesh
2017-04-17 13:18:03 +00:00
if [ "$WM_OSTYPE" = "MSWindows" ]
then
cp -r 1e-008/polyMesh/* constant/polyMesh
rm -rf 1e-008
else
cp -r 1e-08/polyMesh/* constant/polyMesh
rm -rf 1e-08
fi
i=`expr $i + 1`
done
cp constant/polyMesh/boundary.org constant/polyMesh/boundary
runApplication $application