1

I would appreciate knowing how I can convert the cell values given after the OpenFOAM solution into the ones on the grid points. Is there any direct command for such a thing or I should work with the sampling option?

Thanks a lot for your help.

Ali_Sh
  • 2,667
  • 3
  • 43
  • 66
  • Could you elaborate on what you are trying to do? Do you need nodal values to use sampling or for the entire computational domain? – s.ouchene Nov 25 '21 at 06:59
  • Dear @s.ouchene, Thanks for your response. Yes, the entire domain is of my interest. I am actually looking for a set of data on the grid points of the mesh rather than the cell values in a form of "x_p y_p U_p T_p" where for example T_p is the temperature value at the pth grid point. I need this data-set to do some model reduction afterward. – Behzad Baghapour Nov 25 '21 at 07:31
  • 1
    Do you want those values on Paraview? – s.ouchene Nov 25 '21 at 07:36
  • That would be also great to have them in Paraview. Can I extract this data in a file? – Behzad Baghapour Nov 25 '21 at 07:55
  • 1
    You can export your data from Paraview as CSV file if you want – s.ouchene Nov 25 '21 at 07:56

1 Answers1

2

When you open your case using Paraview/paraFoam, then the interpolated fields at the points (nodes) are already computed by Paraview:

enter image description here

Fields with an orange small circle are the point data, while the fields that have an orange cube icon are the data at the cell centers, i.e:

types of fields

You can also see the values of the fields (points or cell) using the Spreadsheet view and export them as CSV:

enter image description here

s.ouchene
  • 1,682
  • 13
  • 31
  • Be careful that this approach will not give the values at the points that OpenFOAM was using, paraview doesn't know anything about the discretization/interpolation scheme employed to get nodal values in OpenFOAM. – Matthew Flamm Dec 08 '21 at 21:33