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

[General] 2 datas on one plot

Register Blogs Community New Posts Updated Threads Search

Like Tree9Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2013, 10:26
Default
  #41
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
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, 10 views)
s.m is offline   Reply With Quote

Old   December 1, 2013, 10:35
Default
  #42
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
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, 8 views)
File Type: jpg 15.jpg (32.9 KB, 6 views)
s.m is offline   Reply With Quote

Old   December 1, 2013, 10:40
Default
  #43
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
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, 5 views)
File Type: jpg 16.jpg (38.1 KB, 4 views)
File Type: jpg 17.jpg (45.4 KB, 6 views)
File Type: jpg 18.jpg (45.7 KB, 8 views)
File Type: jpg 19.jpg (46.9 KB, 7 views)
s.m is offline   Reply With Quote

Old   December 1, 2013, 11:34
Default
  #44
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
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, 12:33
Default
  #45
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
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, 12 views)
s.m is offline   Reply With Quote

Old   December 1, 2013, 13:14
Default
  #46
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
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, 14:06
Default
  #47
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 14
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


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
plot along a circle pcn90 FLUENT 2 May 7, 2017 06:41
[OpenFOAM] Convergence validation with Plot Over Time jam68 ParaView 1 February 11, 2017 17:05
[swak4Foam] Foam warnings - related to swak4Foam Salam-H OpenFOAM Community Contributions 20 August 2, 2015 15:40
extract datas to plot on graph huiling FLUENT 2 December 8, 2007 02:27
graph plot anindya Main CFD Forum 2 September 17, 2003 12:00


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