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

2D streamline

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2006, 22:52
Default 2D streamline
  #1
Junseok Kim
Guest
 
Posts: n/a
I am trying to draw 2D streamline from a vector field with matlab software, but I got spiral shape, which is not right. Is there any way to avoid that.

a=3; n=30;

xt = linspace(-a, a, n); yt = linspace(-a, a, n);

[x,y] = meshgrid(xt, yt);

quiver(x,y,y,-x,5) axis image

hold

h=streamline(stream2(x,y,y,-x,2,0)); set(h, 'Color', 'red');

hold
  Reply With Quote

Old   August 11, 2006, 06:32
Default Re: 2D streamline
  #2
Arambatzis George
Guest
 
Posts: n/a
I run your code and I think every think is OK.

The stream lines seems to be tangent to the vector field. Why do you say that the spiral shape is wrong?
  Reply With Quote

Old   August 11, 2006, 06:35
Default Re: 2D streamline
  #3
Junseok Kim
Guest
 
Posts: n/a
What I expect was a closed circle.

  Reply With Quote

Old   August 11, 2006, 17:12
Default Re: 2D streamline
  #4
Jonas Holdeman
Guest
 
Posts: n/a
Right. Stream lines cannot spiral in 2D unless there is a source or sink. They must close on themselves, or begin and end on a boundary. In this case they must be circles.
  Reply With Quote

Old   August 13, 2006, 04:37
Default I got it
  #5
Junseok Kim
Guest
 
Posts: n/a
I got it by using stream function
  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
what does dense streamline mean sunflower FLUENT 0 June 8, 2011 02:48
streamline plot for multiphase problem lionlove0903 OpenFOAM Post-Processing 2 March 14, 2011 16:25
Streamline on surface of a wing arash_7444 Tecplot 1 November 11, 2010 19:34
How to get a dynamic streamline Twiti CFX 0 August 14, 2005 05:44
Streamline diffusion Hong Main CFD Forum 0 May 18, 2000 09:10


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