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   September 3, 2013, 10:11
Default
  #21
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 16:40
Default
  #22
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 7 views)
File Type: jpg 2nd Calculator.jpg (29.4 KB, 7 views)
File Type: jpg Plot.jpg (47.6 KB, 7 views)
s.m likes this.

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

Old   September 3, 2013, 16:49
Default
  #23
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 10:48
Default
  #24
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 10:35
Default
  #25
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 03:49
Default
  #26
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 06:46
Default
  #27
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 10 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 14:03.
immortality is offline   Reply With Quote

Old   September 9, 2013, 05:47
Default
  #28
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 14:09
Default
  #29
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 5 views)
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 14:36
Default
  #30
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 14:46
Default
  #31
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 5 views)
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 16:11
Default
  #32
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 5 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, 16:22
Default
  #33
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 16:46
Default
  #34
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 5 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:00
Default
  #35
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 3 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:31
Default
  #36
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 17:44
Default
  #37
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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, 17:54
Default
  #38
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
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: 5
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

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 02:00.