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. |
1 Attachment(s)
Greetings Arina,
Attached is an example that shows:
Bruno |
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 |
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 |
Code:
Greetings Arina, 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: |
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 |
I didn't check mark the "write all timesteps..." is it true?
but when I open .vtk files nothing is shown in paraView.:mad: |
Quote:
|
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: |
Read post #4, because I've updated it.
|
2 Attachment(s)
second figure can't be loaded :(
it was hard to upload these due to internet speed! |
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. |
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 :(
|
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?
|
1 Attachment(s)
and another thing is that when I open paraview,two panels open,with or without -builtin what may be the cause?
|
can change the names of fields on graphs and add aome explanations to them on the graph too?
|
1 Attachment(s)
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. |
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?) |
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 :rolleyes:. |
Quote:
|
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? |
3 Attachment(s)
Quote:
Quote:
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:
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! |
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. |
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: ;) |
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
|
Hi Ehsan,
Quote:
Quote:
For starters, what do you mean by: Quote:
Bruno |
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. |
why can't plot dashed lines?
no change occurs when I select one of dashes in the list and the lines are only continuous. |
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 |
1 Attachment(s)
Hi Bruno :)
I think its because of VTK format. could you have a look into it? thanks a lot.;) |
1 Attachment(s)
I had absolutely no problem plotting with dashes, as shown in the attached image:
What steps do you do with the VTK file you provided and which lead to not showing the dashed lines? |
1 Attachment(s)
I did what you said but it doesn't work for me:(:confused:
|
Strange... some setting in ParaView must have gotten messed up. Try running ParaView like this:
Code:
paraview -dr 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 If this doesn't work... then I don't know what the problem is :( |
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.:)
|
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?
|
I don't know. I can only suspect that it's either:
|
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! |
I did it without change,maybe the data are very many and dashes are too small.
Code:
~/.config/ParaView/ParaView3.12.0.ini |
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. |
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:
Bruno |
All times are GMT -4. The time now is 21:01. |