Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1.  
  2. R1=1.5958 ;
  3. H1=3;
  4.  
  5. pi=3.14;
  6.  
  7. c1=1.6903 ;
  8.  
  9.  
  10.  
  11. R2=1.85901;
  12. H2=10;
  13. H2max=H2;
  14.  
  15.  
  16.  
  17. c2=0.638877 ;
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. %charakterystyka statyczna modelu nieliniowego
  28. q1=[0:0.00001:1.40];
  29. %h20=h2/2 => q=1,43
  30. h2=((q1.*q1)/(c2*c2));
  31.  
  32.  
  33.  
  34.  
  35. h20=0.5*H2max;
  36. q10=sqrt(h20)*c2
  37. h10=(c2/c1)^2*h20;
  38.  
  39.  
  40. deltah2=0.1*h20;
  41.  
  42. deltaq=((c2/(2*sqrt(h20)))*deltah2)/2;
  43.  
  44.  
  45.  
  46.  
  47. h2z=((2*sqrt(h20)/c2))*(q1-q10)+h20;
  48.  
  49.  
  50.  
  51. %xlabel('q1');
  52. %ylabel('h2');
  53. %plot(q1,h2,'b');
  54. %hold on;
  55. %plot(q1,h2z,'r');
  56.  
  57. s=tf('s');
  58.  
  59. A=pi*R1*R1;
  60. B=c1/(2*sqrt(h10));
  61. C=(pi*R2*R2*h20*h20)/(H2*H2);
  62. D=(c2)/((2*sqrt(h20)));
  63.  
  64. K=B/((A*s+B)*(C*s+D))
  65.  
  66.  
  67. T1=pi*R1*R1*2*sqrt(h10)/c1
  68. T2=2*sqrt(h20)*R2*R2*h20*h20*pi/(c2*H2*H2)
  69. k=2*sqrt(h20)/c2
  70.  
  71. G=tf(K);
  72.  
  73. chce zrobic wykres od czasu h2 i h2zlin
  74. plot(tout,h2);
  75. hold on;
  76. plot(tout,h2z);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement