CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   How to extract values along a line? (

inf.vish August 6, 2013 03:46

How to extract values along a line?
I want to extract the values of the velocity component Ux at a particular cross section. I can plot the values along a line but how do i get openfoam to print those values for me in a file.
I need to calculate their average.

Aurelien Thinat August 6, 2013 04:27


If you are using paraFoam, you have an option "save data". It will print in a file the coordinates of the activated points (the cross section) and the different values (Ux, Uy, Uz, k, epsilon...).

Or you can use a function in the controlDict file. You have several examples in the tutorials.

inf.vish August 6, 2013 22:49

Okay thanks :)

All times are GMT -4. The time now is 00:53.