Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. %Ricky Palomares
  2. %Dr. Lin
  3. %ARO305-03
  4. %
  5. %HW3-P3 TAFT
  6. clc
  7. clear all
  8. %Note: n is normalized x, that is x/c = n
  9. %Note: Tau is normalized zmax, that is, Tau = zmax/c
  10. tau = 0.04; %max camber normalized to chord
  11.  
  12. %unit contstants
  13. V = 1; %freestream velcoity
  14.  
  15. %alpha sweep for CP plot
  16. %part 6 of handout
  17. alpha = (-12:0.5:15);
  18. xCP = (alpha + 4 * tau)./(4*alpha + 8 * tau);
  19. figure(1)
  20. plot(alpha, xCP);
  21. xlabel('Alpha, Degrees'); ylabel('xCP, percent Chord');
  22. title('xCp verus Alpha')
  23. %MAKE TABLE
  24.  
  25. %Chordwise lifting pressure alpha sweep
  26. %part 9 of handout
  27. alphalift = [-10, (-2*tau)*180/pi, 0, 1, 3, 5]*pi()/180; %aoa to radians
  28. nsweep = linspace(0, 1, 50); %50 steps to get to x/c = 1
  29.  
  30. figure(4)
  31. hold on
  32. markers = ['-+'; '-.'; '-o';'-x'; '-*'; '->'];
  33. for i = 1:length(alphalift)
  34. liftinggam(i, :) = 2*(2 .* V .*(alphalift(i).*(( 1 - nsweep)./(nsweep))...
  35. .^0.5 + 8 .* tau .* (nsweep .* ( 1 - nsweep)).^0.5));
  36. plot(nsweep, liftinggam(i, :), markers(i,:))
  37. end
  38.  
  39. xlabel('X/c'); ylabel('Delta Cp');
  40. title('Chordwise Lifting Pressure Coefficent');
  41. legend('AoA = -10 deg', 'AoA = -2Tau deg', 'AoA = 0 deg', 'AoA = 1 deg',...
  42. 'AoA = 3 deg', 'AoA = 5 deg');
  43. axis([0, 1, -2, 2]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement