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   September 3, 2013, 11:11
Default
  #21
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Hi again
I used Calculator for creating fields with new names but it seems it can be possible to make only one field in this way and previous fields disappear,how can solve this problem to have more fields with new different names like p -> p_KE_lastCycle?
__________________
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   September 3, 2013, 17:40
Default
  #22
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 immortality View Post
Bruno I know how to work with Calculator but don't understand the way you suggest for having two different names for diagrams!when I have to use calculator?I think before saving,right?
Quote:
Originally Posted by immortality View Post
Hi again
I used Calculator for creating fields with new names but it seems it can be possible to make only one field in this way and previous fields disappear,how can solve this problem to have more fields with new different names like p -> p_KE_lastCycle?
You've reminded me that there are several forms of blindness, specially when a person's eyes are working perfectly fine...

Anyway, it's very simple: when the "Calculator" filter is applied to an item on the "Pipeline Browser", it will add a new field of the desired type, with the name we request it to use. More specifically, it will only operate on "Cell Data" or "Point Data", not both at the same time. But it will still preserve all original fields.

Attached are 3 images, which help illustrate the following steps:
  1. Run paraFoam as usual.
  2. Apply once the filter "Calculator" to it and configure it accordingly to the first image "1st Calculator.png".
  3. After clicking on the "Apply" button, you'll see that on the drop-down box (as at the top of the image) you will be able to choose the "Velocity" field.
  4. Next, while the "Calculator1" item is still selected on the "Pipeline Browser", apply another "Calculator" filter. Configure accordingly as to the second image "2nd Calculator.png".
  5. After the "Apply" button, you'll see that on the drop-down box (as at the top of the image) you will be able to choose the "Pressure" field.
  6. Keep in mind that both were defined to be calculated based on the "Point Data", but you could have chosen to base the calculation on "Cell Data".
  7. Next, while the "Calculator2" item is still selected on the "Pipeline Browser", apply the filter "Plot Over Line" and configure it accordingly to the image "Plot.png".


edit: I forgot to answer the first question: It's a filter! You can use it whenever you want, wherever you see that it's best, quickest, or even more practical to use it!
Attached Images
File Type: jpg 1st Calculator.jpg (29.0 KB, 24 views)
File Type: jpg 2nd Calculator.jpg (29.4 KB, 21 views)
File Type: jpg Plot.jpg (47.6 KB, 23 views)
s.m likes this.
__________________

Last edited by wyldckat; September 3, 2013 at 17:41. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   September 3, 2013, 17:49
Default
  #23
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Hi Bruno
thanks,but I passed from this barrier this evening!
I made VTK's files with new names,but ther is a problem in images in extremes of x-dimension.
__________________
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   September 5, 2013, 11:48
Default
  #24
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Bruno
I found out by accident that it is simply possible by one click on the field color box in line series and we can edit Legend Name directly.it was no need to use various calculator and making new fields at all.
__________________
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   September 6, 2013, 11:35
Default
  #25
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
now I found out that generating new fields for high number of graphs is better(less time consumable) than change Legend names for each figure separately
__________________
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   September 7, 2013, 04:49
Default
  #26
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 Ehsan,
Quote:
Originally Posted by immortality View Post
Bruno
I found out by accident that it is simply possible by one click on the field color box in line series and we can edit Legend Name directly.it was no need to use various calculator and making new fields at all.
Well, I did say that you should experiment on your own, namely to do some trial-and-error.

Quote:
Originally Posted by immortality View Post
now I found out that generating new fields for high number of graphs is better(less time consumable) than change Legend names for each figure separately
How nice. You almost demand to know exactly how to do every single step and then you're not able to detail things yourself
For starters, what do you mean by:
Quote:
Originally Posted by immortality View Post
now I found out that generating new fields for high number of graphs is better
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 7, 2013, 07:46
Default
  #27
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
I wanted to plot three graphs of three cases in one plotting,for example in time1 I want to plot pressure versus x,and in time2 till time 5( for all 3 cases in each time) ,then its easier to define a field with a name for all times rather than editing legends one by one for each times(p-inviscid,p-KO,p-KE for time1,again p-inviscid,p-KO,p-PE for time 2,...).
only I select appropriate fields with favorable names.

-----------

its an instance graph,maybe for fewer data's changing legends be better.
Attached Images
File Type: jpg 1020-p0.jpg (37.7 KB, 21 views)
__________________
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.

Last edited by wyldckat; September 9, 2013 at 15:03.
immortality is offline   Reply With Quote

Old   September 9, 2013, 06:47
Default
  #28
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
why can't plot dashed lines?
no change occurs when I select one of dashes in the list and the lines are only continuous.
__________________
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   September 9, 2013, 15:09
Default
  #29
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 Ehsan,

