CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

How to run snappyHexMesh in parallel?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree4Likes
  • 4 Post By openfoam_user

LinkBack Thread Tools Display Modes
Old   January 16, 2011, 10:31
Default How to run snappyHexMesh in parallel?
Senior Member
Join Date: Mar 2009
Posts: 101
Rep Power: 10
klausb is on a distinguished road
Sponsored Links

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
. $WM_PROJECT_DIR/bin/tools/RunFunctions

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

runApplication blockMesh
runApplication snappyHexMesh -overwrite

sed -i 's/\(nNonOrthogonalCorrectors\).*;/\1 10;/g' system/fvSolution
runApplication potentialFoam -writep
sed -i 's/\(nNonOrthogonalCorrectors\).*;/\1 0;/g' system/fvSolution

runApplication simpleFoam

klausb is offline   Reply With Quote
Sponsored Links

Old   January 17, 2011, 04:09
Senior Member
stephane sanchi
Join Date: Mar 2009
Posts: 312
Rep Power: 11
openfoam_user is on a distinguished road
Hi Klaus,

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,

solefire, aliqasemi, Thom and 1 others like this.
openfoam_user is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to Run Parallel Jobs in Rocks Cluster asaha OpenFOAM Running, Solving & CFD 12 July 4, 2012 22:51
Parallel case setup boundry conditions snappyhexmesh oskar OpenFOAM Pre-Processing 5 September 11, 2009 01:12
1.6.x -> snappyHexMesh in parallel fails ... podallaire OpenFOAM Bugs 11 August 4, 2009 13:57
Call for help! Cfx error in Parallel run. yq11ys CFX 4 July 27, 2009 10:09
Run in parallel a 2mesh case cosimobianchini OpenFOAM Running, Solving & CFD 2 January 11, 2007 07:33

Sponsored Links

All times are GMT -4. The time now is 07:37.