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

Plotting Streamlines

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2003, 14:08
Default Plotting Streamlines
  #1
Maciej Matyka
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 Streamline-function.

So if anybody know aswers for my questions, please.. answer!

1. How to calculate Streamline-function from NX.NY values of (u.v)

2. If I am ok with equation (I found it in cfd-online.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
  Reply With Quote

Old   April 17, 2003, 04:20
Default Re: Plotting Streamlines
  #2
Jean-François Simon
Guest
 
Posts: n/a
Assuming you have Matlab, the streamline function will do the job.
  Reply With Quote

Old   April 17, 2003, 07:02
Default Re: Plotting Streamlines
  #3
Maciej Matyka
Guest
 
Posts: n/a
Hello, Do you know maybe if Matlab uses tracking particle or streamline function technique?
  Reply With Quote

Old   April 17, 2003, 09:49
Default Re: Plotting Streamlines
  #4
Jean-François Simon
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/
  Reply With Quote

Old   April 17, 2003, 11:34
Default Re: Plotting Streamlines
  #5
Maciej Matyka
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.
  Reply With Quote

Old   April 17, 2003, 11:38
Default Re: Plotting Streamlines
  #6
kaushik
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.

  Reply With Quote

Old   April 24, 2003, 04:11
Default Re: Plotting Streamlines
  #7
Dario
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)
  Reply With Quote

Old   May 8, 2003, 06:39
Default Re: Plotting Streamlines
  #8
Bob Roach
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?
  Reply With Quote

Old   December 17, 2009, 15:29
Default streamlines
  #9
New Member
 
Join Date: Dec 2009
Posts: 1
Rep Power: 0
salakta is on a distinguished road
Yess would you please show me how to calculate streamlines from 2D PIV vector field?

thanks
salakta is offline   Reply With Quote

Old   August 14, 2013, 11:55
Default @Salakta
  #10
Member
 
Bineet Mehra
Join Date: Aug 2013
Posts: 61
Rep Power: 13
bineet_aero is on a distinguished road
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
bineet_aero is offline   Reply With Quote

Old   August 14, 2013, 11:57
Default
  #11
Member
 
Bineet Mehra
Join Date: Aug 2013
Posts: 61
Rep Power: 13
bineet_aero is on a distinguished road
integration of U wrt Y and V wrt X?
bineet_aero is offline   Reply With Quote

Old   August 14, 2013, 12:06
Default
  #12
Member
 
Bineet Mehra
Join Date: Aug 2013
Posts: 61
Rep Power: 13
bineet_aero is on a distinguished road
Quote:
Originally Posted by Bob Roach
;24448
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?
i have 2D PIV velocity data and want to plot streamlines ..can you please help me in this regard ? thanks
bineet_aero is offline   Reply With Quote

Old   August 14, 2013, 12:10
Default
  #13
Member
 
Bineet Mehra
Join Date: Aug 2013
Posts: 61
Rep Power: 13
bineet_aero is on a distinguished road
Quote:
Originally Posted by Bob Roach
;24448
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?
i have 2D PIV data and to plot streamlines.Can you please help me in this regard?
Thanks
bineet_aero is offline   Reply With Quote

Old   August 14, 2013, 19:00
Default
  #14
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
just solve the differential equation dy/dx=v/u
FMDenaro is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:26.