Plotting Inclined Rankine Oval
Afficher commentaires plus anciens
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?

Réponse acceptée
Plus de réponses (1)
darova
le 22 Avr 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 commentaire
tag
le 23 Avr 2020
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!





