CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   motorBike running snappyHexMesh in parallel? (

klausb December 5, 2011 19:58

motorBike running snappyHexMesh in parallel?

what needs to be changed in the Allrun file to run snappyHexMesh, potentialFoam and simpleFoam in parallel on a quad core processor to make the most out of the hardware? (motorBike case)


# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

cp -r 0 > /dev/null 2>&1

runApplication blockMesh
runApplication snappyHexMesh -overwrite
runApplication decomposePar
runParallel potentialFoam 4 -noFunctionObjects -writep
runParallel `getApplication` 4
runApplication reconstructPar


I played with

runApplication decomposePar

runParallel snappyHexMesh 4 -overwrite


runApplication reconstructParMesh -constant

but I couldn't get it right.

What's the trick?


All times are GMT -4. The time now is 20:33.