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 find the coordinate value for OF output results? (for matlab post-processing) (http://www.cfd-online.com/Forums/openfoam-post-processing/123009-how-find-coordinate-value-output-results-matlab-post-processing.html)

ripperjack September 2, 2013 14:39

How to find the coordinate value for OF output results? (for matlab post-processing)
 
Hi all,

I want to do postprocessing using Matlab. I found that the OF output results for every steps is just the cell value, no cell location or any other information, so it is very hard to read the OF output into matlab (I have several blocks). I check the constat/polyMesh/points and I can only found the points x,y,z value, not the cell x,y,z. So my question is: how can I find the corresponding x,y,z for each cell value in the OF output results?

Thanks in advance!

Regards,

nimasam September 3, 2013 00:20

well, it save cell center data, if you want to know cell center position for post processing then use
Quote:

writeCellCentres

ripperjack September 3, 2013 12:31

Quote:

Originally Posted by nimasam (Post 449468)
well, it save cell center data, if you want to know cell center position for post processing then use

Thanks a lot! It works for me!


All times are GMT -4. The time now is 15:58.