CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] 2 datas on one plot (https://www.cfd-online.com/Forums/paraview/122612-2-datas-one-plot.html)

Akuji August 23, 2013 04:12

2 datas on one plot
 
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.

wyldckat August 24, 2013 13:08

1 Attachment(s)
Greetings Arina,

Attached is an example that shows:
  1. On the right is the plot with 4 lines, 2 of each plot.
  2. 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.
  3. On the bottom left on the "Object Inspector" is shown where you can configure the lines.
Best regards,
Bruno

immortality August 31, 2013 17:16

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).

and I don't get two graphs in two different times,both two times becomes the same when I change each one!:confused:

wyldckat August 31, 2013 17:44

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:
  1. Once you have the plot data for one time instance, you can save it with the "File -> Save Data" option and save it as VTK.
  2. Then skip to the other time instance and save that one as well.
  3. Open another ParaView and load the two files you saved.
  4. (edit: ) For each loaded VTK file, apply the filter "Plot Data" to each one, so that each 3D line that was saved in the VTK files, will be plotted in the graph.
Best regards,
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

immortality September 1, 2013 06:00

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

Hi 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?:confused:

wyldckat September 1, 2013 06:08

Hi Ehsan,

Quote:

Originally Posted by immortality (Post 449156)
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?:confused:

The snapshot clearly shows that there are 2 plot filters being used and shown in the same plot representation! It's two "Plot over line" filters that were used for 2 different 3D lines for the same time instance.


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

immortality September 1, 2013 06:21

I didn't check mark the "write all timesteps..." is it true?
but when I open .vtk files nothing is shown in paraView.:mad:

wyldckat September 1, 2013 07:03

Quote:

Originally Posted by immortality (Post 449162)
I didn't check mark the "write all timesteps..." is it true?
but when I open .vtk files nothing is shown in paraView.:mad:

  • Writing all time steps might make it easier for you to have all of the lines for all time steps. This way you don't need to save each one individually. The problem is that the saved VTK files do not preserve the indication of the time which they are meant for, so it can get a bit disorienting.
  • The VTK file saved from a "Plot over Line" is only the line. To plot these lines from the VTK files back to the chart, use the filter "Plot Data".

immortality September 1, 2013 08:56

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?:confused:

wyldckat September 1, 2013 09:19

Read post #4, because I've updated it.

immortality September 1, 2013 09:51

2 Attachment(s)
second figure can't be loaded :(
it was hard to upload these due to internet speed!

immortality September 1, 2013 10:36

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.

wyldckat September 1, 2013 10:38

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 :(

immortality September 1, 2013 11:02

2 Attachment(s)
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?

immortality September 1, 2013 11:08

1 Attachment(s)
and another thing is that when I open paraview,two panels open,with or without -builtin what may be the cause?

immortality September 1, 2013 12:34

can change the names of fields on graphs and add aome explanations to them on the graph too?

wyldckat September 1, 2013 13:21

1 Attachment(s)
Quote:

Originally Posted by immortality (Post 449212)
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?

The "Save Data" option from the "File" menu should save all of the requested data from the selected items. Therefore, yes, that's normal that it saves values from all fields present in those lines.

Quote:

Originally Posted by immortality (Post 449213)
and another thing is that when I open paraview,two panels open,with or without -builtin what may be the cause?

That's a bit strange.... I guess that ParaView saved this in its "ParaView.ini" file. If you close the second one and safely close ParaView, it should save the current window settings into the ini file.

Quote:

Originally Posted by immortality (Post 449227)
can change the names of fields on graphs and add aome explanations to them on the graph too?

Renaming fields... no. But, for example, you can use the "Calculator" filter to calculate that "U" is "Velocity" :D
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.

immortality September 1, 2013 15:29

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?)

wyldckat September 1, 2013 17:05

Quote:

Originally Posted by immortality (Post 449246)
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? :)

The only way that I can think of would require considerable hacking into the "PV3FoamReader" plug-in for ParaView.
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:

Originally Posted by immortality (Post 449246)
and how use calculator(in which branch in pipeline browser it have to be?)

It's simple: do some trial-and-error until you can figure it out :p.
That's how I learned :rolleyes:.

immortality September 2, 2013 06:11

Quote:

It's simple: do some trial-and-error until you can figure it out .
That's how I learned .
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?

immortality September 3, 2013 10:11

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?

wyldckat September 3, 2013 16:40

3 Attachment(s)
Quote:

Originally Posted by immortality (Post 449332)
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 (Post 449572)
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!

immortality September 3, 2013 16:49

Hi Bruno
thanks,but I passed from this barrier:D this evening!;)
I made VTK's files with new names,but ther is a problem in images in extremes of x-dimension.

immortality September 5, 2013 10:48

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.:mad: ;)

immortality September 6, 2013 10:35

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 :D

wyldckat September 7, 2013 03:49

Hi Ehsan,
Quote:

Originally Posted by immortality (Post 450093)
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.:mad: ;)

Well, I did say that you should experiment on your own, namely to do some trial-and-error.

Quote:

Originally Posted by immortality (Post 450233)
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 :D

How nice. You almost demand to know exactly how to do every single step and then you're not able to detail things yourself :mad:
For starters, what do you mean by:
Quote:

Originally Posted by immortality (Post 450233)
now I found out that generating new fields for high number of graphs is better

Best regards,
Bruno

immortality September 7, 2013 06:46

1 Attachment(s)
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.

immortality September 9, 2013 05:47

why can't plot dashed lines?
no change occurs when I select one of dashes in the list and the lines are only continuous.

wyldckat September 9, 2013 14:09

1 Attachment(s)
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

immortality September 9, 2013 14:36

1 Attachment(s)
Hi Bruno :)
I think its because of VTK format.
could you have a look into it?
thanks a lot.;)

wyldckat September 9, 2013 14:46

1 Attachment(s)
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?

immortality September 9, 2013 16:11

1 Attachment(s)
I did what you said but it doesn't work for me:(:confused:

wyldckat September 9, 2013 16:22

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 :(

immortality September 9, 2013 16:46

1 Attachment(s)
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.:)

immortality September 9, 2013 17:00

1 Attachment(s)
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?

wyldckat September 9, 2013 17:31

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.

immortality September 9, 2013 17:44

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!

immortality September 9, 2013 17:54

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.

s.m December 1, 2013 07:18

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.

wyldckat December 1, 2013 08:32

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


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