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, 21: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, 05: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, 05: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, 16: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, 03: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 01:48
streamline plot for multiphase problem lionlove0903 OpenFOAM Post-Processing 2 March 14, 2011 15:25
Streamline on surface of a wing arash_7444 Tecplot 1 November 11, 2010 18:34
How to get a dynamic streamline Twiti CFX 0 August 14, 2005 04:44
Streamline diffusion Hong Main CFD Forum 0 May 18, 2000 08:10


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