CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   Postprocessing with matlab (

giack July 25, 2013 09:58

Postprocessing with matlab
Hi to all,
I want to do my postprocessing with matlab but I have some simple questions.
During mesh generation OpenFOAM create some files with a list of points and faces. The points created are the vertexes of each cell. The output file of the simulation are U and p that are stored in the centre of gravity.
Obviously for the postprocessing with paraview or Tecplot there is a matrix that link the value of U and p with the centre of gravity of each cell. Where is it?
In matlab I'm able to find the cells centre of gravity but I don't know the order
whereby all field variables are stored.
Any suggestions?
Thanks to all

Phicau July 26, 2013 02:09

Hi giak,

what you need is writeCellCentres utility. It writes cell centres as a field.

giack July 26, 2013 03:45

thank you very much, I will try it

All times are GMT -4. The time now is 19:38.