# 2D streamline

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

 August 10, 2006, 21:52 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

 August 11, 2006, 05:32 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?

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

 August 11, 2006, 16:12 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.

 August 13, 2006, 03:37 I got it #5 Junseok Kim Guest   Posts: n/a I got it by using stream function

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post sunflower FLUENT 0 June 8, 2011 01:48 lionlove0903 OpenFOAM Post-Processing 2 March 14, 2011 16:25 arash_7444 Tecplot 1 November 11, 2010 19:34 Twiti CFX 0 August 14, 2005 04:44 Hong Main CFD Forum 0 May 18, 2000 08:10

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