CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] streamlines to a 2d plot (https://www.cfd-online.com/Forums/paraview/116859-streamlines-2d-plot.html)

Puigar April 26, 2013 11:33

streamlines to a 2d plot
 
hello!

If I have a paraview visualization of a vtk that looks like this:
http://s24.postimg.org/she97vusl/plantilla_N10.png

But I want it to look like a 2D plot with its axes scales with a certain width and height of my choice. Is it possible to transform the paraview visualizations to plots like this??

http://s16.postimg.org/5y1f3f7ol/Scr...6_16_46_50.png

wyldckat April 26, 2013 20:12

Greetings Albert,

I believe that what you're looking for is the "Stream Tracer With Custom Source" filter: http://www.paraview.org/Wiki/ParaVie..._Custom_Source

Very brief instructions are given here: http://www.cfd-online.com/Forums/ope...tml#post303116 - post #2

And keep in mind that you might need more than one tracer!

Best regards,
Bruno

Puigar April 30, 2013 07:01

Dear wyldckat,

I am already using this filter in paraview. My concern is with the elaboration of a scaled plot of the streamlines I have.

I do not know which tool or program to use in order to take profit of my first picture to scale the axes, as it is shown in the second picture.

Thanks anyway!

Albert P

wyldckat May 1, 2013 07:30

1 Attachment(s)
Hi Albert,

Sorry, I had misunderstood the question :(

Look for the "Show cube axes" in the "Display" tab, as shown in the attached image.
Click on the "Edit" button where the mouse cursor is shown on the image and configure it as you wish! :D

Best regards,
Bruno

Puigar May 2, 2013 06:31

Hi bruno,

Thanks for the help. In fact I am able to visualize the plot axes, but I am working on a white background and the axes are also in white.
I haven't found the way to change the color. I go to edit axes after enablind the show cube axes and I change the axe color to black, but it stays in white somehow!


Thank you for all the provided help again!

Best regards,


Albert

wyldckat May 2, 2013 06:58

1 Attachment(s)
Hi Albert,

Ooops, I forgot to test that. Indeed ParaView 3.14 and older have this problem, but ParaView 3.98.0 has this fixed now, as shown in the attachment. And for this option to appear, you have to click on the gear icon on the "Properties" tab, to the right of the "Search" edit box.

You can get the latest ParaView version from here: http://www.paraview.org/paraview/resources/software.php

Best regards,
Bruno

Puigar May 2, 2013 09:30

Hi bruno,
I have already downloaded the version from your provided source. But I am a rookie in linux and I do not know how to install the paraview without being on the repositories. Are you linux user?

Does anyone know how to install paraview 3.98 in linux ubuntu??

Thank you!

PD: I am able to open paraview 3.98, but only from the directory where I have extracted the dowloaded .tar and it is NOt installed

wyldckat May 2, 2013 09:41

Hi Albert,

Yeah, that's normal for the generic builds of ParaView for Linux. There two possible ways to approach this:
  1. You can add the new version to the search PATH variable, such as:
    Code:

    export PATH=$HOME/Downloads/ParaView-3.98.1/bin:$PATH
    Add this line to the end of the file "$HOME/.bashrc" and don't forget to adjust the path to the "bin" folder accordingly.
  2. Or you can create an alias command that works as ... an alias :) Add to the end of the file "$HOME/.bashrc" the following command (adapt accordingly):
    Code:

    alias paraview3981="$HOME/Downloads/ParaView-3.98.1/bin/paraview"
    Then whenever you need to run this version of ParaView from the command line, simply run:
    Code:

    paraview3981
Best regards,
Bruno

Puigar May 7, 2013 03:34

Hi again!
I have applied the two codes that you mentioned, but now I am not able to find my .bashrc file anymore... It seems that it has disapeared. It is sad because I accidentally haven't put correctly the path of the alias and now as I don't find it I can't remodify it.


EDIT: I already found it!
Regards

Albert

Puigar May 9, 2013 06:23

Hi again.

I have advanced quite a bit with the streamline filters. But I have a critical question.
I am displaying averaged velocities of a flow past an obstacle. but I have some doubts on how do I generate the streamlines.

Is there any tool or any way to merge streamlines from vortexes? because as soon as I enlarge the length of the streamline along a vortex (which is circular and it should close) it doesn't, and on top of that it follows the vortex direction, superposing the line really close to the first one and if I put a very large length of the streamline it shows like a narrow spiral.

EDIT: I put two image examples:

http://s7.postimg.org/kb6toy4e3/Scre...9_15_36_21.png

Zoom in of the circle shaped streamline of the right.

http://s9.postimg.org/n88o87bvz/Scre...9_15_36_38.png

Is there any threshold of the variation of velocity to prevent this??

Albert P

wyldckat May 10, 2013 18:42

Hi Albert,

OK, I'm basically half-asleep right now, but I think I found an answer for your question: http://en.wikipedia.org/wiki/Streaml..._and_pathlines
Quote:

By definition, different streamlines at the same instant in a flow do not intersect, because a fluid particle cannot have two different velocities at the same point. Similarly, streaklines cannot intersect themselves or other streaklines, because two particles cannot be present at the same location at the same instant of time; unless the origin point of one of the streaklines also belongs to the streakline of the other origin point. However, pathlines are allowed to intersect themselves or other pathlines (except the starting and end points of the different pathlines, which need to be distinct).
Therefore, I think what you want is a pathline, not a streamline ;)

Best regards,
Bruno

Puigar May 13, 2013 10:49

Hi

I just have tried to look for a filter of these features but it seems that there isn't a filter like that that works fine...

Thank you anyway for all the help!

Albert P

wyldckat May 13, 2013 17:31

Hi Albert,

Sorry, I haven't had the time yet to look into this. But do try one of the latest ParaView versions!

Best regards,
Bruno


All times are GMT -4. The time now is 14:46.