You are on page 1of 4

THIT K VI MY TNH

CNG N TP MN T.K VI MY TNH Cu 1:vit chng trnh trong M-File xc nh tit din cp chnh cp in cho mt nhm ph ti theo iu kin tit din khng i c s cho trc: Li gii: function tietdiencap_fkhongdoi Pdmi=input('nhap cong suat dinh muc cau phu tai thu i:Pdm(KW)='); Hsi=input('nhap hieu suat cua dong co thu i:Hsi='); Li=input('nhap chieu dai cac doan cap:li(m)='); Udm=input('nhap dien ap dinh muc cua mang dien:Udm(V)='); delta_U=input('nhap ton hao dien ap cua mang:delta_U='); Zo=input('nhap dien tro suat cua vat lieu lam day dan:Zo='); Pdien_i=Pdmi./Hsi; L1=li(1); L2=L1+li(2); L3=L2+li(3); fprintf('tiet dien cap theo dieu kien tiet dien khong doi la:F='); F=(Zo*Pdien_i(1)*L1+Pdien_i(2)*L2+Pdien_i(3)*L3)/(Udm*Zo) End Cu 2:Vit chng trnh trong M-file xc nh dng in chnh cp in cho mt nhm ph ti theo iu kin dng nung nng vi mt nhm ph ti cho trc Tr li: function Itt Pdm_i=input('nhp cng sut nh mc ca ph tai th i:Pdm(KW)='); cosphi_i=input('Nhp h s cng sut ca ph ti th i:cosphi_i='); Udm=input(nhp in p nh mc ca mng in:Udm(V)='); Pt=sum(Pdm_i); Pmax=max(Pdm_i); n=length(Pdm_i); cosphi_tb=(sum(Pdm_i.*cosphi_i))/Pt; if n<4 kyc=1 elseif 4<=n<=20 kyc=0.43+0.57*Pmax/Pt else kyc=0.21+0.79*Pmax/Pt end fprintf(dng in tnh ton l:Itt(kA)= ') Itt=kyc*Pt/(sqrt(3)*Udm*cosphi_tb) End
Ths:Bi Trung Kin 1 SV:V Vn ng

THIT K VI MY TNH

Cu 3:Vit chng trnh trong M-file xc nh tit din cp chnh cp in cho mt nhm ph ti teo iu kin dng nung nng vi s ph ti bt k: Li gii: function tietdiencaptheodieukien_nn pdmi=input('nhao cong suat dinh muc cua phu tai thi:pdm(Kw)= '); cosphi_i=input('nhap he so cong suat cua phu tai thu i:cosphi_i= '); udm=input('nhap dien ap dinh muc cua mang dien:udm(v)= '); k1=input('nhap he so ke toi nhiet do moi truong lam viec:k1='); k2=input('nhap he so ke toi so luong cap dat rong mot ranh:k2='); pt=sum(pdmi); pmax=max(pdmi); n=length(pdmi); cosphi_tb=(sum(pdmi.*cosphi_i))/pt; if n<4 kyc=1 elseif 4<=n<=20 kyc=0.43+0.57*pmax/pt else kyc=0.29+0.71*pmax/pt end Itt=kyc*pt/(sqrt(3)*udm*cosphi_tb) fprintf('chon day dan thoa man theo dieu kien Icp(kA)>=') Icpmin=Itt/(k1*k2) end cu 4:Vit chng trnh trong M-file kim tra tnh trng mang tai ca my bin p h p cp in cho mt nhm ph ti bt k li gii: function ktmba pdmi=input('nhap cong suat dinh muc cua phu tai thu i:pdm(kW)='); cosphi_i=input('nhap he so cong suat cua phu tai thu i:cosphi_i='); sdm=input('nhap cong suat dinh muc cua may bien ap:sdm(kva)='); pmax=max(pdmi); pt=sum(pdmi); n=length(pdmi); cosphi_tb=(sum(pdmi.*cosphi_i))/pt if n<4 kyc=1 elseif 4<=n<=20
Ths:Bi Trung Kin 2 SV:V Vn ng

THIT K VI MY TNH

kyc = 0.43+0.57*pmax/pt else kyc=0.29+0.71*pmax/pt end stt=(kyc*pt)/cosphi_tb; beta=stt/sdm; if beta<1 fprintf('may bien ap lam viec non tai!') elseif beta==1 fprintf('may bien ap lam viec voi tai dinh muc') else fprintf('may bien ap lam viec qua tai') end end cu 5:vit chng trnh trong M-file xc nh cng sut ca my bin pcp in cho mt nhm ph ti vi s ph ti bt k tr li: function xdS_bienap pdmi=input('nhap cong suat dinh muc cua phu tai thu i:pdm(kw)='); cosphi_i=input('nhap he so cong suat cua phu tai thu i:cosphi_i='); pt=sum(pdmi); pmax=max(pdmi); n=length(pdmi); cosphi_tb=(sum(pdmi.*cosphi_i))/pt; if n<4 kyc=1 elseif 4<=n<=20 kyc=0.43+0.57*pmax/pt else kyc=0.29+0.71*pmax/pt end fprintf('cong suat cua may bien ap la:Sba(kva)=') S=(kyc*pt)/cosphi_tb end cu 6:vit chng rnh trong M-file xc nh tn tht in ptn mt on cp cp in cho mt nhm ph ti h p tr li:

Ths:Bi Trung Kin

SV:V Vn ng

THIT K VI MY TNH

Ths:Bi Trung Kin

SV:V Vn ng

You might also like