CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   How to get coordinates. (

T/Kohaku March 23, 2012 20:29

How to get coordinates.
Hello everyone...

I'm a newbie of OpenFOAM.
Now, I'm trying to make a post-program like 'vorticity'.
But, I have no idea how to find the coordinates.

reading vorticiry.c and more...
searching any other documents from web...

I have found out how to get xyz-componet of vector U.
like below
volVectorFiled U

Info << "U(x)= " << U.internalField()[numID].x() << endl;
Does "numID" mean the ID of cell?

However, I haven't discovered how to get coordinates corresponding to vector U.

Please give me advice about it

best regards.

All times are GMT -4. The time now is 06:16.