You are on page 1of 2

Transitorio RL.

Anlisis sin armnicos


clc;
Ts=1/(128*60);
f=60;w1=2*f*%pi;
r=1;R=5;L=1/(12*%pi);V1=120;a1=0;
XL1=w1*L;
ZRL1=R+%i*XL1;
Ze1=ZRL1+r;
I1=V1/abs(Ze1);b1=a1-atan(imag(Ze1),real(Ze1));
Tao=L/(R+r);
t=0:Ts:(10*Tao);
vt1=V1*sqrt(2)*cos(w1*t+a1);
itf1=I1*sqrt(2)*cos(w1*t+b1);
in1=-I1*sqrt(2)*cos(b1)*exp(-t/Tao)
it1=itf1+in1;
vL1=vt1-(r+R)*it1;
Vp=max(vt1);
VpL=max(vL1);
Ip=max(it1);
pr=r*(it1.*it1);
pt=vt1.*it1;
plot(t,vt1);plot(t,vL1,"green");
xgrid;
scf()
plot(t,itf1);plot(t,it1,"green");plot(t,in1,"red");
xgrid;
scf()
plot(t,pt);plot(t,pr,"red");
xgrid;

Transitorio RL. Anlisis con armnicos


Ts=1/(128*60);
f=60;w1=2*f*%pi;
r=1;R=5;L=1/(12*%pi);V1=120;a1=%pi/2;;V3=0.03*V1;a3=%pi/2;V5=0.05*V1;a5=0;
XL1=w1*L;
ZRL1=R+%i*XL1;
Ze1=ZRL1+r;
XL3=3*w1*L;
ZRL3=R+%i*XL3;
Ze3=ZRL3+r;
XL5=5*w1*L;
ZRL5=R+%i*XL5;
Ze5=ZRL5+r;
I1=V1/abs(Ze1);b1=a1-atan(imag(Ze1),real(Ze1));
I3=V3/abs(Ze3);b3=a3-atan(imag(Ze3),real(Ze3));
I5=V5/abs(Ze5);b5=a5-atan(imag(Ze5),real(Ze5));
Tao=L/(R+r);
t=0:Ts:(10*Tao);

vt1=V1*sqrt(2)*cos(w1*t+a1);
vt3=V3*sqrt(2)*cos(3*w1*t+a3);
vt5=V5*sqrt(2)*cos(5*w1*t+a5);
vt=vt1+vt3+vt5;
itf1=I1*sqrt(2)*cos(w1*t+b1);
itf3=I3*sqrt(2)*cos(3*w1*t+b3);
itf5=I5*sqrt(2)*cos(5*w1*t+b5);
itf=itf1+itf3+itf5;
in=-(I1*sqrt(2)*cos(b1)+I3*sqrt(2)*cos(b3)+I5*sqrt(2)*cos(b5))*exp(-t/Tao)
it=itf+in;
vL=vt-(r+R)*it;
Vp=max(vt);
VpL=max(vL);
Ip=max(it);
pr=(r+R)*(it.*it);
pt=vt.*it;
pl=pt-pr;
scf()
plot(t,vt);plot(t,vL,"green");
xgrid;
scf()
plot(t,itf);plot(t,it,"green");plot(t,in,"red");
xgrid;
scf()
plot(t,pt);plot(t,pr,"red");plot(t,pl,"green")
xgrid;

You might also like