How to run snappyHexMesh in parallel?
I read that it's possible to run snappyHexMesh in parallel but I couldn't find an explanation how to do it.
I am planning to analyze different configurations so I'd like to speedup the meshing process.
My testcase is motorBike.
What needs to be changed in the Allrun file:
# Source tutorial run functions
cp system/fvSolution.org system/fvSolution
cp -r 0.org 0 > /dev/null 2>&1
runApplication snappyHexMesh -overwrite
sed -i 's/\(nNonOrthogonalCorrectors\).*;/\1 10;/g' system/fvSolution
runApplication potentialFoam -writep
sed -i 's/\(nNonOrthogonalCorrectors\).*;/\1 0;/g' system/fvSolution
How to run snappyHexMesh in parallel:
- decomposeMethod in decomposeParDict must be hierarchical !
- run "decomposePar"
- run "mpirun -np 8 -parallel snappyHexMesh"
- afterwards run "reconstructParMesh -mergeTol 1e-06 -latestTime"
Hope it can help you,
|All times are GMT -4. The time now is 01:10.|