CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Mesh Utilities

decomposePar results in a weired procBoundary

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 15, 2013, 05:24
Default decomposePar results in a weired procBoundary
  #1
New Member
 
luliqiang
Join Date: Dec 2012
Posts: 4
Rep Power: 4
luliqiang is on a distinguished road
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;
}
Attached Images
File Type: jpg boundary.jpg (35.0 KB, 12 views)
luliqiang is offline   Reply With Quote

Old   March 15, 2013, 05:28
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,619
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
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
ngj is online now   Reply With Quote

Old   March 15, 2013, 06:53
Default
  #3
New Member
 
luliqiang
Join Date: Dec 2012
Posts: 4
Rep Power: 4
luliqiang is on a distinguished road
Quote:
Originally Posted by ngj View Post
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
)

Last edited by luliqiang; March 15, 2013 at 22:58.
luliqiang is offline   Reply With Quote

Old   March 18, 2013, 09:43
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,619
Rep Power: 25
ngj will become famous soon enoughngj will become famous soon enough
Hi

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

Manually divide sub-domain for parallel computing

/ Niels
ngj is online now   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oscillating Airfoil Poor Results at High k (reduced frequency) dancfd OpenFOAM Running, Solving & CFD 3 November 4, 2013 09:32
OpenFOAM - Validation of Results Ahmed OpenFOAM Running, Solving & CFD 9 June 22, 2011 18:59
Different Results from Fluent 5.5 and Fluent 6.0 Rajeev Kumar Singh FLUENT 6 December 19, 2010 12:33
Velocity spots in openFoam results Valle OpenFOAM Running, Solving & CFD 4 August 19, 2009 05:53
how to view the complete results shokry FLOW-3D 5 February 3, 2009 14:56


All times are GMT -4. The time now is 04:08.