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/)
-   -   How to export time series of variables for one point? (http://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...


All times are GMT -4. The time now is 07:51.