Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (274.35 KB, 12 trang )
<span class="text_page_counter">Trang 1</span><div class="page_container" data-page="1">
f=50;T=1/f;
</div><span class="text_page_counter">Trang 2</span><div class="page_container" data-page="2">t=0:T/1000:5*T; % Tao buoc ve cho ham so
U=220*sqrt(2)*sin(2*pi*f*t);
</div><span class="text_page_counter">Trang 3</span><div class="page_container" data-page="3">axis([0 0.1 -400 400]);
</div><span class="text_page_counter">Trang 4</span><div class="page_container" data-page="4">axis([0 0.06 -400 400]);
</div><span class="text_page_counter">Trang 5</span><div class="page_container" data-page="5">%--- ve pha b
%--- ve pha c
vc=220*sqrt(2)*sin(2*pi*f*t-120*pi/180); plot(t,vc);
% Chuong trinh tinh toan va ve dang song dien ap, dong dien, cong suat theo % thoi gian
Vm = 250; tetav = 0;Zt=1+j*7;
tetai = tetav - gama;
teta = (tetav - tetai)*pi/180;
wt=180/pi*wt;
subplot(2,2,1), plot(wt, v, wt, i,wt, xline), grid
subplot(2,2,2), plot(wt, p, wt, xline), grid
subplot(2,2,3), plot(wt, pr, wt, PP, wt,xline), grid
subplot(2,2,4), plot(wt, px, wt, xline), grid
t = 0:pi/20:2*pi;
t = 0:pi/20:2*pi;
t = 0:pi/20:2*pi;
r','LineWidth',5 )
</div><span class="text_page_counter">Trang 8</span><div class="page_container" data-page="8">t = 0:pi/20:2*pi;
'LineWidth',2 )
x=[1 2 3 4 5 6 7 8 9 10 11 12]
y=[150 250 300 500 700 800 850 900 1000 650 600 500]bar(x,y)
x=[17000 25000 65000]pie(x)
k=k+1; f(k)=t;
</div><span class="text_page_counter">Trang 10</span><div class="page_container" data-page="10">%Chuong trinh tinh day dong dien, cong suat, tren nhanh day
V1=E1.*cos(a1r) + j*E1.*sin(a1r);V2=E2.*cos(a2r) + j*E2.*sin(a2r);tam1=(V1 - V2)/Z; I21=-I12;I12 = (V1 - V2)/Z; I21=-I12;
S1= V1.*conj(I12); P1 = real(S1); Q1 = imag(S1);S2= V2.*conj(I21); P2 = real(S2); Q2 = imag(S2);SL= S1+S2; PL = real(SL); QL = imag(SL);Result1=[a1, P1, P2, PL];
plot(a1, P1, a1, P2, a1, PL), grid
%Chuong trinh tinh day dong dien, cong suat, tren nhanh day
</div><span class="text_page_counter">Trang 11</span><div class="page_container" data-page="11">a2=input('Goc pha dien ap nguon 2. = ');
V1=E1.*cos(a1r) + j*E1.*sin(a1r);V2=E2.*cos(a2r) + j*E2.*sin(a2r);tam1=(V1 - V2)/Z; I21=-I12;I12 = (V1 - V2)/Z; I21=-I12;
S1= V1.*conj(I12); P1 = real(S1); Q1 = imag(S1);S2= V2.*conj(I21); P2 = real(S2); Q2 = imag(S2);SL= S1+S2; PL = real(SL); QL = imag(SL);Result1=[a1, P1, P2, PL];
plot(a1, P1, a1, P2, a1, PL), grid
%Chuong trinh khao sat va ve do thi cua may phat dien dong bo
Xd=7.5; Xq = 3.5; Zs = Xd + j*Xq;
S = 100*0.78 + j*(100*sqrt(1-0.78*0.78)); V = 18/sqrt(3);Ia1 = conj(S)*1000/(3*conj(V));
Ia1M = abs(Ia1)/1000, Ia1ang=angle(Ia1)*180/pi;
y = 0 + j*4.6/1000000; Length = 350;VR3ph = 500;
z = 0.04 + j*.39; y = j*4.2/1000000; Length = 300;gamma = sqrt(z*y); Zc = sqrt(z/y);
A = cosh(gamma*Length); B = Zc*sinh(gamma*Length);C = 1/Zc * sinh(gamma*Length); D = A;
ABCD = [A B; C D]
Znew = Zc * sinh(gamma*Length)
</div><span class="text_page_counter">Trang 12</span><div class="page_container" data-page="12">Ynew = 2/Zc * tanh(gamma*Length/2)Anew = 1 + Znew*Ynew/2; Bnew = Znew;
Cnew = Ynew*(1 + Znew*Ynew/4); Dnew = Anew;
%gamma = sqrt(z*y); Zc = sqrt(z/y); %Z = Zc * sinh(gamma*l)
%Y = 2/Zc * tanh(gamma*l/2)
%A = cosh(gamma*l); B = Zc*sinh(gamma*l); %C = 1/Zc * sinh(gamma*l); D = A;
ABCD = [Anew Bnew; Cnew Dnew]AR = acos(0.8);
</div>