CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

2 datas on one plot

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

Like Tree8Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   December 1, 2013, 11:26
Default
  #41
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7
s.m is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings s.m,

I guess that this thread is a bit confusing, but most of the necessary information is already present.
I'll try to list the steps you need to perform:
  1. Have the 3 VTK files open in the same ParaView.
  2. Apply one "Calculator" filter to each one of the VTK files on the "Pipeline Browser".
  3. On each "Calculator" filter, indicate that you want the Result array to be named "Cp1" for the first file, "Cp2" for the second file and "Cp3" for the third file. If you prefer, you can give it any other names to each one.
  4. And on each "Calculator" filter, indicate that you want the Expression to be always "Cp" or whichever name your field is.
  5. Click on the "Apply" button for each "Calculator" filter.
  6. Now select the 3 "Calculator" filters (keep the Ctrl key pressed down, while you click on each filter entry in the "Pipeline Browser").
  7. Now apply the filter "Group Datasets".
  8. Now apply the plot filter to the "Group Datasets" entry on the "Pipeline Browser".
  9. And have a look at the post #22 for ideas on how to control the data sets to be plotted.
Best regards,
Bruno
sorry i don't know how should i apply them group datasetsacually i don't know how should do the 7th step.
thank you again
p.s: i attached a picture that i do till 6th step.
Attached Images
File Type: jpg 12.jpg (40.0 KB, 4 views)
s.m is offline   Reply With Quote

Old   December 1, 2013, 11:35
Default
  #42
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7
s.m is on a distinguished road
i do the 7th step in they way that pictures show, if i did it wrong please tell me, thank you
Attached Images
File Type: jpg 13.jpg (32.5 KB, 5 views)
File Type: jpg 15.jpg (32.9 KB, 4 views)
s.m is offline   Reply With Quote

Old   December 1, 2013, 11:40
Default
  #43
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7
s.m is on a distinguished road
i do the 8th step in they way that pictures show, when i execute "plotOnIntersectionCurves" i doesn't show the grouph dataset that i can plot three VTK files togother, what should i do now?
thank you very much.
Attached Images
File Type: jpg 15.jpg (32.9 KB, 3 views)
File Type: jpg 16.jpg (38.1 KB, 3 views)
File Type: jpg 17.jpg (45.4 KB, 4 views)
File Type: jpg 18.jpg (45.7 KB, 4 views)
File Type: jpg 19.jpg (46.9 KB, 4 views)
s.m is offline   Reply With Quote

Old   December 1, 2013, 12:34
Default
  #44
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Sorry, I didn't test this myself first. And many thanks for the snapshots, because this way I was able to see what you were seeing on your side!

The solution is that instead of using the filter "Group Datasets", you should use the filter "Append Attributes". I will edit the previous post in accordance to this finding, to make it easier for future forum readers.

The explanation: this is because the "Group Datasets" does not merge the datasets into a single one, it only groups them into blocks, allowing for a joint filter application to all; this doesn't even need the datasets to have the same data structure.
But the "Append Attributes" does merge the data arrays into the same block, but this demands that the data structures are similar enough.
s.m likes this.
__________________
wyldckat is offline   Reply With Quote

Old   December 1, 2013, 13:33
Default
  #45
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7
s.m is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Sorry, I didn't test this myself first. And many thanks for the snapshots, because this way I was able to see what you were seeing on your side!

The solution is that instead of using the filter "Group Datasets", you should use the filter "Append Attributes". I will edit the previous post in accordance to this finding, to make it easier for future forum readers.

The explanation: this is because the "Group Datasets" does not merge the datasets into a single one, it only groups them into blocks, allowing for a joint filter application to all; this doesn't even need the datasets to have the same data structure.
But the "Append Attributes" does merge the data arrays into the same block, but this demands that the data structures are similar enough.
Yes, i can do it right, thank you very much dear bruno.

i want to comparison this 3 curve with experiment too,acutally
i have the data points (x, y) for experiment, how can i import this point to paraview and how can i draw it in the same picture that these three curves is.
can you please explain it too, thank you again
Attached Images
File Type: jpg 20.jpg (48.8 KB, 5 views)
s.m is offline   Reply With Quote

Old   December 1, 2013, 14:14
Default
  #46
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,556
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by s.m View Post
i want to comparison this 3 curve with experiment too,acutally
i have the data points (x, y) for experiment, how can i import this point to paraview and how can i draw it in the same picture that these three curves is.
Well, it might depend if the number of data points in your experimental data, is the same as the data points on your simulation.

Either way, try these steps:
  1. Load the experimental data into ParaView. If you do not have any specific format, then use a CSV file: http://en.wikipedia.org/wiki/Comma-separated_values
  2. Now use the "Plot Data" filter on the experimental data, so that you can check if you're able to plot it in ParaView.
  3. Now, this may seem weird, but select the two plots in the "Pipeline Browser", namely the plot entry you have from the simulation data and the plot you've just done with the experimental data. And apply to this selection the "Append Attributes" filter.
  4. If it works well, it will give you a merged data set, with both the simulation and experimental data.
  5. Now apply the filter "Plot Data" onto the latest merged data, so that you can now plot all of the desired line plots.
Best regards,
Bruno
s.m and immortality like this.
__________________
wyldckat is offline   Reply With Quote

Old   December 1, 2013, 15:06
Default
  #47
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 7
s.m is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Well, it might depend if the number of data points in your experimental data, is the same as the data points on your simulation.

Either way, try these steps:
  1. Load the experimental data into ParaView. If you do not have any specific format, then use a CSV file: http://en.wikipedia.org/wiki/Comma-separated_values
  2. Now use the "Plot Data" filter on the experimental data, so that you can check if you're able to plot it in ParaView.
  3. Now, this may seem weird, but select the two plots in the "Pipeline Browser", namely the plot entry you have from the simulation data and the plot you've just done with the experimental data. And apply to this selection the "Append Attributes" filter.
  4. If it works well, it will give you a merged data set, with both the simulation and experimental data.
  5. Now apply the filter "Plot Data" onto the latest merged data, so that you can now plot all of the desired line plots.
Best regards,
Bruno
dear Bruno, i also can plot the experiment data with our helpful explenation, thank you very much.
wyldckat likes this.
s.m 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
Plot on a curve Monica FLUENT 1 July 11, 2012 00:24
How to plot xy-Y plot of certain nodes maple2012 FLUENT 0 November 5, 2011 11:00
A girl fail to plot velocity profile when mesh changes + Wall function asherah STAR-CCM+ 0 February 19, 2010 18:45
extract datas to plot on graph huiling FLUENT 2 December 8, 2007 03:27
graph plot anindya Main CFD Forum 2 September 17, 2003 12:00


All times are GMT -4. The time now is 09:11.