CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   How to get coordinates. (http://www.cfd-online.com/Forums/openfoam-post-processing/99022-how-get-coordinates.html)

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 15:51.