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

Parcel parallel

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 24, 2015, 20:49
Default Parcel parallel
  #1
Senior Member
 
Wen Xu
Join Date: May 2014
Posts: 134
Rep Power: 3
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
 
Wen Xu
Join Date: May 2014
Posts: 134
Rep Power: 3
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
 
Wen Xu
Join Date: May 2014
Posts: 134
Rep Power: 3
wenxu is on a distinguished road
Combining Lists distributed amongst processors

This may help.
wenxu is offline   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
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 2 April 10, 2015 05:42
Error running simpleFoam in parallel Yuby OpenFOAM Running, Solving & CFD 10 February 25, 2015 18:57
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 10 November 12, 2013 18:03
simpleFoam in parallel issue plucas OpenFOAM Running, Solving & CFD 3 July 17, 2013 11:30
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel JR22 OpenFOAM Running, Solving & CFD 2 April 19, 2013 16:49


All times are GMT -4. The time now is 13:58.