mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
XiFoam tutorial updates
This commit is contained in:
17
tutorials/combustion/XiFoam/ras/Allclean
Executable file
17
tutorials/combustion/XiFoam/ras/Allclean
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
keepCases="moriyoshiHomogeneous"
|
||||
loseCases="moriyoshiHomogeneousPart2"
|
||||
|
||||
for case in $keepCases
|
||||
do
|
||||
(cd $case && foamCleanTutorials)
|
||||
done
|
||||
|
||||
for case in $loseCases
|
||||
do
|
||||
removeCase $case
|
||||
done
|
||||
29
tutorials/combustion/XiFoam/ras/Allrun
Executable file
29
tutorials/combustion/XiFoam/ras/Allrun
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Get application name from directory
|
||||
application="XiFoam"
|
||||
|
||||
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 ..
|
||||
Reference in New Issue
Block a user