CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] decomposePar results in a weired procBoundary

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

Reply
 
LinkBack Thread Tools Search this Thread 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: 13
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, 28 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: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
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 offline   Reply With Quote

Old   March 15, 2013, 06:53
Default
  #3
New Member
 
luliqiang
Join Date: Dec 2012
Posts: 4
Rep Power: 13
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: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
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:

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

/ Niels
ngj is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error Interpolating Results onto New Mesh nammeh CFX 1 March 26, 2019 13:08
decomposePar 4-core warning/error? Boloar OpenFOAM Bugs 23 April 8, 2014 09:57
Creating a tool to interpolate results Luis Batista OpenFOAM Running, Solving & CFD 2 April 11, 2013 09:15
Different Results from Fluent 5.5 and Fluent 6.0 Rajeev Kumar Singh FLUENT 6 December 19, 2010 12:33
wind tunnel results vs fluent pixie Main CFD Forum 1 August 20, 2009 09:02


All times are GMT -4. The time now is 01:30.