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/solidMechanics/elasticContactSolidFoam/Allrun
2013-09-17 16:03:51 +01:00

29 lines
841 B
Bash
Executable file

#!/bin/sh
currDir=`pwd`
application=`basename $currDir`
cases="slidingBall"
tutorialPath=`dirname $0`/..
. $WM_PROJECT_DIR/bin/tools/RunFunctions
for case in $cases
do
(cd $case; runApplication blockMesh)
(cd $case; rm -rf constant/polyMesh/sets)
(cd $case; rm -rf constant/polyMesh/*Zones)
(cd $case; runApplication setSet -batch batch.setSet)
(cd $case; runApplication setsToZones -noFlipMap)
(cd $case; runApplication $application)
done
cases="sphereAndBrick"
for case in $cases
do
(cd $case; runApplication fluent3DMeshToFoam sphereAndBrickFine.msh)
(cd $case; rm -rf constant/polyMesh/sets)
(cd $case; rm -rf constant/polyMesh/*Zones)
(cd $case; runApplication setSet -batch batch.setSet)
(cd $case; runApplication setsToZones -noFlipMap)
(cd $case; runApplication $application)
done