CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   point in processor domain? (

avel44 December 11, 2012 11:19

point in processor domain?

I just started developing in OpenFOAM and I have a question:

Which variable tells me the coordinates of the sub domain of each processor (in mpi)?
I want to identify on which processor a point (defined by x,y and z) is situated.

Thank you very much in advance !

Bernhard December 13, 2012 09:21

What is exactly the reason that you want this? You can easily visualize how this is distributed in paraview by making the .foam files in the processor directories and load those.

avel44 December 13, 2012 09:31

I would like to start automatically a new function on a processor in my mpi code under the condition that a certain point is located on this processor.
I have the coordinates of the point.

I suppose that it should be very easy, to compare with a variable that tells
me the location of each sub domain (of each processor), but still I don't know
how to see that inside the code.

Thank you in advance

All times are GMT -4. The time now is 10:22.