CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Information about Plot over line (https://www.cfd-online.com/Forums/paraview/115369-information-about-plot-over-line.html)

redrum86 March 29, 2013 04:48

Information about Plot over line
 
Hi, I started using Paraview a couple days ago fot my thesis, and I have a problem about Plot over line... It is possible to use this command for more elements at the same time in order to see in the same graphic variables from these different elements? Because I have to compare the evolution of the bottom profile in a particular section of a channel, and I have made some simulations at different times, so I would like to compare these different profiles on the same plot.
Hope I explained myself, my english is very poor!:D
thanks ;)

wyldckat April 1, 2013 07:32

Greetings Vincenzo,

OK, if I understand you correctly, you want more than one plot over line displayed in the same graph.
Here's what I managed to figure out:
  1. Apply the filter "Plot over Line" to the main data, as many times as you need.
  2. You wont like this one, but now you'll have to use the "Calculator" filter on most of the "Plot over Line" entries and tell it to create new fields based on the old ones, but with a different name. For example, to create a new field based on "p", but with the name "p_out", configure the calculator with the following:
    • Result Array Name: p_out
    • below that entry, it's the calculation, for which you simply use: p
  3. Select all of the resulting calculators and apply the filter "Append Geometry".
  4. Then apply to the last one the filter "Plot Data".
  5. Then on the "Display" tab of the "Plot Data" entry, configure appropriately.
Or instead of using such a complicated method:
  1. Apply as many "Plot over Line" filters you need.
  2. Choose one at a time and go to the menu "File -> Save Data" and export to CSV.
  3. Open the various CSV files, rename the columns you want renamed.
  4. Then open the CSV files in LibreOffice's Calc or Office's Excel and do the plots there! :)
    • Or import the CSV files back to ParaView and use the "Plot Data" filter.
Best regards,
Bruno

redrum86 April 1, 2013 09:25

I chose the second option, it works well! thank u a lot anyway ;)

redrum86 April 2, 2013 11:23

Hi, I have an other question but I don't know if you can say something about it... what kind of interpolation Plot over line does? is it a linear one?
Thanks anyway ;)

wyldckat April 2, 2013 16:54

Hi Vincenzo,

I haven't checked the VTK source code, but the answer given on this email seems to be related and/or make sense: http://permalink.gmane.org/gmane.com...view.user/9886

Best regards,
Bruno


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