
[Sponsors] 
April 16, 2003, 13:08 
Plotting Streamlines

#1 
Guest
Posts: n/a

Hello,
I am looking for possibility to plot my 2D vector field data with streamlines technique (steady field). I know that there are two possibilities to do it by myself  to track particle movement or calculate Streamlinefunction. So if anybody know aswers for my questions, please.. answer! 1. How to calculate Streamlinefunction from NX.NY values of (u.v) 2. If I am ok with equation (I found it in cfdonline.com archives): rot rot PSI = rot V then how to start with solving it? 3. Is available any free software for simple streamlines plot for windows operating system? I would be very gratefull for any answer. Thank you, Maciej Matyka http://panoramix.ift.uni.wroc.pl/~maq ps. After finish of my work on SIMPLE solver, c source code with paper "SIMPLE, so SIMPLE..." will be published on my web page 

April 17, 2003, 03:20 
Re: Plotting Streamlines

#2 
Guest
Posts: n/a

Assuming you have Matlab, the streamline function will do the job.


April 17, 2003, 06:02 
Re: Plotting Streamlines

#3 
Guest
Posts: n/a

Hello, Do you know maybe if Matlab uses tracking particle or streamline function technique?


April 17, 2003, 08:49 
Re: Plotting Streamlines

#4 
Guest
Posts: n/a

I don't know. I've just read the help file form streamline.m or stream2.m but it don't help a lot on this topic.
May be you can try on the Mathworks site http://www.mathworks.com/ 

April 17, 2003, 10:34 
Re: Plotting Streamlines

#5 
Guest
Posts: n/a

Could you send me any example how to do it? I am not familiar with any software like MatLab, I will try do it now, but anyway  I am programmer and using software done by someone else.. brr.. Even If it is a Matlab My email is maq@panoramix.ift.uni.wroc.pl, I tried to search some examples, and maybe it is easy, but provided examples don't talk to me. I have two files .txt with straightforward NX.NY values of velocity in X and Y directions. Best Regards,Maciek.


April 17, 2003, 10:38 
Re: Plotting Streamlines

#6 
Guest
Posts: n/a

This is a bit descriptive so read on : By definition Curl(Psi)=V so Curl(curl(Psi))=Curl(V) > L(Psi)=Curl(V) where L is the laplacian operator ~ This is a Poisson equation and can be easily solved by writing the Laplacian in CD2 and solving the resulting sparse matrix equation.But you WILL need the boundary conditions for Psi to solve this depending on the problem(This is easy to do in 2D problems Some fixed constant value on the solid surface + freestream boundary conditions).
Once you've obtained the Psi matrix over [Nx,Ny] just use matlab or gnuplot to get a contour plot which will give you the streamlines of the flow(since your problem is steady the streamfunction contours will correspond to the stream lines) Finally in steady particle tracking(if I guess what you mean by it, as I am not aware of the jargon) and plotting the streamfunction should give identical results. 

April 24, 2003, 03:11 
Re: Plotting Streamlines

#7 
Guest
Posts: n/a

Just a curiosity: why do you need the stream function if you have already the velocity field? dy/dx=v/u (known) so that it can be easily integrated.
In this way you haven't to solve the laplace equation that is not so trivial (expecially if the grid is not cartesian) 

May 8, 2003, 05:39 
Re: Plotting Streamlines

#8 
Guest
Posts: n/a

Dario is correct. You may compute the stream function using the integral relation between it and the velocity components. Once that is done use any contour plotter to plot the lines of constant stream function. Do you need to know how to compute the stream function from the velocity components?


December 17, 2009, 15:29 
streamlines

#9 
New Member
Join Date: Dec 2009
Posts: 1
Rep Power: 0 
Yess would you please show me how to calculate streamlines from 2D PIV vector field?
thanks 

August 14, 2013, 10:55 
@Salakta

#10 
New Member
Bineet Mehra
Join Date: Aug 2013
Posts: 18
Rep Power: 5 
Hey, i am also facing the same problem . I have 2D PIV velocity data and want to plot streamlines in Matlab , Are you able to do it ? Can you please help me


August 14, 2013, 10:57 

#11 
New Member
Bineet Mehra
Join Date: Aug 2013
Posts: 18
Rep Power: 5 
integration of U wrt Y and V wrt X?


August 14, 2013, 11:06 

#12  
New Member
Bineet Mehra
Join Date: Aug 2013
Posts: 18
Rep Power: 5 
Quote:


August 14, 2013, 11:10 

#13  
New Member
Bineet Mehra
Join Date: Aug 2013
Posts: 18
Rep Power: 5 
Quote:
Thanks 

August 14, 2013, 18:00 

#14 
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 2,510
Rep Power: 31 
just solve the differential equation dy/dx=v/u


Thread Tools  
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
plotting streamlines in fluent  Usman  FLUENT  0  August 25, 2008 18:14 
plotting streamlines  taran  FLUENT  2  July 2, 2007 15:43 
plotting streamlines  taran  FLUENT  0  July 2, 2007 08:50 
Plotting Streamlines  James Date  Main CFD Forum  13  March 15, 2000 16:42 
STARCD, moving grid and streamlines  Mohamed GUEROUACHE  Main CFD Forum  1  September 13, 1999 13:33 