CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] No point values for U in Paraview? (https://www.cfd-online.com/Forums/paraview/132174-no-point-values-u-paraview.html)

dancfd March 26, 2014 22:27

No point values for U in Paraview?
 
2 Attachment(s)
Hello foamers,

I am trying to plot streaklines in ParaFoam, and I am running into problems each of two ways:
- Using paraFoam in OF 2.1.1 (paraView 3.12), Streaklines is not available as an option
- Using paraView 3.98RC which I compiled from source (to allow python functions), Streaklines will not plot U because it is not available as a point value - though it is available as a cell value.

Strangely, U does appear as a point value if I run paraFoam, vs opening paraView 3.98 and then loading the case by first running "touch case.foam" in the case directory. Please see attached screenshots that illustrate the difference.

Can anyone suggest how I might get around these issues to plot streaklines?

Thanks in advance,

Daniel

wyldckat April 6, 2014 14:05

Greetings Daniel,

That's very very strange... namely that the U field is not being interpolated to the points. It's possible that this is a bug in 3.98 RC3 that was fixed in the final release.
To go around this issue, try:
  • Using the command foamToVTK to export the results into VTK file format.
  • Or try using the filter "Cell Data to Point Data". But be warned, that you should at least load all patches and internal mesh, before using this filter. And still, it's not certain that it will interpolate properly the values on the walls :(

And the filter "Streaklines" was indeed introduced in ParaView 3.98.

My advice: install OpenFOAM 2.3.0 from Deb packages, along with the provided custom build of ParaView 4.1.0, which already includes Python. You can then use a separate terminal window with a shell environment for 2.3.0. In case you don't know how to use more than one OpenFOAM installation, check this wiki page: http://openfoamwiki.net/index.php/In...with_the_Shell

Best regards,
Bruno

dancfd April 6, 2014 17:15

Hello Bruno,

Thanks for your help! I built OpenFOAM 2.3.0 from source, enabling the flags for python in the ParaView installation, and now I can have my cake and eat it too with ParaView 4.1.

Thanks again!

Daniel


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