|
[Sponsors] |
August 23, 2013, 04:12 |
2 datas on one plot
|
#1 |
Member
|
Hello!
I need some help with paraiew. I calculated my task with 2 different boundary conditions and now I need to display my results on plot. I have 2D task. At 1 step I create plane and then use "Plot Data". But it works only for one task. Is it possible to display results of my 2 task on one plot? If so, it would be more easy to see difference. |
|
August 24, 2013, 13:08 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Greetings Arina,
Attached is an example that shows:
Bruno
__________________
|
|
August 31, 2013, 17:16 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Hi dear Bruno
I got this error: Code:
ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 vtkOpenFOAMReaderPrivate (0x24370e0): Error reading line 19 of /home/ehsan/Desktop/WR_inviscid/0/T: Expected number, string or (, found Temperature ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 vtkOpenFOAMReaderPrivate (0x24370e0): Error reading line 19 of /home/ehsan/Desktop/WR_inviscid/0/U: Expected number, string or (, found Velocity ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6481 vtkOpenFOAMReaderPrivate (0x24370e0): Error reading line 19 of /home/ehsan/Desktop/WR_inviscid/0/p: Expected number, string or (, found Pressure ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0xa755c70): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0xa755a90): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x89a1560): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x89a13d0): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0xc8b6e90): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0xc8b6cb0): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0xc8bfdd0): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0xc8bfca0): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x9ef88e0): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x9ef8540): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x9f02ab0): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x9f02980): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x9f05150): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x9f05020): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x9f0d800): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x9f0d640): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x67cc220): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x67cc720): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x2ab1690): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x2ab1560): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x9ef1980): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x2ab21f0): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x2ae3920): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x2ae37f0): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x2adec80): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x2adeb50): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x67d78e0): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x67d2a10): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x67da140): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x67da010): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x67df740): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x2ae6680): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x2af7950): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x2aea820): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x2afe230): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x2afe0d0): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x2af9b90): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x67e8840): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x7a95140): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x7a94fb0): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x7a97550): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x7a97320): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x7a99c80): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x7a99af0): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x7a9c3f0): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x7a9c260): No X column is set (index 0). ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Filtering/vtkAlgorithm.cxx, line 553 vtkContextMapper2D (0x7a9e4a0): Attempt to get point or cell data from a data object ERROR: In /home/opencfd/OpenFOAM/ThirdParty-dev/ParaView-3.12.0/VTK/Charts/vtkPlotPoints.cxx, line 635 vtkPlotLine (0x7a966b0): No X column is set (index 0).
__________________
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. |
|
August 31, 2013, 17:44 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
A snapshot of what you're seeing in the "Display" tab would help understand what you configured wrong. In addition, you want to see data from different times? You didn't mention that on the other thread... I haven't tested this, but it might work:
Bruno edit: If using OpenFOAM to generated the results that are shown in ParaView, then see this post: http://www.cfd-online.com/Forums/ope...tml#post449126 post #20
__________________
Last edited by wyldckat; September 1, 2013 at 09:18. Reason: see "edit:" and (edit: ) |
|
September 1, 2013, 06:00 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Code:
Greetings Arina, Attached is an example that shows: On the right is the plot with 4 lines, 2 of each plot. On the top left is the "Pipeline Browser" that has the 2 plot filters that are shown on the right. Notice that both have the eye icon turned on. On the bottom left on the "Object Inspector" is shown where you can configure the lines. Best regards, Bruno yes I want to have graphs of two different times of one field,whats the other scenario?I mean how you have created the attached figure? if there are in one time all graphs should coincide together and make only one graph,and I don't know how you have obtained two p field and two U field only in one snapshot?
__________________
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. |
|
September 1, 2013, 06:08 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Quote:
And as discussed at the following post: http://www.cfd-online.com/Forums/ope...tml#post449126 post #20 - on OpenFOAM, the easiest is to copy the field from one time snapshot to the next one, so that you can compare the values from 2 time snapshots. Best regards, Bruno
__________________
|
||
September 1, 2013, 06:21 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I didn't check mark the "write all timesteps..." is it true?
but when I open .vtk files nothing is shown in paraView.
__________________
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. |
|
September 1, 2013, 07:03 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Quote:
__________________
|
||
September 1, 2013, 08:56 |
|
#9 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Hi Bruno
I only want to plot 3-4 figures that show the run data is almost the same in two sequential last cycles.each cycle period lasts about .001s and I want to plot some fields in present(the last)cycle and previous cycle. how can use plot over line for seeing saved vtk's?
__________________
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. |
|
September 1, 2013, 09:51 |
|
#11 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
second figure can't be loaded
it was hard to upload these due to internet speed!
__________________
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. |
|
September 1, 2013, 10:36 |
|
#12 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Bruno the second graph is not opened in the first figure,
this way is better than subtracting fields due to those little points with high values I posted in http://www.cfd-online.com/Forums/ope...tml#post449205.
__________________
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. |
|
September 1, 2013, 10:38 |
|
#13 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
According to the images you've attached, the second one clearly shows that you mistakenly saved the second second graphic as PNG, instead of VTK
|
|
September 1, 2013, 11:02 |
|
#14 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thanks,they plot correctly now,a question,I have saved them by p Field only but there are other fields too when I open them,is it true according to vtk properties?
__________________
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. |
|
September 1, 2013, 11:08 |
|
#15 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
and another thing is that when I open paraview,two panels open,with or without -builtin what may be the cause?
__________________
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. |
|
September 1, 2013, 12:34 |
|
#16 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
can change the names of fields on graphs and add aome explanations to them on the graph too?
__________________
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. |
|
September 1, 2013, 13:21 |
|
#17 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Quote:
Quote:
Quote:
As for annotations on the plot... you can't add loose annotations, but you can add titles to the axis and figure, as shown in the attached image.
__________________
|
||||
September 1, 2013, 15:29 |
|
#18 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thanks for explanations.but isn't there a quicker approach without saving each plot and close the paraview,again open it and open two plots and delete exess fields?
------------- and how use calculator(in which branch in pipeline browser it have to be?)
__________________
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. |
|
September 1, 2013, 17:05 |
|
#19 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128 |
Quote:
This is because ParaView uses only a single time line and it does not have a filter that can offset the time at which a particular dataset is in. Quote:
That's how I learned .
__________________
|
|||
September 2, 2013, 06:11 |
|
#20 | |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Quote:
__________________
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. |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |