Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. clc
  2.  
  3. v_rendimiento=zeros(1,6)
  4. v_reg=zeros(1,6)
  5. fp=[0.75,0.80,0.85,0.90,0.95,0.99]
  6.  
  7. for i=1:1:6
  8.  
  9. v_factorPotencia=fp(i)
  10. seccion=725
  11. resistencia=0.0424
  12. separacion=0.4
  13. largoLinea=450
  14.  
  15. angulo=acos(v_factorPotencia)*180/%pi
  16. radio=(sqrt(seccion/%pi))/10^3
  17. largo=largoLinea
  18. e0=8.8542*(10^(-12))
  19. R=resistencia/4
  20. w=2*%pi*50
  21. subconductores=4
  22. G=0
  23. n=4
  24. mT1=[1,complex(0.00266,0.007999);
  25. 0,1]
  26. mT2=[1,complex(0.03,0.12);
  27. 0,1]
  28.  
  29.  
  30. if n==1 then reql=0.7788007831*radio //// Condicion para REQL
  31. elseif n==2 then reql=sqrt(0.778800783*radio*separacion)
  32. elseif n==3 then reql=(0.778800783*radio*separacion^2)^(1/3)
  33. elseif n==4 then reql=1.09*((0.778800783*radio*separacion^3)^(1/4))
  34. else reql=radio
  35. end
  36.  
  37. deg=(13*13*26)^(1/3)
  38. L=2*(10^(-7))*log(deg/reql)
  39. L=L*(10^3)
  40.  
  41. if n==1 then reqc=radio*separacion //// Condicion para REQC
  42. elseif n==2 then reqc=sqrt(radio*separacion)
  43. elseif n==3 then reqc= (radio*separacion^(2))^(1/3)
  44. elseif n==4 then reqc=1.09*((radio*(separacion^(3)))^(1/4))
  45. else reqc=radio
  46. end
  47.  
  48. C=((2*+%pi)*e0)/(log(deg/reqc))
  49. C=C*(10^(3))
  50. gama=((complex(R,w*L))*(complex(G,w*C)))^(0.5)
  51. zc=((complex(R,w*L))/(complex(G,w*C)))^(0.5)
  52. zb=((500)^2)/(10)
  53. // Calculo Modelo exacto matriz
  54. a=cosh(gama*largo)
  55. b=(zc*sinh(gama*largo))/zb
  56. ce=((sinh(gama*largo))/zc)*zb
  57. de=cosh(gama*largo)
  58.  
  59. V2=complex(0.875*cos(0*%pi/180),0.875*sin(0*%pi/180))
  60. I2=complex(1.1428*cos((-angulo*%pi)/180),1.1428*sin((-angulo*%pi)/180))
  61. mL=[a,b;ce,de]
  62. mC=[V2;I2]
  63. multiplicacion=mT1*mL*mT2*mC
  64. V1=multiplicacion(1,1)
  65. I1=multiplicacion(2,1)
  66. disp(V1,'Matriz Transfo 1')
  67. disp(I1,'Matriz Transfo 1')
  68. /*
  69. disp(mT1,'Matriz Transfo 1')
  70. disp(mT2,'Matriz Transfo 2')
  71. disp(factorPotencia,'Phi')
  72. disp(mT1*mL*mT2,'Multiplicacion de Matrices T1,ABCD,T2,V2 e I2')
  73. disp(mL,'Matriz ABCD: ')
  74. disp(det(mL),'Det ABCD: ')
  75. */
  76.  
  77. //disp(V1,'Voltaje 1: ')
  78. //disp(I1,'Corriente 1: ')
  79. S1=V1*(complex(real(I1),-imag(I1))) // sin falla
  80. //disp(S1,'Potencia aparente entrada')
  81. aI2=real(I2)
  82. bI2=imag(I2)
  83. aI1=real(I1)
  84. bI1=imag(I1)
  85. reg=((sqrt(real(V1)^2+imag(V1)^2))-(sqrt(real(V2)^2+imag(V2)^2)))/(sqrt(real(V1)^2+imag(V1)^2))
  86. rendimiento=real(V2*complex(aI2,-bI2))/real(V1*complex(aI1,-bI1))*100
  87. v_reg(i)=reg
  88.  
  89.  
  90.  
  91.  
  92. end
  93.  
  94.  
  95. plot2d(fp,v_reg)
  96. xlabel('Regulacion')
  97. xlabel('Factor de potencia')
  98. title('Regulacion vs Factor de potencia')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement