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

[OpenFOAM] Overlay scatter plot of experimental data on 'plot over line' in ParaView

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By gonpe
  • 1 Post By gonpe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2013, 08:58
Question Overlay scatter plot of experimental data on 'plot over line' in ParaView
  #1
Member
 
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14
gcengineer is on a distinguished road
I have experimental data of velocity and position (x, V) in a text file in two-column format:

# x (mm) V (m/s)
1.2 -0.081
2.2 -0.115
3.2 -0.124

In ParaView 3.12, how do I overlay a scatter plot of this data on a 'plot over line' of the same quantity that I have already created?

Thanks.

Last edited by gcengineer; July 30, 2013 at 11:13. Reason: Clarification
gcengineer is offline   Reply With Quote

Old   July 31, 2013, 12:37
Default
  #2
Member
 
Goncalo Pedro
Join Date: Nov 2009
Location: Victoria, British Columbia
Posts: 30
Rep Power: 17
gonpe is on a distinguished road
I don't quite remember the intricacies of 3.12, but you should be able to read in the data file as a csv file. So, fields separated by commas. x-axis values in the first column ... other data in the following.

Change the focus to the 2D plot pane and activate the visibility on the newly read in data.

That should do it.

Good luck!
Goncalo
mrishi likes this.
gonpe is offline   Reply With Quote

Old   August 2, 2013, 19:45
Smile Overlay scatter plot of experimental data on 'plot over line' in ParaView Reply to Th
  #3
Member
 
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14
gcengineer is on a distinguished road
Thank you for your response.

Yes. The ERCOFTAC test data files (e.g., mv_z0_50_lo.dat) must be modified to add y,z coordinates and stored as a csv file. Then the data can be overlaid with the Plot Data filter in ParaView. (Plot Data might also accept a space-delimited file, but I did not do it that way.)

Note that ParaView does not include a scale factor for Plot Data so the test data position in millimeter must also be manually converted to meter. I also stripped the first few comment lines from the .dat file, but I can't say this is necessary.

Thanks again.
gcengineer is offline   Reply With Quote

Old   August 6, 2013, 15:26
Default
  #4
Member
 
Goncalo Pedro
Join Date: Nov 2009
Location: Victoria, British Columbia
Posts: 30
Rep Power: 17
gonpe is on a distinguished road
You could use the transform filter to scale your values too ... no messy pre-processing required

Goncalo
mrishi likes this.
gonpe is offline   Reply With Quote

Old   August 6, 2013, 20:35
Default
  #5
Member
 
Glenn Carlson, PE, PhD (ret)
Join Date: Oct 2012
Location: US
Posts: 49
Rep Power: 14
gcengineer is on a distinguished road
I will look at that. Thanks for the tip.
gcengineer 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
paraview - cell data or point data on plot over line bye bye my blue OpenFOAM 0 December 13, 2016 07:07
[OpenFOAM] data saved via plot over line filter is not equal to number of cells along that line babakflame ParaView 4 October 10, 2016 15:43
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
Problems of Duns Codes! Martin J Main CFD Forum 8 August 15, 2003 00:19
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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