CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   probes (http://www.cfd-online.com/Forums/openfoam-post-processing/123348-probes.html)

openfoam_user September 10, 2013 14:11

probes
 
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,
Stephane.

Lieven September 10, 2013 14: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

Cheers,

L

openfoam_user September 10, 2013 14: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 !!!

Stephane.

Bernhard September 11, 2013 02: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? http://mywiki.wooledge.org/XyProblem )


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