Advertisement
makispaiktis

Matlab - SHE2_PowerInSalientPolesGenerators

Jun 22nd, 2020 (edited)
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.31 KB | None | 0 0
  1. clear all
  2. clc
  3.  
  4. Xd = 1.2;
  5. Xq = 0.6 * Xd;
  6. U = 30000
  7. E = 32000 * sqrt(2)/2 * (1+i);
  8. theta = 0: pi/200: pi;
  9.  
  10. Pe = U*E/Xd * sin(theta);
  11. Pr = 0.5*U*U*(1/Xq - 1/Xd)*sin(2*theta);
  12. P = Pe + Pr;
  13.  
  14. plot(theta, Pe);
  15. hold on
  16. plot(theta, Pr);
  17. hold on
  18. plt(theta, P);
  19. legend({'Pe','Pr', 'P'},'Location','southwest');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement