CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Order of decomposePar and snappyHexMesh (https://www.cfd-online.com/Forums/openfoam-meshing/217061-order-decomposepar-snappyhexmesh.html)

hconel April 29, 2019 05:57

Order of decomposePar and snappyHexMesh
 
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.

Antimony April 29, 2019 06:05

Hi,

I did some similar testing a while back and had put it up on cfd-online. Here is the link to that thread: https://www.cfd-online.com/Forums/op...optimally.html

Hope this helps.

Cheers,
Antimony

hconel April 30, 2019 01:08

Quote:

Originally Posted by Antimony (Post 732105)
Hi,

I did some similar testing a while back and had put it up on cfd-online. Here is the link to that thread: https://www.cfd-online.com/Forums/op...optimally.html

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.

Antimony April 30, 2019 03:27

Hi,

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

Cheers,
Antimony


All times are GMT -4. The time now is 17:39.