Simulation Thyristor an induktiver Last an Wechs - Home.hs ...
Simulation Thyristor an induktiver Last an Wechs - Home.hs ...
Simulation Thyristor an induktiver Last an Wechs - Home.hs ...
Erfolgreiche ePaper selbst erstellen
Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.
Prof. Dr. R. Kessler, HS-Karlsruhe, C:\ro\Si05\Andy\tephys\Bahm4\Thyri\Thyri3.doc, S. 2/3<br />
++++++++++++++++ jetzt Matlab: +++++++++++++++++++++++++++++++++<br />
% Datei Thyri2.m<br />
% clear;L=1;R=1;del=90;f=1;a0=2; dt=0.002; tmax=5;bild=1;Thyri2;<br />
format compact;<br />
% Tephys-Datei Thyri_3.txt (September 1997, Heft R23,Seite 52<br />
%t=t+dt<br />
%u0=a0*sin(2*pi*f*t)<br />
%uSt0=ja(u0)*ja(sin(2*pi*f*t-del*pi/180))*ja(180-del)*ja(del)<br />
%uCSt=uCSt+(uSt0-uCSt)*dt*f*50<br />
%uSt=(uSt0-uCSt)*ja(uSt0-uCSt)<br />
%ialt=i<br />
%FF=ja(ja(uSt)+FF*ja(ialt))<br />
%i=FF*(i+(u0-R*i)*dt/L)<br />
Np=floor(tmax/dt);<br />
tp= zeros(Np,1); u0p=tp; ip=tp; FFp=tp; uStp=tp; uSt0=tp;<br />
%Startwerte:<br />
i=0; uCSt=0; FF=0; t=0;k=0;<br />
while t < tmax<br />
u0=a0*sin(2*pi*f*t); % u0 = Netzsp<strong>an</strong>nung<br />
uSt0= (u0>0)*((sin(2*pi*f*t-del*pi/180)) >0) *(180>del)*(del>0) ; % uSt0=Steuersignal,<br />
% wird 1, wenn u0 >0 ist und wenn phasenverschobenem sinus > 0 wird,<br />
% del muss im Bereich 0< del < 180 liegen dies ist neu , in Tephys noch nicht drin<br />
uCSt=uCSt+(uSt0-uCSt)*dt*f*50; % Das Rechteck uSTt speist einen RC-Tiefpass<br />
uSt= (uSt0-uCSt)* ((uSt0-uCSt) > 0); % ust sind die positiven Impulse des Hochpasses RC<br />
ialt=i;<br />
FF=( ((uSt > 0) + FF * (ialt >0 ))) >0;<br />
i=FF * (i+ (u0 - R*i)* dt/L);<br />
% Plotwerte speichern:<br />
k=k+1; tp(k)=t; FFp(k)=FF; ip(k)=i; u0p(k)=u0;<br />
uSt0p(k)=uSt0; uCStp(k)=uCSt; uStp(k)=uSt;<br />
t=t+dt;<br />
end;<br />
figure(bild); clf; ofs=2; fa='k';<br />
plot(tp,u0p,fa, tp,uSt0p+1*ofs,fa, tp,uStp+2*ofs,fa, tp,FFp+3*ofs,fa, tp,ip+4*ofs,fa ); grid on;<br />
text(max(t),0,' u0'); text(max(t),ofs,' uSt0'); text(max(t),2*ofs,' uSt');<br />
text(max(t),3*ofs,' FF'); text(max(t),4*ofs,' i');<br />
S1=['bild ',num2str(bild)]; S2=[', L=',num2str(L)]; S3=[', R=',num2str(R)];<br />
S4=[', del=',num2str(del)]; S5=[',a0=',num2str(a0)];S6=[', f=',num2str(f)]; S7=[', dt=',num2str(dt)];<br />
tit=[S1,S2,S3,S4,S5,S6,S7]; title(tit);