tweaked tutorial run scripts, avoid some bashisms

This commit is contained in:
Mark Olesen
2008-10-08 08:39:16 +02:00
parent 28696e51ab
commit ab5c014a69
9 changed files with 40 additions and 43 deletions

View File

@ -7,20 +7,19 @@ application="rasCavitatingFoam"
refineMeshByCellSet()
{
echo "creating cell set for primary zone - $1"
cp system/cellSetDict.$1 system/cellSetDict
cellSet >& log.cellSet.$1
while [ $# -ge 1 ]
do
echo "creating cell set for primary zone - $1"
cp system/cellSetDict.$1 system/cellSetDict
cellSet > log.cellSet.$1 2>&1
echo "refining primary zone - $1"
refineMesh -dict -overwrite >& log.refineMesh.$1
echo "refining primary zone - $1"
refineMesh -dict -overwrite > log.refineMesh.$1 2>&1
shift
done
}
runApplication blockMesh
refineMeshByCellSet 1
refineMeshByCellSet 2
refineMeshByCellSet 3
refineMeshByCellSet 1 2 3
runApplication $application