Вы находитесь на странице: 1из 4

1.

- Para una carga de 60W, 20mH y 50V, alimentada desde una fuente de
corriente continua de 100V con una razón de conducción de 0;6.

1 % Chopper Tipo A
2 % Datos
3 V= input (’Tension DC de la fuente ’);

4 R= input (’ Resistencia [Ohm ] ’);

5 L= input (’ Inductancia [H] ’);

6 E= input (’Tension de la carga ’);

7 T= input (’Periodo [s] ’);

8 ton= input (’Tipo de encendido [s] ’);

9 % Corrientes

10 delta =ton/T

11 tau=L/R

12 Imax =(V/R*(1 - exp(- delta *T/tau ))/(1 - exp(-T/ tau)))-E/R;

13 Imin =(V/R*( exp ( delta *T/tau) -1) /( exp(T/tau) -1))-E/R;

14 t1= linspace (0,ton ,1000) ;

15 t2= linspace (ton ,T ,1000) ;

16 if Imin <0

17 disp (’Condición no continuada ’)

18 i1 =(V-E)/R*(1 - exp (-t1/tau));

19 Imax =(V-E)/R*(1 - exp (-ton /tau))

20 Imin =0;

21 tb=tau*log(exp( ton/tau ) *(1+(V-E)/E*(1 - exp(-ton/tau))))

22 t2= linspace (ton ,tb ,500) ;

23 i2 =(-E)/R*(1 - exp (-(t2 -ton)/tau))+ Imax *exp (-(t2 -ton)/tau);

24 t3= linspace (tb ,T ,500) ;

25 v=[V* ones ( size (t1)),zeros ( size (t2)),E* ones ( size (t3))];

26 t2 =[t2 ,t3 ];

27 i2 =[i2 , zeros ( size (t3))];

28 else

29 Imin

30 Imax

31 i1 =(V-E)/R*(1 - exp (-t1/tau))+ Imin *exp(-t1/tau);

32 i2 =(-E)/R*(1 - exp (-(t2 -ton)/tau))+ Imax *exp (-(t2 -ton)/tau);

33 v=[V* ones ( size (t1)),zeros ( size (t2))];

34 end
35
36 rizado =( Imax - Imin )/2
37 i=[i1 ,i2 ];

38 t=[t1 ,t2 ];
39
40 % Valores Medios
41 Io =1/T* trapz (t,i)
42 Vo =1/T* trapz (t,v)
43
44 % Valores Efectivos
45 Irms = sqrt (1/T* trapz (t,i .^2) )
46 Vrms = sqrt (1/T* trapz (t,v .^2) )
47
48 % Factores de Rizado
49 FR_i = sqrt ( Irms ^2- Io ^2)/Io
50 FR_v = sqrt ( Vrms ^2- Vo ^2)/Vo
51
52 % Graficas
53 vf=V* ones ( size (t));
54 vx =[v];

55 ix =[i];

56 t1=t;

57 figure (1)

58 plot (t1 ,vf ,’ -.’,t1 ,vx ,’r’,’LineWidth ’ ,2); grid

59 legend (’Fuente ’,’Carga ’);

60 set(gca ,’FontSize ’ ,12,’FontName ’,’Times ’);

61 xlim

62 xlabel (’Tiempo ’,’fontsize ’ ,14,’fontname ’,’Times ’);

63 ylabel (’Tensión ’,’fontsize ’ ,14,’fontname ’,’Times ’);


64
65 figure (2)
66 plot (t1 ,ix ,’LineWidth ’ ,2); grid
67 xlim ([0 T]);

68 set(gca ,’FontSize ’ ,12,’FontName ’,’Times ’);

69 xlabel (’Tiempo ’,’fontsize ’ ,14,’fontname ’,’Times ’);

70 ylabel (’Corriente ’,’fontsize ’ ,14,’fontname ’,’Times ’);


71
72 figure (3) % Componente Principal
73 plot (t1 ,[i1 , zeros ( size (i2))],’LineWidth ’ ,2); grid
74 set(gca ,’FontSize ’ ,12,’FontName ’,’Times ’);

75 xlim ([0 T]);

76 xlabel (’Tiempo ’,’fontsize ’ ,14,’fontname ’,’Times ’);

77 ylabel (’Corriente ’,’fontsize ’ ,14,’fontname ’,’Times ’);


78
79 figure (4) % Componente Secundaria
80 plot (t1 ,[ zeros ( size (i1)),i2],’r’,’LineWidth ’ ,2); grid
81 set(gca ,’FontSize ’ ,12,’FontName ’,’Times ’);

