Plotting Inclined Rankine Oval
Ältere Kommentare anzeigen
I'm trying to plot Inclined Rankine Oval in Matlab. I use quite simple code:
[x,y] = meshgrid(-25:0.1:25);
m=5;
a=2;
U=1;
figure (2)
psi = U*(y*cos(pi/4)-x*sin(pi/4))-m*atan2(y,x-a)+m*atan2(y,x+a)-m*atan2(y+4,x-7)+m*atan2(y+8,x-3);
contour(x,y,psi,100);
grid on;
For comparison, I also plotted horizontal Rankine Oval. Please, see the picture. I don't understand what are these horizontal lines on inclined Rankine Oval. And how I get rid of them?

Akzeptierte Antwort
Weitere Antworten (1)
darova
am 22 Apr. 2020
Here is a formula

And this is how surface looks like originally

Here is the problem part

My suggestion is to plot only half of the data (y = 0 .. 1)

Actually smaller half to get rid of center part

And then use contour with levels
contour(x,y,z,-1:.1:0)

1 Kommentar
tag
am 23 Apr. 2020
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





