db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
28 lines
723 B
Bash
Executable file
28 lines
723 B
Bash
Executable file
#!/bin/sh
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Get application name from directory
|
|
application=`basename $PWD`
|
|
|
|
setControlDict () {
|
|
controlDict="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
|
|
}
|
|
|
|
# Do moriyoshiHomogeneous
|
|
(cd moriyoshiHomogeneous && foamRunTutorials)
|
|
|
|
# Clone case
|
|
cloneCase moriyoshiHomogeneous moriyoshiHomogeneousPart2
|
|
# Modify and execute
|
|
cd moriyoshiHomogeneousPart2
|
|
cp -r ../moriyoshiHomogeneous/0.005 .
|
|
setControlDict
|
|
runApplication $application
|
|
cd ..
|