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

Parcel parallel and myProcNo problem

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By
  • 3 Post By

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2015, 20:49
Default Parcel parallel and myProcNo problem
  #1
Senior Member
 
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 12
wenxu is on a distinguished road
Dear Foamers,

Now I have a problem about parallel, could anyone be so kind to help me?

I want to statistic the particle's velocity in solver with parallel. However, it seems that the solver is calculated only with master processor. That's means the parcels are distributed at different processors but only some of them on the master processor. So how can I gather all of the parcels from different processors and statistics them? For example:

Quote:
label Nparcels=coalParcels.nParcels();
IDLList<coalParcel>::iterator iter=coalParcels.begin();
In fact, there are 100000 parcels in the computational domain, but when I use two processors, then only half of them can be statistics which are in the master processor. Corresponding to the code: Nparcels = 0.5 * total parcel number. (two processors)

Could anyone give me some hints?

Thank you very much!

Best regards,
Wen Xu
wenxu is offline   Reply With Quote

Old   April 24, 2015, 22:15
Default
  #2
Senior Member
 
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 12
wenxu is on a distinguished road
Briefly, how to gather all of the parcels from different processors to a single parcel List in Solver?

regards,
Xu
wenxu is offline   Reply With Quote

Old   April 25, 2015, 21:09
Default
  #3
Senior Member
 
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 12
wenxu is on a distinguished road
http://www.cfd-online.com/Forums/ope...rocessors.html

This may help.
wenxu is offline   Reply With Quote

Reply


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



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