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

[snappyHexMesh] Order of decomposePar and snappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2019, 05:57
Default Order of decomposePar and snappyHexMesh
  #1
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 46
Rep Power: 7
hconel is on a distinguished road
Hello all,
I have used to generate my mesh in this order:

METHOD 1
Code:
runApplication blockMesh
runApplication decomposePar -copyZero
runParallel snappyHexMesh -overwrite
i.e. decomposing the domain before refining certain regions with snappyHexMesh (by the way, I am using scotch method in decomposition). But then, I thought that running decomposePar before snappyHexMesh would cause inefficient decomposition of the domain (which is just generated by blockMesh and is coarse) and reversing the order would provide more efficient decomposition, such that:

METHOD 2
Code:
runApplication blockMesh
runApplication snappyHexMesh -overwrite
runApplication decomposePar -copyZero
Now, the second method obviously requires a significantly longer computation time. The thing is, both methods grants similar cells/processor ratio, in contrary to my intuition! Does OpenFOAM redistributes cells to processors after running snappyHexMesh in METHOD 1?

Thanks in advance.

PS: My final mesh includes unevenly distributed refined regions.
hconel is offline   Reply With Quote

Old   April 29, 2019, 06:05
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

I did some similar testing a while back and had put it up on cfd-online. Here is the link to that thread: Parallelize snappyHexMesh optimally?

Hope this helps.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   April 30, 2019, 01:08
Default
  #3
Member
 
Hüseyin Can Önel
Join Date: Sep 2018
Location: Ankara, Turkey
Posts: 46
Rep Power: 7
hconel is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

I did some similar testing a while back and had put it up on cfd-online. Here is the link to that thread: Parallelize snappyHexMesh optimally?

Hope this helps.

Cheers,
Antimony
This is exactly what I am looking for, thanks! So the execution order does not matter, snappyHexMesh will redistribute the processor loading.
hconel is offline   Reply With Quote

Old   April 30, 2019, 03:27
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Yes, if your decompositionMethod is scotch, then snappyHexMesh seems to do load balancing at every step.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Reply


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
[snappyHexMesh] Order of snappyHexMesh and decomposePar Zeallt OpenFOAM Meshing & Mesh Conversion 1 November 11, 2018 05:15
[snappyHexMesh] Problem with decomposePar, snappyHexMesh luca1992 OpenFOAM Meshing & Mesh Conversion 12 August 23, 2017 19:06
[snappyHexMesh] snappyHexMesh "face ... area does not match neighbour by ..." error kbziya OpenFOAM Meshing & Mesh Conversion 0 August 3, 2016 13:09
[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue? klausb OpenFOAM Meshing & Mesh Conversion 1 March 7, 2015 11:55
[snappyHexMesh] ReconstructParMesh after parallel snappyHexMesh kawechel OpenFOAM Meshing & Mesh Conversion 6 March 2, 2013 05:47


All times are GMT -4. The time now is 23:24.