CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > ParaView

streamlines to a 2d plot

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Puigar

Reply
 
LinkBack Thread Tools Display Modes
Old   April 26, 2013, 11:33
Default streamlines to a 2d plot
  #1
New Member
 
Albert Puig
Join Date: Jul 2012
Posts: 24
Rep Power: 4
Puigar is on a distinguished road
hello!

If I have a paraview visualization of a vtk that looks like this:


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

Puigar is offline   Reply With Quote

Old   April 26, 2013, 20:12
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: generation of streamlines: is it possible to have an area source as the seed type? - post #2

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

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 30, 2013, 07:01
Default
  #3
New Member
 
Albert Puig
Join Date: Jul 2012
Posts: 24
Rep Power: 4
Puigar is on a distinguished road
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
Puigar is offline   Reply With Quote

Old   May 1, 2013, 07:30
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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!

Best regards,
Bruno
Attached Images
File Type: jpg Screenshot from 2013-05-01 12:28:44.jpg (41.9 KB, 54 views)
wyldckat is offline   Reply With Quote

Old   May 2, 2013, 06:31
Default
  #5
New Member
 
Albert Puig
Join Date: Jul 2012
Posts: 24
Rep Power: 4
Puigar is on a distinguished road
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
Puigar is offline   Reply With Quote

Old   May 2, 2013, 06:58
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
Attached Images
File Type: jpg Screenshot from 2013-05-02 11:55:38.jpg (40.4 KB, 34 views)
wyldckat is offline   Reply With Quote

Old   May 2, 2013, 09:30
Default
  #7
New Member
 
Albert Puig
Join Date: Jul 2012
Posts: 24
Rep Power: 4
Puigar is on a distinguished road
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
Puigar is offline   Reply With Quote

Old   May 2, 2013, 09:41
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   May 7, 2013, 03:34
Default
  #9
New Member
 
Albert Puig
Join Date: Jul 2012
Posts: 24
Rep Power: 4
Puigar is on a distinguished road
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
wyldckat likes this.

Last edited by Puigar; May 7, 2013 at 06:12.
Puigar is offline   Reply With Quote

Old   May 9, 2013, 06:23
Default
  #10
New Member
 
Albert Puig
Join Date: Jul 2012
Posts: 24
Rep Power: 4
Puigar is on a distinguished road
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:



Zoom in of the circle shaped streamline of the right.



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

Albert P

Last edited by Puigar; May 9, 2013 at 09:47.
Puigar is offline   Reply With Quote

Old   May 10, 2013, 18:42
Default
  #11
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   May 13, 2013, 10:49
Default
  #12
New Member
 
Albert Puig
Join Date: Jul 2012
Posts: 24
Rep Power: 4
Puigar is on a distinguished road
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
Puigar is offline   Reply With Quote

Old   May 13, 2013, 17:31
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
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
Paraview: how to plot streamlines and surface mesh together serena OpenFOAM Paraview & paraFoam 3 September 9, 2012 22:13
CFD-Post how to plot stress and streamlines? Airone CFX 3 July 9, 2010 11:56
Plot streamlines DAKA Main CFD Forum 1 May 10, 2010 08:49
How to plot streamlines...? sushii FLUENT 2 October 26, 2007 06:06
plot streamlines JJ Main CFD Forum 2 December 20, 1999 13:21


All times are GMT -4. The time now is 19:44.