Write a matlab code for streamline flow around a cylinder.

Write a matlab code to plot streamline flow around a cylinder.

Worldtech Asked on 6th November 2019 in Aerodynamics.
Add Comment
  • 1 Answer(s)
    mu = 1; gam = -2; V=1;
    x = -4:.02:4;
    y = -3:.02:3;
    for m = 1:length(x)
    for n = 1:length(y)
    xx(m,n) = x(m); yy(m,n) = y(n);
    psis(m,n) = V * y(n) - mu * y(n)/(x(m)^2+(y(n)+.01)^2) - (gam/4/pi)*log(x(m)^2+(y(n)+.01)^2);
    end
    end
    contour(xx,yy,psis,[-3:.3:3],'k'), axis image
    

    RE: Write a matlab code for streamline flow around a cylinder.Streamline flow over a cylinder

    techAir Answered on 6th November 2019.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.