CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Paraview & paraFoam (
-   -   converting velocities from cell centers to corner (

torsy87 March 13, 2013 14:54

converting velocities from cell centers to corner
Hello All,
I am trying to convert velocities from cell centers to corners.
OpenFOAM saves information of velocities in cell centers but
paraView displays velocities on the corners. How can I do that?
In few words, how can I obtain the numerical values of the velocities
displayed with paraView (in the corners), while velocities files
save the values in the cell centers?


wyldckat April 14, 2013 08:09

Greetings Mauro and welcome to the forum!

Sorry for the late reply, but I was hoping that someone else would have answered you sooner, while I was busy for these past weeks.

As for your question, I can't figure out what exactly you want to do with the values afterwards. Because I think there are two possible answers to your question:
  • If you want the values from ParaView on the vertexes, you can simply export the values to CSV: File -> Save Data
  • If you want to calculate in OpenFOAM the values of U on the corners of the cells, then I think what you are looking for is the following utility:
    Study its code if you want to implement this feature into a custom solver you are making.
Best regards,

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