CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   probes (

openfoam_user September 10, 2013 13:11

Hi OF-users,

I want to use the probeLocations command with the system/probesDict file.
I want to sample the velocity for circa 20000 points.

But all data are written on 1 line in the resulting file (postProcessing/probes/0.05/U)

Someone knows a way to get the resulting data written on 20000 lines (1 line for 1 point).

Best regards,

Lieven September 10, 2013 13:32

Hi Stephane,

This is explicitly programmed like this. The main reason is that new values the next time step are added as a new line (which is far easier than adding a new column).

So if you want your data to be written as new 20000 lines, I'm afraid you will need to make your own version of probes.C and patchProbesTemplates.C



openfoam_user September 10, 2013 13:40

Hi Lieven

Often it is not easy to understand how post-processing programming in OpenFOAM has been written.

My example: probeLocations (points) are written in rows and resulting data are given in columns !!!


Bernhard September 11, 2013 01:57

For probes it is very easy: one colum per probe point and one row per time instance. I don't know how smoothly this works for 20k probing points, because that is probably not the intended use.

What are you actually trying to achieve? There is probably at better approach than using 20k points, as you are not going to look at every single one of them. (Is the a XY problem? )

All times are GMT -4. The time now is 21:43.