File size: 651 Bytes
5a600cf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
runApplication blockMesh
runApplication createZones
runApplication decomposePar
# Steady-state run
runParallel -s steady foamRun
if ! isTest "$@"
then
# Transient run
foamDictionary -set \
"endTime=6000, deltaT=0.01, adjustTimeStep=yes" \
system/controlDict
foamDictionary -set "ddtSchemes/default=Euler" system/fvSchemes
runParallel -s transient foamRun
fi
runApplication reconstructPar -latestTime
#------------------------------------------------------------------------------
|