CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   motorBike running snappyHexMesh in parallel? (https://www.cfd-online.com/Forums/openfoam-solving/95087-motorbike-running-snappyhexmesh-parallel.html)

klausb December 5, 2011 18:58

motorBike running snappyHexMesh in parallel?
 
Hello,

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)

----------------------------------------------------------------------

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

cp -r 0.org 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

and

runApplication reconstructParMesh -constant

but I couldn't get it right.

What's the trick?

Klaus


All times are GMT -4. The time now is 06:40.