Various minor changes to tutorial scripts. In particular, ensuring that they all change to the containing directory so that batches of tutorials can be run easily from the root of the installation.
40 lines
1.0 KiB
Bash
Executable File
40 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
runApplication blockMesh
|
|
runApplication extrudeMesh
|
|
runApplication decomposePar
|
|
|
|
runParallel $(getApplication)
|
|
|
|
runApplication reconstructPar -latestTime
|
|
|
|
runApplication foamPostProcess -latestTime -func "
|
|
graphCell
|
|
(
|
|
name=graph,
|
|
start=(3.4901 0 0),
|
|
end=(3.4901 0.0096 0),
|
|
fields=(alpha.gas T.liquid T.gas d.gas)
|
|
)"
|
|
runApplication -append foamPostProcess -latestTime -func "
|
|
patchSurface
|
|
(
|
|
name=patchWallBoilingProperties,
|
|
patch=wall,
|
|
surfaceFormat=raw,
|
|
interpolate=false,
|
|
fields=(dDeparture.liquid fDeparture.liquid nucleationSiteDensity.liquid wetFraction.liquid qQuenching.liquid qEvaporative.liquid)
|
|
)"
|
|
|
|
if ! isTest "$@"
|
|
then
|
|
./validation/createGraphs
|
|
./validation/createWallBoilingPropertiesGraphs
|
|
fi
|
|
|
|
#------------------------------------------------------------------------------
|