How to plot streamlines in matlab ???
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everybody, I m new. I ve this question like title. I have to plot streamlines with circular cylinder, from PIV data of velocity. For each data I ve one value of X Y U V (2D model), a matrix with n rows x 4 columns. From this matrix, that represents the average values of velocity, I ve just elaborated a quiver plot with the cylinder but I need of your help to understand how can I use streamline function in matlab or if is necessary to write the strem function like fluid mechanics theory. In annex the matrix
Thanks
6 Kommentare
Antworten (3)
Bob Thompson
am 25 Feb. 2019
Try using the quiver function. It's not perfect streamlines, but it should give you an idea of what the velocity field looks like, which should essentially achieve the same affect. This should still plot in a 'square' because I suspect that is what is available for your (x,y) data, so that will be the bounds of your 2D plot area. Based on the image you attached you should be getting a grid that is roughly rectangular anyway, as it is a cross section of your flow perpendicular to the cylinder you are flowing around.
data = xlsread('Cartel1.xlsx');
quiver(data(:,1),data(:,2),data(:,3),data(:,4));
0 Kommentare
ANTONIO LEUZZI
am 26 Feb. 2019
12 Kommentare
Jan
am 7 Mär. 2019
@ANTONIO LEUZZI: Uppercase means shouting in an internet forum. With bold type also and a bunch of exclamation marks your message looks excited. Calm down.
Post the current code and a copy of the complete error message.
Siehe auch
Kategorien
Mehr zu Vector Fields finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!