CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] export transient data to ONLY ONE csv file?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By macfly

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 18, 2014, 22:17
Default export transient data to ONLY ONE csv file?
  #1
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
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 and JeffIrwin like this.
macfly is offline   Reply With Quote

Old   April 8, 2015, 13:21
Default
  #2
Member
 
Sami
Join Date: Nov 2012
Location: Cap Town, South Africa
Posts: 87
Rep Power: 13
Mehrez is on a distinguished road
Hi
Did you find a way to export in one file ?
Thanks,

Mhrz


Quote:
Originally Posted by macfly View Post
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 is offline   Reply With Quote

Old   April 8, 2015, 19:25
Default
  #3
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
No I didn't. Sorry.
macfly is offline   Reply With Quote

Old   April 9, 2015, 05:16
Default
  #4
Member
 
Sami
Join Date: Nov 2012
Location: Cap Town, South Africa
Posts: 87
Rep Power: 13
Mehrez is on a distinguished road
Thank you.
Mhrz
Mehrez is offline   Reply With Quote

Old   February 11, 2016, 11:03
Default
  #5
New Member
 
Jeff Irwin
Join Date: Jan 2016
Location: State College, PA
Posts: 3
Rep Power: 10
JeffIrwin is on a distinguished road
Quote:
Originally Posted by macfly View Post
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.
JeffIrwin is offline   Reply With Quote

Old   March 29, 2016, 18:43
Default
  #6
kkk
New Member
 
kenyoh
Join Date: Apr 2012
Location: Tokyo Japan
Posts: 21
Blog Entries: 1
Rep Power: 14
kkk is on a distinguished road
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
kkk is offline   Reply With Quote

Old   April 5, 2016, 10:01
Default
  #7
New Member
 
Jeff Irwin
Join Date: Jan 2016
Location: State College, PA
Posts: 3
Rep Power: 10
JeffIrwin is on a distinguished road
I would be interested in your python script.
JeffIrwin is offline   Reply With Quote

Old   April 6, 2016, 02:43
Default
  #8
kkk
New Member
 
kenyoh
Join Date: Apr 2012
Location: Tokyo Japan
Posts: 21
Blog Entries: 1
Rep Power: 14
kkk is on a distinguished road
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
Attached Files
File Type: gz cavity.tar.gz (3.4 KB, 188 views)
File Type: txt probeData.csv.txt (678 Bytes, 158 views)
kkk is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 ordinary OpenFOAM Installation 19 September 3, 2019 18:13
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59


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