Plotting Inclined Rankine Oval
Show older comments
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?

Accepted Answer
More Answers (1)
darova
on 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)

Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




