mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tutorial scripts
This commit is contained in:
20
tutorials/rhoSonicFoam/shockTube/Allclean
Executable file
20
tutorials/rhoSonicFoam/shockTube/Allclean
Executable file
@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Get application name from directory
|
||||
parentDir=`dirname $PWD`
|
||||
application=`basename $parentDir`
|
||||
|
||||
# Find and source additional functions
|
||||
tutorialPath=$PWD
|
||||
while [ ! -f $tutorialPath/CleanFunctions ]
|
||||
do
|
||||
tutorialPath="$tutorialPath/.."
|
||||
done
|
||||
. $tutorialPath/CleanFunctions
|
||||
|
||||
|
||||
|
||||
cleanCase
|
||||
rm -rf 0
|
||||
cp -r 0.org 0
|
||||
cleanSamples
|
||||
23
tutorials/rhoSonicFoam/shockTube/Allrun
Executable file
23
tutorials/rhoSonicFoam/shockTube/Allrun
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Get application name from directory
|
||||
parentDir=`dirname $PWD`
|
||||
application=`basename $parentDir`
|
||||
|
||||
# Find and source additional functions
|
||||
tutorialPath=$PWD
|
||||
while [ ! -f $tutorialPath/RunFunctions ]
|
||||
do
|
||||
tutorialPath="$tutorialPath/.."
|
||||
done
|
||||
. $tutorialPath/RunFunctions
|
||||
|
||||
|
||||
|
||||
runApplication blockMesh
|
||||
compileApplication setShock
|
||||
runApplication setShock
|
||||
runApplication $application
|
||||
runApplication magU
|
||||
runApplication sample
|
||||
|
||||
Reference in New Issue
Block a user