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

[OpenFOAM] How to draw two plots in one graph in paraView?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 31, 2013, 16:48
Default How to draw two plots in one graph in paraView?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
immortality is on a distinguished road
I want to have two x-y plot in one figure for compare,how to do this by "plot over line"?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   August 31, 2013, 16:53
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
I answered a similar question the other day: http://www.cfd-online.com/Forums/par...-one-plot.html
__________________
wyldckat is offline   Reply With Quote

Old   November 27, 2015, 06:11
Default
  #3
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 11
Saideep is on a distinguished road
Hi guys;

I know this post isn't completely related to this thread but just wanted to continue with this old thread rather than start with a new one.

I am stuck with a peculiar problem.

Imagine i have a 'L' - shaped flow domain and i would like to plot data over the entire length of the channel. That is from the inlet to the outlet as one plot.

I can extract data over two individual straight channels but to analyze my results i want them to be included into one plot.

I also can use swak utility and use probe locations but i am working with interFoam and the influence of capillary pressure is important to capture which gets difficult to track with probe locations.

Do you guys have an idea of how can i do this. I have been searching for a similar sort of case for quite some time but failed to do so.

Saideep
Saideep is offline   Reply With Quote

Old   November 28, 2015, 13:13
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Saideep,

Try this:
  1. Use the two individual filters "Plot over line" for each section of the domain.
  2. Select the two entries of the plots on the "Pipeline Browser" (keep the Shift key pressed while you click on each item).
  3. Apply the filter "Group Datasets".
  4. Then Apply the filter "Plot Data" to the previous entry "GroupDatasets1".
Best regards,
Bruno
vs1 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   November 30, 2015, 06:17
Default
  #5
Senior Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 11
Saideep is on a distinguished road
Hi Bruno;

I tried your advise but still not able to generate a continuous plot. I still have the plots as two separate datas.

To make it clear i am attaching the figures:
1. I would like to plot over the shown plot over lines.
fig100.png

2. Once I group data set the data are under one group yet they are seen to be under different sections.
From the figure:
fig101.png
I would like to join the data, that is the blue plot of p(1) data should follow continuously to the p(2) data.

In simple way, the two plots are both 17.5e-6m in length. I would like to plot them over 35e-6m.

Thanks Bruno;
Saideep
Saideep is offline   Reply With Quote

Old   November 30, 2015, 16:20
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer:
  1. Use the two individual filters "Plot over line" for each section of the domain.
  2. Apply the filter "Calculator" to the first "PlotOverLine" entry on the "Pipeline Browser". Use:
    • Expression:
      Code:
      arc_length
    • Result Array Name:
      Code:
      position
  3. Apply the filter "Calculator" to the second "PlotOverLine" entry on the "Pipeline Browser". Use:
    • Expression:
      Code:
      arc_length+17.5e-6
    • Result Array Name:
      Code:
      position
  4. Select the two entries of the calculators on the "Pipeline Browser" (keep the Shift key pressed while you click on each item).
  5. Apply the filter "Group Datasets".
  6. Then Apply the filter "Plot Data" to the previous entry "GroupDatasets1".
    1. Make sure you choose to plot both entries in the "Composite Data Set Index".
    2. For the "X Array Name", use for both the field named "position".
    3. and the rest I think you've already seen how to do it.
If you don't like it showing the 2 separate label lines, then apply to the "GroupDatasets1" entry the filter "Merge Blocks" and then "Plot Data" the this latest one.
wyldckat 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
[OpenFOAM] How to fasten ParaView ce73stargazer ParaView 0 December 8, 2015 23:44
How to draw a E(k)-k graph? Daniel Main CFD Forum 4 December 9, 2014 17:08
[General] ParaView 1D plots Zato_Ichi ParaView 1 June 15, 2014 11:43
[OpenFOAM] How to draw a time changing vector in paraview bigphil ParaView 0 December 5, 2009 09:28
drawing of contour plots chinthakindi Main CFD Forum 1 April 27, 2004 04:33


All times are GMT -4. The time now is 03:15.