82 xlim ([0 T]);

83 xlabel (’Tiempo ’,’fontsize ’ ,14,’fontname ’,’Times ’);

84 ylabel (’Corriente ’,’fontsize ’ ,14,’fontname ’,’Times ’);


2.- Puente para un inductancia de 100mH , una fuente E2 =60V y E1 =100V. La
razón de conducción del chopper es 0;4 con una frecuencia de operación de
500Hz.

1 % Chopper Tipo B
2 % Datos

3 V= input (’Tension DC de la fuente ’);

4 R= input (’ Resistencia [Ohm ] ’);

5 L= input (’ Inductancia [H] ’);

6 E= input (’Tension de la carga ’);

7 T= input (’Periodo [s] ’);

8 ton= input (’Tipo de encendido [s] ’);

9 % Corrientes

10 delta =ton/T

11 tau=L/R

12 Imax =E/R-V/R*( exp(- delta *T/ tau)-exp(-T/tau))/(1 - exp(-T/tau));

13 Imin =E/R-V/R*(1 - exp (-(1- delta )*T/tau))/(1 - exp(-T/tau));

14 t1= linspace (0,ton ,1000) ;

15 t2= linspace (ton ,T ,1000) ;

16 % Condición de operación
17
18 if Imin <0
19 disp (’Condición no continuada ’)
20 Imin =0

21 i1=E/R*(1 - exp(-t1/tau))+ Imin *exp (-t1/tau);

22 Imax =max(i1)

23 i2 =(E-V)/R*(1 - exp (-(t2 -ton)/tau))+ Imax *exp (-(t2 -ton)/tau);

24 valor =(i2 >=0) ;

25 i2=i2 .* valor ;

26 v=[ zeros ( size (t1)) ,(V* ones ( size (t2)).* valor )+(1 - valor ).*E];

27 tb=t2 (( valor ));

28 tb( length (tb))

29 else

30 i1=E/R*(1 - exp(-t1/tau))+ Imin *exp (-t1/tau);

31 i2 =(E-V)/R*(1 - exp (-(t2 -ton)/tau))+ Imax *exp (-(t2 -ton)/tau);

32 v=[ zeros ( size (t1)),V* ones ( size (t2))];

33 end
34
35 % Corrientes
36
37 rizado =( Imax - Imin )/2
38 i=[i1 ,i2 ];
39 t=[t1 ,t2 ];
40
41 % Valores Medios
42 Io =1/ T* trapz (t,i)
43 Vo =1/ T* trapz (t,v)
44
45 %
46 Irms = sqrt (1/T* trapz (t,i .^2) )

47 Vrms = sqrt (1/T* trapz (t,v .^2) )


48
49 % Factores de Rizado
50 FR_i = sqrt ( Irms ^2- Io ^2)/Io
51 FR_v = sqrt ( Vrms ^2- Vo ^2)/Vo
52
53 % Potencia de Frenado
54 frenado =(t >= ton);
55 p=v.*i.* frenado ;

56 P=1/ T* trapz (t,p)


57
58 % Graficas
59 vf=V* ones ( size (t));

60 vx =[v];

61 ix =[i];

62 t1=t;

63 figure (1)

64 plot (t1 ,vf ,’ -.’,t1 ,vx ,’r’,’LineWidth ’ ,2); grid

65 legend (’Fuente ’,’Carga ’);

66 set(gca ,’FontSize ’ ,12,’FontName ’,’Times ’);

67 xlim ([0 T]);

68 xlabel (’Tiempo (s)’,’fontsize ’ ,14,’fontname ’,’Times ’);

69 ylabel (’Tensión (V)’,’fontsize ’ ,14,’fontname ’,’Times ’);


70
71 figure (2)
72 plot (t1 ,ix ,’LineWidth ’ ,2); grid
73 xlim ([0 T]);

74 set(gca ,’FontSize ’ ,12,’FontName ’,’Times ’);

75 xlabel (’Tiempo (s)’,’fontsize ’ ,14,’fontname ’,’Times ’);

76 ylabel (’Corriente (A)’,’fontsize ’ ,14,’fontname ’,’Times ’);


77
78 figure (3)
79 plot (t1 ,p,’LineWidth ’ ,2); grid
80 xlim ([0 T]);

81 set(gca ,’FontSize ’ ,12,’FontName ’,’Times ’);

82 xlabel (’Tiempo (s)’,’fontsize ’ ,14,’fontname ’,’Times ’);

83 ylabel (’Potencia devuelta a la red (W)’,’fontsize ’ ,14,’fontname ’,’

Times ’);

Вам также может понравиться