Seriously, step-by-step of what you've done and/or example data would come in handy for reproducing the same error.
Because as shown in attachment, I had absolutely no problem in changing to dashes.

Best regards,
Bruno
Attached Images
File Type: jpg Screenshot from 2013-09-09 19:07:51.jpg (47.8 KB, 15 views)
__________________
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 15:36
Default
  #30
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Hi Bruno
I think its because of VTK format.
could you have a look into it?
thanks a lot.
Attached Files
File Type: gz 1020.vtk.tar.gz (6.6 KB, 1 views)
__________________
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   September 9, 2013, 15:46
Default
  #31
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 had absolutely no problem plotting with dashes, as shown in the attached image:
  1. Opened the VTK file in ParaView 3.12.0.
  2. Applied the filter "Plot Data".
  3. Went to the "Display" tab and turned off all lines, then turned on only the U line.
  4. Chose for the U line to use dashes.
  5. The result is shown in attachment.

What steps do you do with the VTK file you provided and which lead to not showing the dashed lines?
Attached Images
File Type: jpg Screenshot from 2013-09-09 19:43:05.jpg (44.1 KB, 13 views)
__________________
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 17:11
Default
  #32
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
I did what you said but it doesn't work for me
Attached Images
File Type: jpg Screenshot at 2013-09-10 00:34:35.jpg (53.8 KB, 9 views)
__________________
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   September 9, 2013, 17:22
Default
  #33
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Strange... some setting in ParaView must have gotten messed up. Try running ParaView like this:
Code:
paraview -dr
It will run ParaView with the default options.
Open the VTK file and plot the data once again and try again to change to the dashed lines.

If this works, then close ParaView and remove this file:
Code:
~/.config/ParaView/ParaView3.12.0.ini
The next time you open ParaView (no need for the "-dr" option), it will be starting with the default options and you will be able to work as if nothing had happened before.


If this doesn't work... then I don't know what the problem is
__________________
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 17:46
Default
  #34
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
Bruno it didn't plot dash lines,not important,I've ended plotting with paraview only thought may improve the appearances but not important at all,thanks for considerations and efforts for help.
Attached Images
File Type: jpg Screenshot at 2013-09-10 01:12:13.jpg (52.8 KB, 7 views)
__________________
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   September 9, 2013, 18:00
Default
  #35
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
dear Bruno I noticed now that its not related to VTK files, the ordinary "plot over line" has the same issue as attached,there is no any idea?
Attached Images
File Type: jpg no-dash.jpg (27.7 KB, 6 views)
__________________
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   September 9, 2013, 18:31
Default
  #36
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 don't know. I can only suspect that it's either:
  • A rendering problem. Although it's strange why with only this, it doesn't work properly.
  • Or there is a problem with the Qt version that your ParaView version is using.
Do you still have the OpenFOAM 1.6-ext installation working? Because you had a dedicated ParaView 3.12.0 for it, which might work better.
__________________
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 18:44
Default
  #37
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
its also a similar issue:
http://paraview.org/Bug/view.php?id=12009
it seems such issues takes place by not known reasons!maybe by chance!
__________________
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   September 9, 2013, 18:54
Default
  #38
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
I did it without change,maybe the data are very many and dashes are too small.
Code:
~/.config/ParaView/ParaView3.12.0.ini
OK maybe its better to end this subject.
__________________
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   December 1, 2013, 08:18
Default
  #39
s.m
Senior Member
 
saeideh mohamadi
Join Date: Aug 2012
Posts: 229
Rep Power: 15
s.m is on a distinguished road
hi dear all,

i simulate the flow over an airfoil with 3 turbulence model, i extract the VTK file of each of them separately, i plot the Cp, for each of them separately,but i want plot the pressure curve of three of them with together in one plot and then comparision their results each other and also with experiment data,what should i do?
can anybody help me???
thank you very much.
s.m is offline   Reply With Quote

Old   December 1, 2013, 09:32
Default
  #40
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
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 "Append Attributes".
    (edit: I originally had written "Group Datasets", but it should be "Append Attributes" filter.)
  8. Now apply the plot filter to the "Append Attributes" 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
s.m likes this.
__________________

Last edited by wyldckat; December 1, 2013 at 12:36. Reason: see "edit:"
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
plot along a circle pcn90 FLUENT 2 May 7, 2017 07:41
[OpenFOAM] Convergence validation with Plot Over Time jam68 ParaView 1 February 11, 2017 18:05
[swak4Foam] Foam warnings - related to swak4Foam Salam-H OpenFOAM Community Contributions 20 August 2, 2015 16:40
extract datas to plot on graph huiling FLUENT 2 December 8, 2007 03:27
graph plot anindya Main CFD Forum 2 September 17, 2003 13:00


All times are GMT -4. The time now is 07:01.