CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   DecomposePar: assign patch to processor (https://www.cfd-online.com/Forums/openfoam-solving/219404-decomposepar-assign-patch-processor.html)

Dozer_94 July 25, 2019 11:44

DecomposePar: assign patch to processor
 
Hi all,

I would like to know how to set up decomposeParDict in such a way that cells adjacent to a patch (i.e. owners of the patch faces) are all assigned to one processor. Consider this:

patch0
patch1
patch2
patch3

processor0: patch0, patch1
processor1: patch2, patch3

Thanks in advance,

Carlo_P July 31, 2019 06:22

Hey,
if you want, you can take a look into the DecomposeParDict file here:
https://github.com/OpenFOAM/OpenFOAM...composeParDict


I think that in your case, you have to put the patch in preservePatches.


If the geometry is simple (such as a pipe), you can enforce the division in geoemtrical divisions using


method simple;


simpleCoeffs{ n (divisionInXDirection divisionInYDirection divisionInZDirection); delta 0.001; }
I would like to suggest to use the more coplex command only if you are very familiar with parallel computation. In the 99% the scoth method gives very good results


All times are GMT -4. The time now is 03:56.