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/lesInterFoam/nozzleFlow2D/Allrun

33 lines
697 B
Bash
Executable file

#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name from directory
application="lesInterFoam"
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
cp -r 1e-08/polyMesh/* constant/polyMesh
rm -rf 1e-08
i=`expr $i + 1`
done
cp constant/polyMesh/boundary.org constant/polyMesh/boundary
runApplication $application