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/)
-   -   [mesh manipulation] decomposePar results in a weired procBoundary (https://www.cfd-online.com/Forums/openfoam-meshing/114661-decomposepar-results-weired-procboundary.html)

luliqiang March 15, 2013 04:24

decomposePar results in a weired procBoundary
 
1 Attachment(s)
as you see from the attachment, the procBoundary is not flat. How can i get a flat procBoundary? thank you.

ps. my decomposeParDic as follows.

Code:

numberOfSubdomains 5;

method          simple;

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


ngj March 15, 2013 04:28

Hi,

I you have some specific requirements on the decomposition, e.g. flat processor boundaries, then I suggest that you use the manual decomposition method, where you specify, which processors the individual cells belong to.

It is a quite simple operation, which you could e.g. based on the cell centres, which you can obtain based on

Code:

writeCellCentres
Kind regards,

Niels

luliqiang March 15, 2013 05:53

Quote:

Originally Posted by ngj (Post 414135)
Hi,

I you have some specific requirements on the decomposition, e.g. flat processor boundaries, then I suggest that you use the manual decomposition method, where you specify, which processors the individual cells belong to.

It is a quite simple operation, which you could e.g. based on the cell centres, which you can obtain based on

Code:

writeCellCentres
Kind regards,

Niels

thank u Niels. :)I got it, with a modified writeCellCentre file. just add a few lines:

Code:

forAll(cci, cellID)
{
    pid = (int)(cci[cellID]/LX);    //cellID belongs to which process
    fprintf(fSrc, "%d\n", pid);    //output
    sum[pid]++;            //sum
}

the dataFile is:
Code:

FoamFile
{
version 2.0;
format ascii;
class labelList;
location "constant";
object decompDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124218    //number of cells
(
3    // first cell belongs to process 3
0    // second cell belongs to process 0
...
x    // the cell belongs to process x
2    // last cell belongs to process 2
)


ngj March 18, 2013 08:43

Hi

This thread has a nice description of how to create the file for manual decomposition:

http://www.cfd-online.com/Forums/ope...computing.html

/ Niels


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