




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、% % Power System Analysis' Project: Matlab Program% clear all close allclca=exp(j*2*pi/3);A=1 1 1 ;1 a2 a ;1 a a2;Sref=900e6;Uref=300e3;Iref=Sref/(sqrt(3)*Uref);% data from the different documents:Positive;Negative;Zero;% run power flow:opt = mpoption( 'ENFORCE_Q_LIMS' , 1); results=runp
2、f(case9gs,opt);Vp=results.bus(:,8).*(cos(pi/180*results.bus(:,9)+j*sin(pi/180*result s.bus(:,9);clc;% Menu:Bucle=1;while (Bucle=1)% Menu:disp( '' )disp( '% Program to calculate the symetrical and unsymetrical short circuit faults %');disp( ' 1) Symetrical fault (three phase short
3、 circuit fault)' ); disp( ' 2) Unsymetrical fault (A single phase to ground fault)');disp( ' 0) For exit the program' );obtion=input( 'Choose the option you want to be calculated by typing its number:' , 's' );disp( '' ) % Calculation of the fault switch (
4、obtion)%case '1'disp('You Have choose: SYMETRICAL FAULT');disp(' ' );disp('Please follow the menu');% Ask for the fault's bus number and the Rf value:disp( ' ' );disp(disp(DATA*' ) disp(VoltageTokke= sprintf(Tokke %g*' ) bus=input ( 'Please, nu
5、mber the bus where the three fault occur. Bus number:' );%bus=bus+1; % Since node zero is also analyzed, the bus number X will have a X+1 indexphaseshortcircuitRf=input( 'Please write the value of the arc resistance Rf=' );Rf perphase.% Calculation:If=zeros(8,1);If(bus)=Vp(bus)/(Zpos(bus
6、,bus)+Rf);Vs=Vp-Zpos*If;% Showing the Results: disp( ' ' );disp(disp(*' )RESULTSdisp(FaultCurrent=sprintf('The short circuit currents is: %gA. withangle %g?, Iref*abs(If(bus),180/pi*angle(If(bus);disp(FaultCurrent);figure(); compass(If(bus), 'blue' ); hold oncompass(If(bus)*a
7、, 'red' ); compass(If(bus)*a2, 'green' ); text(-abs(If(bus),-abs(If(bus),);disp( disp ( disp' ' )'The Voltages at all the buses in the system are:' ( '' )disp(' Bus VAngleDegree')disp('Short Circuit current')V %g?,Uref*abs(Vs(1),180/pi*angle(Vs
8、(1);disp(VoltageTokke) VoltageVinje= sprintf('Vinje %gV %g?,Uref*abs(Vs(2),180/pi*angle(Vs(2);disp(VoltageVinje) VoltageSonga= sprintf('Songa %gV %g?,Uref*abs(Vs(3),180/pi*angle(Vs(3);disp(VoltageSonga) VoltageVemork= sprintf('Vemork %gV %g?,Uref*abs(Vs(4),180/pi*angle(Vs(4);disp(Voltage
9、Vemork) VoltageRjukan= sprintf('Rjunkan %gV %g?,Uref*abs(Vs(5),180/pi*angle(Vs(5);disp(VoltageRjukan) VoltageFlesaker=sprintf('Flesaker %gV %g?,Uref*abs(Vs(6),180/pi*angle(Vs(6);disp(VoltageFlesaker) VoltageTveiten= sprintf('Tveiten %gV %g?,Uref*abs(Vs(7),180/pi*angle(Vs(7);disp(VoltageT
10、veiten) VoltageRod= sprintf( ' Rod %gV %g?,Uref*abs(Vs(8),180/pi*angle(Vs(8);disp(VoltageRod) disp ( '' )'Tokkes Voltage vectors');figure() subplot(2,4,1) compass(Vs(1), 'b' ); hold on compass(Vs(1)*a, 'r' ); compass(Vs(1)*a2, 'g' ); text(-abs(Vs(1),-abs(V
11、s(1),subplot(2,4,2) compass(Vs(2); hold on compass(Vs(2)*a, 'r' ); compass(Vs(2)*a2, 'g' );text(-abs(Vs(2),-abs(Vs(2),subplot(2,4,3)compass(Vs(3);hold oncompass(Vs(3)*a, 'r' ); compass(Vs(3)*a2, 'g' ); text(-abs(Vs(3),-abs(Vs(3),'Vinjes Voltage vectors''So
12、ngas Voltage vectors'););subplot(2,4,4) compass(Vs(4); hold on compass(Vs(4)*a, 'r' ); compass(Vs(4)*a2, 'g' );text(-abs(Vs(4),-abs(Vs(4),subplot(2,4,5) compass(Vs(5);hold oncompass(Vs(5)*a, 'r' ); compass(Vs(5)*a2, 'g' ); text(-abs(Vs(5),-abs(Vs(5),'Vemorks V
13、oltage vectors''Rjukans Voltage vectors'););subplot(2,4,6) compass(Vs(6);hold oncompass(Vs(6)*a, 'r' ); compass(Vs(6)*a2, 'g' ); text(-abs(Vs(6),-abs(Vs(6),subplot(2,4,7)compass(Vs(7);hold oncompass(Vs(7)*a, 'r' ); compass(Vs(7)*a2, 'g' ); text(-abs(Vs(7),
14、-abs(Vs(7),subplot(2,4,8) compass(Vs(8); hold on compass(Vs(8)*a, 'r' ); compass(Vs(8)*a2, 'g' );text(-abs(Vs(8),-abs(Vs(8),'Flesakers Voltage vectors''Tveitens Voltage vectors''Rods Voltage vectors');disp(););disp( '*disp()CURRENTSdisp(Q=inputpoints? Y/N:
15、'k=0;whilek=k+1;B1(k)=input(B2(k)=input ()( 'Do, 's' );Q= 'Y'youwant to know any of the currents'Write the first bus number:''Write the second bus number:'if Ypos(B1(k),B2(k)=0' ' ) 'Warning: *There is no connection )' ' )disp(disp( between
16、*'disp(k=k-1;elseIbranch(k)=(Vs(B1(k)-Vs(B2(k)*(-Ypos(B1(k),B2(k);endQ=inputend( 'Do you want to know any more ofthedisp(through););currents?two connectedY/N:' , 's' );disp( '*' )disp(CURRENTS RESULTSdisp(disp( '' ) if k=0disp( 'There are no currents results
17、39; end);for K=1:kCurrent=sprintf ( 'From bus no %g to bus no %g the current is: %gA %g?,B1(K),B2(K),Iref*abs(Ibranch(K),180/pi*angle(Ibranch( K);disp (Current)flowingfigure();compass(Ibranch(K), 'blue' );hold on compass(Ibranch(K)*a, 'red' ); compass(Ibranch(K)*a2, 'green
18、9; ); text(-abs(Ibranch(K),-abs(Ibranch(K),selected nodes' );'Current betweenend%case '2'disp('You Have choose: UNSYMETRICAL FAULT' );disp('The program only calcutes single line to ground faults, it isconsider to happen in phase "a"' )disp(' ' )disp(
19、'Please follow the menu');% Ask for the fault's bus number and the Rf value:disp( ' ' );disp(disp(DATA*' )disp( '*) bus=input ('Please, number the bus where the single phase to groundfault occur. Bus number:' );%bus=bus+1; % Since node zero is also analyzed, the b
20、us number X will have a X+1 indexRf=input( 'Please write the value of the arc resistance Rf=' );Rf perphase.% Calculation of the currents:Ifphaseground=3*Vp(bus)/(Zpos(bus,bus)+Zneg(bus,bus)+Zzero(bus,bus)+3*R f);%Fase aIfa=zeros(8,1);Ifa(bus)=Ifphaseground;Ifa1=Ifa/3;Ifa2=Ifa/3;Ifa0=Ifa/3;f
21、or k=1:8Ifault=A*Ifa0(k);Ifa1(k);Ifa2(k); IF(k,:)=Ifault'end% Voltages;%Fase a: V1=Vp-Zpos*Ifa1; V2=-Zneg*Ifa2; V0=-Zzero*Ifa0;for k=1:8U=A*V0(k);V1(k);V2(k) V(k,:)=transpose(U) end% Showing the Results: disp( ' ' );disp(RESULTSdisp(*' ) disp(*' ) disp( ' ' )FaultCurrent=
22、sprintf('The short circuit currents is: %g A. withangle %g ?, Iref*abs(Ifa(bus),180/pi*angle(Ifa(bus);disp(FaultCurrent);figure();compass(IF(bus,1), 'red' ); hold oncompass(IF(bus,2),'blue' );'Short Circuit current' );compass(IF(bus,3),'green' );text(-abs(IF(bus,1
23、),-abs(IF(bus,1),disp( ' ' )disp ( 'The Voltages at all the buses in the system are:'disp( '' )disp( ' Bus Va Vb Vc' );disp(' )VoltageTokke= sprintf( 'Tokke %gV and %g? %gV and %g? %gV and %g?' ,Uref/sqrt(3)*abs(V(1,1),180/pi*angle(V(1,1),Uref/sqrt(3)*abs(
24、V(1,2) ),180/pi*angle(V(1,2),Uref/sqrt(3)*abs(V(1,3),180/pi*angle(V(1,3);d isp(VoltageTokke)VoltageVinje= sprintf( 'Vinje %gV and %g? %gV and %g? %gV and %g?' ,Uref/sqrt(3)*abs(V(1,1),180/pi*angle(V(2,1),Uref/sqrt(3)*abs(V(2,2) ),180/pi*angle(V(2,2),Uref/sqrt(3)*abs(V(2,3),180/pi*angle(V(2,3
25、);d isp(VoltageVinje)VoltageSonga= sprintf( 'Songa %gV and %g? %gV and %g? %gV and %g?' ,Uref/sqrt(3)*abs(V(3,1),180/pi*angle(V(2,1),Uref/sqrt(3)*abs(V(3,2) ),180/pi*angle(V(3,2),Uref/sqrt(3)*abs(V(3,3),180/pi*angle(V(3,3);d isp(VoltageSonga)VoltageVemork= sprintf( 'Vemork %gV and %g? %g
26、V and %g? %gV and %g?' ,Uref/sqrt(3)*abs(V(4,1),180/pi*angle(V(2,1),Uref/sqrt(3)*abs(V(4,2) ),180/pi*angle(V(4,2),Uref/sqrt(3)*abs(V(4,3),180/pi*angle(V(4,3);d isp(VoltageVemork)VoltageRjukan= sprintf( 'Rjukan %gV and %g? %gV and %g? %gV and %g?' ,Uref/sqrt(3)*abs(V(5,1),180/pi*angle(V(2
27、,1),Uref/sqrt(3)*abs(V(5,2) ),180/pi*angle(V(5,2),Uref/sqrt(3)*abs(V(5,3),180/pi*angle(V(5,3);d isp(VoltageRjukan)VoltageFlesaker=sprintf( 'Flesaker %gV and %g? %gV and %g? %gV and %g?' ,Uref/sqrt(3)*abs(V(6,1),180/pi*angle(V(2,1),Uref/sqrt(3)*abs(V(6,2) ),180/pi*angle(V(6,2),Uref/sqrt(3)*ab
28、s(V(6,3),180/pi*angle(V(6,3);d isp(VoltageFlesaker)VoltageTveiten= sprintf( 'Tveiten %gV and %g? %gV and %g? %gV and %g?' ,Uref/sqrt(3)*abs(V(7,1),180/pi*angle(V(2,1),Uref/sqrt(3)*abs(V(7,2) ),180/pi*angle(V(7,2),Uref/sqrt(3)*abs(V(7,3),180/pi*angle(V(7,3);d isp(VoltageTveiten)VoltageRod= sp
29、rintf( 'Rod%gV and %g? %gVand %g? %gV and %g?' ,Uref/sqrt(3)*abs(V(8,1),180/pi*angle(V(2,1),Uref/sqrt(3)*abs(V(8,2) ),180/pi*angle(V(8,2),Uref/sqrt(3)*abs(V(8,3),180/pi*angle(V(8,3);d isp(VoltageRod)disp( '' )figure()subplot(2,4,1)compass(V(1,2),'b');hold oncompass(V(1,1),
30、9;r');'Tokkes Voltage vectors');compass(V(1,3),'g');text(-abs(V(1,2),-abs(V(1,2), subplot(2,4,2) compass(V(2,2); hold oncompass(V(2,1),'r' );compass(V(2,3),'g' );text(-abs(V(2,2),-abs(V(2,2),'Vinjes Voltage vectors');subplot(2,4,3) compass(V(3,2); hold onc
31、ompass(V(3,1),'r' );compass(V(4,3),'g' );text(-abs(V(3,2),-abs(V(3,2),'Songas Voltage vectors');subplot(2,4,4) compass(V(4,2); hold oncompass(V(4,1),'r' );compass(V(4,3),'g' );text(-abs(V(4,2),-abs(V(4,2),'Vemorks Voltage vectors');subplot(2,4,5) compa
32、ss(V(5,2); hold oncompass(V(5,1),'r' );compass(V(5,3),'g' );text(-abs(V(5,2),-abs(V(5,2),'Rjukans Voltage vectors');subplot(2,4,6) compass(V(6,2); hold oncompass(V(6,1),'r' );compass(V(6,3),'g' );text(-abs(V(6,2),-abs(V(6,2),'Flesakers Voltage vectors'
33、);subplot(2,4,7) compass(V(7,2); hold oncompass(V(7,1),'r' );compass(V(7,3),'g' );text(-abs(V(7,2),-abs(V(7,3),'Tveitens Voltage vectors');subplot(2,4,8) compass(V(8,2); hold oncompass(V(8,1),'r' );compass(V(8,3),'g' );text(-abs(V(8,2),-abs(V(8,2),'Rods Vo
34、ltage vectors');disp(disp(disp()CURRENTSdisp( '*Q=input( 'Do you want to know any of the currentspoints? Y/N:', 's' );k=0;whileQ= 'Y'through two connectedk=k+1;B1(k)=input('Write the first bus number:'B2(k)=input ( 'Write the second bus number:' if Ypo
35、s(B1(k),B2(k)=0disp( ' ' ););disp(between*'disp(k=k-1;else'Warning: *There is no connection )' ' )Ibranch0=(V0(B1(k)-V0(B2(k)*(-Yzero(B1(k),(B2(k)Ibranch1=(V1(B1(k)-V1(B2(k)*(-Ypos(B1(k),(B2(k)Ibranch2=(V2(B1(k)-V2(B2(k)*(-Yneg(B1(k),(B2(k)IbranchK=A*Ibranch0;Ibranch1;Ibranch2Ibranch(k,:)=transpose(Ib
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 促進(jìn)社區(qū)居民參與社團(tuán)活動(dòng)的個(gè)人工作計(jì)劃
- 寧夏慶華煤化集團(tuán)有限公司鹽池縣曹家灣煤礦礦山地質(zhì)環(huán)境保護(hù)與土地復(fù)墾方案評(píng)審表
- 人教版七年級(jí)歷史與社會(huì)下冊(cè)7.1-規(guī)則的演變教學(xué)設(shè)計(jì)001
- 距骨骨折護(hù)理
- 全國(guó)青島版信息技術(shù)七年級(jí)上冊(cè)專題一第3課一、《網(wǎng)絡(luò)信息安全現(xiàn)狀》教學(xué)設(shè)計(jì)
- 2025年孝感貨運(yùn)上崗資格證模擬考試
- 保密法知識(shí)培訓(xùn)講座
- 2025年濟(jì)南貨運(yùn)從業(yè)資格證500道題目和答案
- 2025年青海道路客貨運(yùn)輸從業(yè)資格證模擬考試下載
- 2025年西藏c1貨運(yùn)從業(yè)資格證考試內(nèi)容
- 北師大版數(shù)學(xué)八年級(jí)下冊(cè)全冊(cè)教案及反思
- 背光異物改善8D
- 2024年新教材高中數(shù)學(xué)綜合測(cè)評(píng)含解析新人教B版必修第一冊(cè)
- 2024-2030年中國(guó)動(dòng)畫(huà)產(chǎn)業(yè)發(fā)展趨勢(shì)及未來(lái)前景預(yù)測(cè)分析報(bào)告
- GB/T 44248-2024信息技術(shù)生物特征識(shí)別人臉識(shí)別系統(tǒng)應(yīng)用要求
- 郵票的張數(shù)說(shuō)課
- 教育集團(tuán)理事會(huì)職責(zé)
- 《環(huán)境與資源保護(hù)法(第5版)》全套教學(xué)課件
- 2024年南京信息職業(yè)技術(shù)學(xué)院?jiǎn)握新殬I(yè)技能測(cè)試題庫(kù)附答案
- VDA6.3-2023過(guò)程審核檢查表
- 2024-汽車噴漆外包協(xié)議
評(píng)論
0/150
提交評(píng)論