CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

plot streamline

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

LinkBack Thread Tools Display Modes
Old   December 15, 2008, 01:49
Default plot streamline
Posts: n/a
Can some one give me the method to plot streamline, suppose I have the grid data for x,y,u,v?

I tried tecplot and got streamlines with using streamtrace, but I want streamline values at some specific values.

Does anyone has a code to produce this?

Or do I have to calculate omega (the vorticity) and should solve d^2 psi/dx^2+d^2 psi/dy^2=omega, where psi is the streamfunction?

Or does some one give me the script for gnuplot, that is most appreciated also.

Or any suggestion appreciated.


  Reply With Quote

Old   December 15, 2008, 20:27
Default Re: plot streamline
Posts: n/a
Yes, just solve the Poisson equation with vorticity on the rhs.
  Reply With Quote

Old   December 15, 2008, 23:25
Default Re: plot streamline
Posts: n/a
I have appreciated the confirmation. I will do that. Cheers TAW
  Reply With Quote

Old   December 16, 2008, 05:24
Default Re: plot streamline
Ananda Himansu
Posts: n/a
Pick any curve that you already know is a streamline, which is closed, or for which both ends lie on domain boundaries. Typically, you would pick the surface of a solid wall. Then integrate away from the curve systematically until you have a value of psi at all nodes. Use the basic definition of psi, so that d(psi)= rho*u*dy or d(psi)= -rho*v*dx, depending on whether you are integrating in the vertical or horizontal direction. If you are forced to integrate in a direction which is neither vertical or horizontal, then d(psi)=rho*(u*dy-v*dx). If you have obtained the solution with a finite volume scheme, use the same numerical integration formula for psi that is used by the FV scheme in evaluating the mass flux through the faces of the cell (control volume). This would give consistent values of psi at each node, regardless of the integration path. Otherwise, you may have to integrate both vertically and horizontally and do some averaging to get a single-valued psi.

The above integration can be done starting from a single node to which you assign an arbitrary value of the stream function. The only reasons for starting from a curve are to get the wall to exactly be a streamline, and to enable integration in a single direction rather than having to integrate in both directions. For example, for a cylinder in crossflow, you would define the cylinder surface as having a constant value of psi, and then integrate radially away from that surface.
  Reply With Quote

Old   April 27, 2009, 02:19
New Member
Join Date: Apr 2009
Posts: 13
Rep Power: 8
student_58 is on a distinguished road
İf you know Matlab, you can use contoutf(x,y,w) or contour(x,y,w) commands.
student_58 is offline   Reply With Quote

Old   April 27, 2009, 09:15
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 96
Rep Power: 9
Jonas Holdeman is on a distinguished road
You can, of course, assume a scalar (stream) function defined on your mesh (I am thinking finite element method here). Do a least squares fit of the curl of this function to your velocity field (you will have to constrain the function at one point to establish the reference level because you are fitting a derivative). Stream lines can be found by contouring the stream function. You can use your fitted function to evaluate the stream function at any point as you specified.
Jonas Holdeman is offline   Reply With Quote

Old   August 16, 2009, 12:26
Default velocity vector, streamline and stream function
New Member
Join Date: Mar 2009
Posts: 16
Rep Power: 8
Hussam is on a distinguished road
Dear Sir
My name is Hussam Ali Khalaf, postgraduate student in Iraq and Am currently working on “A Solution Algorithm for Transient Fluid Flow with Multiple Free Boundaries”
I have results for velocities values (u and v) in directions x and y for undular bore evolution (please, note the file attachment), rectangular uniform mesh (2Dimension, (i,j)=(22,10)) consists of 20 cells in the horizontal direction (length=12 , ∆x=0.6) and 8 cells in the vertical direction (height=1.6, ∆y=0.2).
Am supposed to draw velocity vector, streamline and stream function . I have a program TecPLOT, I have tried several times but I don’t fully understand how TecPLOT reads the results, would you please help me if you have any idea on how to go about it.
Thank in advance

Yours sincerely
Hussam Ali Khalaf
Hussam is offline   Reply With Quote


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
How to plot streamline with panel method? Fluman Main CFD Forum 2 June 2, 2014 05:51
streamline plot for multiphase problem lionlove0903 OpenFOAM Post-Processing 2 March 14, 2011 16:25
Plot streamline by Tecplot aiqch Tecplot 0 June 15, 2009 20:57
Is it possible to plot streamline on a user surface fkzstar CFX 2 April 8, 2009 05:30
How to plot streamline for 2D case? Feng FLUENT 2 November 13, 2006 16:28

All times are GMT -4. The time now is 08:20.