CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   How to extract values along a line? (https://www.cfd-online.com/Forums/openfoam-post-processing/121823-how-extract-values-along-line.html)

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

Hi,

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 07:28.