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 export time series of variables for one point? (https://www.cfd-online.com/Forums/openfoam-post-processing/129884-how-export-time-series-variables-one-point.html)

mary mor February 15, 2014 04:08

How to export time series of variables for one point?
 
Hi dear all
I would like to have the time series of several variables for one or several points of the field domain after solving the case. It's not important for me to have outputs of all points of the domain in writeTime intervals.
Is there any option or tool, I can set this option or any option in paraView that I get time series of variables for one point?

Thanks
Best regards

ngj February 15, 2014 13:46

Hi Mary,

Have you tried the sample utility? It can be used both as runTime and post-processing utility.

Kind regards,

Niels

mary mor February 16, 2014 14:31

Hi Niel,
I had a look at sampling section in user guide.
It says it writes the data in separate time files which is not my purpose. This way I have to look into every separate time step.
I want it to be written for a point in one single file.
Isn't there any other way?

Thanks
Best regards

ngj February 16, 2014 14:36

Hi,

You can then either write your own utility or make a small post-processing tool, which concatenates the files from the outputted directories.

I am not aware of a utility, which outputs to a single file.

Kind regards,

Niels

alexeym February 16, 2014 17:42

Hi,

There is probeLocations utility which exports values of a fields over time at a given set of points in one file.

mary mor February 19, 2014 11:08

Hi
Thanks Alexander. I found the utility and tried to use it after running the case.
This is how ProbeDict looks like:
Code:

// Fields to be probed. runTime modifiable!
fields
(
    pd
);

// Locations to be probed. runTime modifiable!
probeLocations
(
    (-0.375 -0.5 -0.01)
);

but after running command: "probeLocations" it writes the text blow without giving any variable for non of the time steps:

Code:

Create time

Create mesh for time = 0

Time = 0

Time = 0.02

Time = 0.04

Time = 0.06

Time = 0.08

Time = 0.1

Time = 0.12

Time = 0.14

Time = 0.16

Time = 0.18

Time = 0.2

Time = 0.22

Time = 0.24

Time = 0.26

Time = 0.28

Time = 0.3

Time = 0.32

Time = 0.34

Time = 0.4

Time = 0.6

Time = 0.8

Time = 1

Time = 1.2

Time = 1.4

Time = 1.6

Time = 1.8

Time = 2

Time = 2.2

Time = 2.4

Time = 2.6

Time = 2.8

Time = 3

Time = 3.2

Time = 3.4

Time = 3.6

Time = 3.8

Time = 4

Time = 4.2

Time = 4.4

Time = 4.6

Time = 4.8

Time = 5

Time = 5.2

Time = 5.4

Time = 5.6

Time = 5.8

Time = 6

End

Am I doing anything wrong?

Thanks

alexeym February 19, 2014 11:48

Hi,

Probed values are in postProcessing/probes/<time>/<variable name> files.

In your case I guess time will be 0 (as you simulation starts at 0) and variable name will be pd.

mary mor February 19, 2014 15:56

Yes that was written in Probe folder:)
thanks so much...

linyanx July 19, 2017 10:54

can't recognize the probesDict while using 'postProcess -func probes'
 
Dear all,

I am trying to command 'probeLocations' to plot some variables along time series, but the system complains that

PHP Code:

probeLocations has been superceded by the postProcess utility:
    
postProcess -func probes
or
    
postProcess -func 'probes(p, U)' 

Therefore, I tried to command 'postProcess -func probes' in order to get the probes at several specific locations. However, the result is not exactly what I expected, it was totally a different story, plotting p and U at a (0,0,0) location(seems to plot these out by default). It seems like the probesDict in the system isn't recognized while commanding the'postProcess -func probes'.

Afterwhile, I was trying to command 'postProcess -func 'probes(U, I_overall)'. It gives me the desired field but, again, at the default location(0,0,0) instead of the location that I settled in the probesDict.

Could any one please tells me how to specify the location while command in the terminal? Or explains the reason for failing to recognize the probesDict?

Best,
Linyan


All times are GMT -4. The time now is 17:38.