mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Creation of OpenFOAM-dev repository 15/04/2008
This commit is contained in:
30
tutorials/XiFoam/Allrun
Executable file
30
tutorials/XiFoam/Allrun
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
currDir=`pwd`
|
||||
application=`basename $currDir`
|
||||
cases="moriyoshiHomogeneous moriyoshiHomogeneousPart2"
|
||||
|
||||
tutorialPath=`dirname $0`/..
|
||||
. $tutorialPath/RunFunctions
|
||||
|
||||
setControlDict () {
|
||||
controlDict="$case/system/controlDict"
|
||||
sed \
|
||||
-e s/"\(deltaT[ \t]*\) 5e-06;"/"\1 1e-05;"/g \
|
||||
-e s/"\(endTime[ \t]*\) 0.005;"/"\1 0.015;"/g \
|
||||
-e s/"\(writeInterval[ \t]*\) 10;"/"\1 50;"/g \
|
||||
$controlDict > temp.$$
|
||||
mv temp.$$ $controlDict
|
||||
}
|
||||
|
||||
for case in $cases
|
||||
do
|
||||
if [ "$case" = "moriyoshiHomogeneousPart2" ] ; then
|
||||
cloneCase moriyoshiHomogeneous $case
|
||||
cp -r moriyoshiHomogeneous/0.005 $case
|
||||
setControlDict
|
||||
else
|
||||
runApplication blockMesh $case
|
||||
fi
|
||||
runApplication $application $case
|
||||
done
|
||||
Reference in New Issue
Block a user