CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   lagrangian particles mpirun (http://www.cfd-online.com/Forums/openfoam-programming-development/108987-lagrangian-particles-mpirun.html)

catapult November 6, 2012 10:58

lagrangian particles mpirun
 
Hi everyone,

I created a IO function in a customised library derived from solidParticle, say this one :

void Foam::myParticle::writeDeposition(const Cloud<myParticle>& c)
{
blabla;
}

When I run the simulation on several processors i call the function like this:
if (runTime.write())
{
myCloud.info();
myCloud.writeDeposition();
Info << endl;
}

but then it writes particle data for lagrangian elements in one processor only...

How can I loop over all particles in all processors ?

thanks for the answer.


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