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 for Conjugate Heat Transfer not working properly (https://www.cfd-online.com/Forums/openfoam-solving/202408-decomposepar-conjugate-heat-transfer-not-working-properly.html)

bussaco8 May 30, 2018 06:48

decomposePar for Conjugate Heat Transfer not working properly
 
Hello all!
I have a case which uses chtMultiRegionSimpleFoam with a solid region and a fluid region. I am trying to decompose the case into 4 processors, using the following decomposeParDict file:


Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  4.1                                  |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "system";
    object      decomposeParDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

numberOfSubdomains 4;

method          simple;

simpleCoeffs
{
    n              (2 2 1);
    delta          0.001;
}

hierarchicalCoeffs
{
    n              (1 1 1);
    delta          0.001;
    order          xyz;
}

manualCoeffs
{
    dataFile        "";
}

distributed    no;

roots          ( );


// ************************************************************************* //


When I run in the terminal
Code:

decomposePar -allRegions

It decomposes in only 2 processors and uses the scotch method instead, almost as it completely ignores my decomposeParDict.


However, if I run the decomposePar shown above in a one-region case, the execution runs well.


How can I fix this?


Thanks and best regards,
Joćo Gil

Bloerb May 30, 2018 07:10

Put the decomposeParDict into the region folders.
E.g
system/fluid/decomposeParDict
system/solid/decomposeParDict

bussaco8 May 30, 2018 08:55

Yes, I did that and works now.
Also, it's better to use the scotch mode, using the decomposeParDict shown below.


Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "system";
    object      decomposeParDict;
}
numberOfSubdomains 4;
method          scotch;
scotchCoeffs
{
}
distributed    false;
roots          ( );


Anyway, thanks a lot for the help! :)


All times are GMT -4. The time now is 12:42.