mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
28 lines
922 B
Bash
Executable File
28 lines
922 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
if [ ! -d constant/polyMesh ]
|
|
then
|
|
runApplication blockMesh
|
|
|
|
runApplication renumberMesh -overwrite -constant
|
|
|
|
runApplication checkMesh -allTopology -allGeometry -constant
|
|
fi
|
|
|
|
restore0Dir
|
|
|
|
runApplication $(getApplication)
|
|
|
|
|
|
runApplication -s "U" postProcess -func sampleU -latestTime
|
|
runApplication -s "k" postProcess -func sampleK -latestTime
|
|
runApplication -s "epsilon" postProcess -func sampleEpsilon -latestTime
|
|
runApplication -s "R" postProcess -func sampleR -latestTime
|
|
runApplication -s "G" postProcess -func sampleG -latestTime
|
|
runApplication foamLog log."$(getApplication)"
|
|
|
|
#------------------------------------------------------------------------------
|