Creation of OpenFOAM-dev repository 15/04/2008

This commit is contained in:
OpenFOAM-admin
2008-04-15 18:56:58 +01:00
commit 3170c7c0c9
9896 changed files with 4016171 additions and 0 deletions

49
tutorials/interFoam/Allrun Executable file
View File

@ -0,0 +1,49 @@
#!/bin/sh
currDir=`pwd`
application=`basename $currDir`
cases="damBreak damBreakFine"
tutorialPath=`dirname $0`/..
. $tutorialPath/RunFunctions
setDamBreakFine ()
{
blockMeshDict="$case/constant/polyMesh/blockMeshDict"
controlDict="$case/system/controlDict"
sed \
-e s/"23 8"/"46 10"/g \
-e s/"19 8"/"40 10"/g \
-e s/"23 42\(.*\) 1 1)"/"46 76\1 2 1)"/g \
-e s/"4 42\(.*\) 1 1)"/"4 76\1 2 1)"/g \
-e s/"19 42\(.*\) 1 1)"/"40 76\1 2 1)"/g \
$blockMeshDict > temp.$$
mv temp.$$ $blockMeshDict
sed \
-e s/"\(deltaT[ \t]*\) 0.001;"/"\1 5e-04;"/g \
-e s/"\(endTime[ \t]*\) 1;"/"\1 0.4;"/g \
$controlDict > temp.$$
mv temp.$$ $controlDict
}
for case in $cases
do
if [ "$case" = "damBreakFine" ]
then
cloneCase damBreak $case
setDamBreakFine
cp damBreak/0/gamma.org $case/0/gamma
fi
runApplication blockMesh $case
runApplication setFields $case
if [ "$case" = "damBreakFine" ]
then
runApplication decomposePar $case
hostname > $case/system/machines
runParallel $application $case 4 $case/system/machines
runApplication reconstructPar $case
else
runApplication $application $case
fi
done