CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] How to run snappyHexMesh in parallel?

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

Like Tree11Likes
  • 11 Post By openfoam_user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2011, 10:31
Default How to run snappyHexMesh in parallel?
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
Hello,

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:

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

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


Klaus
klausb is offline   Reply With Quote

Old   January 17, 2011, 04:09
Default
  #2
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
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,

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

Old   August 4, 2022, 05:51
Default
  #3
New Member
 
MD KAWSAR SAJIB
Join Date: Jul 2022
Posts: 7
Rep Power: 4
mksajib is on a distinguished road
Quote:
Originally Posted by openfoam_user View Post
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,

Stephane
Dear Stephane,
Thank you for sharing the commands. I did it with the scotch method in decmposeParDict. Also, the command for snappyHexMesh is "mpirun -np 8 snappyHexMesh -parallel"

Regards
mksajib is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with foam-extend 4.0 ggi parallel run Metikurke OpenFOAM Running, Solving & CFD 1 December 6, 2018 16:51
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 05:18
Problem in foam-extend 4.0 ggi parallel run Metikurke OpenFOAM Running, Solving & CFD 0 February 20, 2018 07:34
Some questions about a multi region case run in parallel zfaraday OpenFOAM Running, Solving & CFD 5 February 23, 2017 11:25
OpenFOAM can't be run in parallel in cluster sibo OpenFOAM Running, Solving & CFD 4 February 21, 2017 17:29


All times are GMT -4. The time now is 15:09.