CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

How to draw two plots in one graph in paraView?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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,205
Rep Power: 18
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,187
Blog Entries: 34
Rep Power: 93
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
I answered a similar question the other day: 2 datas on one plot
wyldckat is offline   Reply With Quote

Old   November 27, 2015, 07:11
Default
  #3
Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 96
Rep Power: 2
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, 14:13
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,187
Blog Entries: 34
Rep Power: 93
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   November 30, 2015, 07:17
Default
  #5
Member
 
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 96
Rep Power: 2
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, 17:20
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,187
Blog Entries: 34
Rep Power: 93
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to draw velocity with direction in paraView? immortality OpenFOAM Running, Solving & CFD 5 January 7, 2013 16:26
ParaView suddenly does not show 3D plots vishalsacharya OpenFOAM Paraview & paraFoam 0 November 17, 2011 01:02
paraview graph raguelmoon ParaView 2 April 27, 2011 01:33
Is it possible to draw Ek-k graph? lakeat Main CFD Forum 0 December 21, 2009 03:17
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 04:29.