36 lines
842 B
Bash
Executable File
36 lines
842 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
restore0Dir
|
|
|
|
runApplication blockMesh
|
|
|
|
runApplication topoSet
|
|
|
|
runApplication createPatch -overwrite
|
|
|
|
runApplication decomposePar -force
|
|
|
|
runParallel $(getApplication)
|
|
|
|
runApplication reconstructPar
|
|
|
|
|
|
latestTime=$(foamListTimes -latestTime)
|
|
|
|
mv -f "$latestTime" "$latestTime".bak
|
|
|
|
mkdir oldProcessors
|
|
|
|
mv -f processor* oldProcessors
|
|
|
|
runParallel -s "decompose" redistributePar -decompose -latestTime
|
|
|
|
runParallel -s "restart" $(getApplication)
|
|
|
|
runParallel -s "reconstruct" redistributePar -reconstruct -latestTime
|
|
|
|
#------------------------------------------------------------------------------
|