|
[Sponsors] |
August 10, 2006, 22:52 |
2D streamline
|
#1 |
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, 06:32 |
Re: 2D streamline
|
#2 |
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, 06:35 |
Re: 2D streamline
|
#3 |
Guest
Posts: n/a
|
What I expect was a closed circle.
|
|
August 11, 2006, 17:12 |
Re: 2D streamline
|
#4 |
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, 04:37 |
I got it
|
#5 |
Guest
Posts: n/a
|
I got it by using stream function
|
|
|
|
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 |