CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] export transient data to ONLY ONE csv file? (https://www.cfd-online.com/Forums/paraview/137579-export-transient-data-only-one-csv-file.html)

macfly June 18, 2014 22:17

export transient data to ONLY ONE csv file?
 
Hi,

I'd like to export probe location transient data to a single csv file. When I click Write All Time Steps, Paraview exports a csv file for each time step and I'd like to have a single csv file with a time column.

Any idea? I'm sure there is a 'python way'.

When I Select Points On (d) then Plot Selection Over Time, I can export the time series to a single csv file, but what annoys me is that I can't choose the exact coordinate with Select Points On, I can only use the mouse and click on a surface (or am I missing something?)

Thanks
François

Mehrez April 8, 2015 13:21

Hi
Did you find a way to export in one file ?
Thanks,

Mhrz


Quote:

Originally Posted by macfly (Post 497709)
Hi,

I'd like to export probe location transient data to a single csv file. When I click Write All Time Steps, Paraview exports a csv file for each time step and I'd like to have a single csv file with a time column.

Any idea? I'm sure there is a 'python way'.

When I Select Points On (d) then Plot Selection Over Time, I can export the time series to a single csv file, but what annoys me is that I can't choose the exact coordinate with Select Points On, I can only use the mouse and click on a surface (or am I missing something?)

Thanks
François


macfly April 8, 2015 19:25

No I didn't. Sorry.

Mehrez April 9, 2015 05:16

Thank you.
Mhrz

JeffIrwin February 11, 2016 11:03

Quote:

Originally Posted by macfly (Post 497709)
what annoys me is that I can't choose the exact coordinate

Filters -> alphabetical -> probe location.

In the Properties panel next to "Point", you can type in the exact coordinates.

Unfortunately, I don't see a way to save this to a single file. I can't even read the files myself and combine them, because time is not saved to them.

kkk March 29, 2016 18:43

Hi

Do you want to do it with Paraview GUI?
I always use a python script for getting any time transient data in one csv with pvpython.
If the python script is OK.
I will send you it.

Regards,
kkk

JeffIrwin April 5, 2016 10:01

I would be interested in your python script.

kkk April 6, 2016 02:43

2 Attachment(s)
Hi

I attached OpenFOAM tutorial case including a Paraview's python script.
Please execute following after ./Allrun

Code:

pvpython getProbeData.py
It will output a csv file in which transient probe data are written.
You will be able to get it not only OpenFOAM but other solvers by changing reader type in the script.

Just give it try.

Regards,
kkk


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