CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   findCell in parallel: Identifying processor number (https://www.cfd-online.com/Forums/openfoam-programming-development/190748-findcell-parallel-identifying-processor-number.html)

fusionfire21 July 21, 2017 06:34

findCell in parallel: Identifying processor number
 
Hi guys,

I am running a case in parallel and access the index of a certain cell via
Code:

label myPoint=mesh.findCell(point(x, y, z));
So far, so good. When I try to access the velocity of the cell with index "myPoint" via the "Pout" function, a problem appears:
Of course each processor's domain contains a cell with that index (as they are enumerated separately for every processor), so I get information by every processor about the cell with the corresponding index.
Therefore, my question is:
Is there any possibilty to access the number of the processor which calculates the domain on which "point(x, y, z)" was originally found?
And is there an output function that allows only a specific processor (not the master processor) to communicate?

Thank you a lot in advance!
Regards
fusionfire


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