Files
openfoam/tutorials/mesh/redistributePar/cavity/Allrun
2014-03-14 14:59:32 +00:00

36 lines
1.1 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
cp system/decomposeParDict-2 system/decomposeParDict
#runApplication decomposePar
#- redistributePar to do decomposition
runParallel redistributePar 2 -decompose
#- bit of renumbering and running
runParallel -l log.renumberMesh-CuthillMcKee renumberMesh 2 -overwrite
runParallel -l log.icoFoam-CuthillMcKee icoFoam 2
#- bit of bad renumbering and running
runParallel -l log.renumberMesh-parallel renumberMesh 2 -overwrite -dict system/renumberMeshDict-random
runParallel -l log.icoFoam-random icoFoam 2
#- pick up last result
cp system/controlDict-latestTime system/controlDict
#- redistribute to 5 processors
cp system/decomposeParDict-5 system/decomposeParDict
runParallel -l log.redistributePar-5 redistributePar 5
#- run a bit more
runParallel -l log.icoFoam-5 icoFoam 5
#- reconstruct mesh and results
runParallel -l log.redistributePar-1 redistributePar 5 -reconstruct
# ----------------------------------------------------------------- end-of-file