分享
分销 收藏 举报 申诉 / 10
播放页_导航下方通栏广告

类型短路计算matlab程序.doc

  • 上传人:w****g
  • 文档编号:11424119
  • 上传时间:2025-07-23
  • 格式:DOC
  • 页数:10
  • 大小:73.05KB
  • 下载积分:8 金币
  • 播放页_非在线预览资源立即下载上方广告
    配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    短路 计算 matlab 程序
    资源描述:
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Power System Analysis' Project: Matlab Program %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% clear all close all clc a=exp(j*2*pi/3); A=[1 1 1 ; 1 a^2 a ; 1 a a^2]; 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=runpf(case9gs,opt); Vp=[results.bus(:,8).*(cos(pi/180*results.bus(:,9))+j*sin(pi/180*results.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 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 (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('*******************************************************************************') bus=input ('Please, number the bus where the three phase short circuit fault occur. Bus number:'); %bus=bus+1; % Since node zero is also analyzed, the bus number X will have a X+1 index Rf=input('Please write the value of the arc resistance Rf per phase. Rf='); % Calculation: If=zeros(8,1); If(bus)=Vp(bus)/(Zpos(bus,bus)+Rf); Vs=Vp-Zpos*If; % Showing the Results: disp(' '); disp('*******************************************************************************') disp('* RESULTS *') disp('*******************************************************************************') FaultCurrent=sprintf('The short circuit currents is: %gA. with angle %g?, Iref*abs(If(bus)),180/pi*angle(If(bus))); disp(FaultCurrent); figure(); compass(If(bus),'blue'); hold on compass(If(bus)*a,'red'); compass(If(bus)*a^2,'green'); text(-abs(If(bus)),-abs(If(bus)),'Short Circuit current'); disp(' ') disp ('The Voltages at all the buses in the system are:') disp (' _____________________________________________') disp (' Bus V Angle[Degree]') disp (' _____________________________________________') VoltageTokke= sprintf(' Tokke %g V %g?,Uref*abs(Vs(1)),180/pi*angle(Vs(1)));disp(VoltageTokke) VoltageVinje= sprintf(' Vinje %g V %g?,Uref*abs(Vs(2)),180/pi*angle(Vs(2)));disp(VoltageVinje) VoltageSonga= sprintf(' Songa %g V %g?,Uref*abs(Vs(3)),180/pi*angle(Vs(3)));disp(VoltageSonga) VoltageVemork= sprintf(' Vemork %g V %g?,Uref*abs(Vs(4)),180/pi*angle(Vs(4)));disp(VoltageVemork) VoltageRjukan= sprintf(' Rjunkan %g V %g?,Uref*abs(Vs(5)),180/pi*angle(Vs(5)));disp(VoltageRjukan) VoltageFlesaker=sprintf(' Flesaker %g V %g?,Uref*abs(Vs(6)),180/pi*angle(Vs(6)));disp(VoltageFlesaker) VoltageTveiten= sprintf(' Tveiten %g V %g?,Uref*abs(Vs(7)),180/pi*angle(Vs(7)));disp(VoltageTveiten) VoltageRod= sprintf(' Rod %g V %g?,Uref*abs(Vs(8)),180/pi*angle(Vs(8)));disp(VoltageRod) disp (' _____________________________________________') figure() subplot(2,4,1) compass(Vs(1),'b'); hold on compass(Vs(1)*a,'r'); compass(Vs(1)*a^2,'g'); text(-abs(Vs(1)),-abs(Vs(1)),'Tokke`s Voltage vectors'); subplot(2,4,2) compass(Vs(2)); hold on compass(Vs(2)*a,'r'); compass(Vs(2)*a^2,'g'); text(-abs(Vs(2)),-abs(Vs(2)),'Vinje`s Voltage vectors'); subplot(2,4,3) compass(Vs(3)); hold on compass(Vs(3)*a,'r'); compass(Vs(3)*a^2,'g'); text(-abs(Vs(3)),-abs(Vs(3)),'Songa`s Voltage vectors'); subplot(2,4,4) compass(Vs(4)); hold on compass(Vs(4)*a,'r'); compass(Vs(4)*a^2,'g'); text(-abs(Vs(4)),-abs(Vs(4)),'Vemork`s Voltage vectors'); subplot(2,4,5) compass(Vs(5)); hold on compass(Vs(5)*a,'r'); compass(Vs(5)*a^2,'g'); text(-abs(Vs(5)),-abs(Vs(5)),'Rjukan`s Voltage vectors'); subplot(2,4,6) compass(Vs(6)); hold on compass(Vs(6)*a,'r'); compass(Vs(6)*a^2,'g'); text(-abs(Vs(6)),-abs(Vs(6)),'Flesaker`s Voltage vectors'); subplot(2,4,7) compass(Vs(7)); hold on compass(Vs(7)*a,'r'); compass(Vs(7)*a^2,'g'); text(-abs(Vs(7)),-abs(Vs(7)),'Tveiten`s Voltage vectors'); subplot(2,4,8) compass(Vs(8)); hold on compass(Vs(8)*a,'r'); compass(Vs(8)*a^2,'g'); text(-abs(Vs(8)),-abs(Vs(8)),'Rod`s Voltage vectors'); disp(' ') disp('*******************************************************************************') disp('* CURRENTS *') disp('*******************************************************************************') Q=input ('Do you want to know any of the currents through two connected points? Y/N:','s'); k=0; while Q=='Y' k=k+1; B1(k)=input('Write the first bus number:'); B2(k)=input ('Write the second bus number:'); if Ypos(B1(k),B2(k))==0 disp(' ') disp('Warning: *************There is no connection between*************') disp(' ') k=k-1; else Ibranch(k)=(Vs(B1(k))-Vs(B2(k)))*(-Ypos(B1(k),B2(k))); end Q=input ('Do you want to know any more of the currents? Y/N:','s'); end disp(' ') disp('*******************************************************************************') disp('* CURRENTS RESULTS *') disp('*******************************************************************************') disp('') if k==0 disp('There are no currents results'); end for K=1:k Current=sprintf ('From bus no %g to bus no %g the current flowing is: %gA %g?,B1(K),B2(K),Iref*abs(Ibranch(K)),180/pi*angle(Ibranch(K)));disp (Current) figure(); compass(Ibranch(K),'blue'); hold on compass(Ibranch(K)*a,'red'); compass(Ibranch(K)*a^2,'green'); text(-abs(Ibranch(K)),-abs(Ibranch(K)),'Current between selected nodes'); end %% case '2' disp('You Have choose: UNSYMETRICAL FAULT'); disp('The program only calcutes single line to ground faults, it is consider to happen in phase "a"') disp(' ') disp('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 ground fault occur. Bus number:'); %bus=bus+1; % Since node zero is also analyzed, the bus number X will have a X+1 index Rf=input('Please write the value of the arc resistance Rf per phase. Rf='); % Calculation of the currents: Ifphaseground=3*Vp(bus)/(Zpos(bus,bus)+Zneg(bus,bus)+Zzero(bus,bus)+3*Rf); %Fase a Ifa=zeros(8,1); Ifa(bus)=Ifphaseground; Ifa1=Ifa/3; Ifa2=Ifa/3; Ifa0=Ifa/3; for k=1:8 Ifault=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:8 U=A*[V0(k);V1(k);V2(k)] V(k,:)=transpose(U) end % Showing the Results: disp(' '); disp('*******************************************************************************') disp('* RESULTS *') disp('*******************************************************************************') disp(' ') FaultCurrent=sprintf('The short circuit currents is: %g A. with angle %g ?, Iref*abs(Ifa(bus)),180/pi*angle(Ifa(bus))); disp(FaultCurrent); figure(); compass(IF(bus,1),'red'); hold on compass(IF(bus,2),'blue'); compass(IF(bus,3),'green'); text(-abs(IF(bus,1)),-abs(IF(bus,1)),'Short Circuit current'); 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(V(1,2)),180/pi*angle(V(1,2)),Uref/sqrt(3)*abs(V(1,3)),180/pi*angle(V(1,3)));disp(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)));disp(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)));disp(VoltageSonga) VoltageVemork= sprintf('Vemork %gV and %g? %gV 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)));disp(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,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)));disp(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)*abs(V(6,3)),180/pi*angle(V(6,3)));disp(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)));disp(VoltageTveiten) VoltageRod= sprintf('Rod %gV and %g? %gV and %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)));disp(VoltageRod) disp('__________________________________________________________________________________________________') figure() subplot(2,4,1) compass(V(1,2),'b'); hold on compass(V(1,1),'r'); compass(V(1,3),'g'); text(-abs(V(1,2)),-abs(V(1,2)),'Tokke`s Voltage vectors'); subplot(2,4,2) compass(V(2,2)); hold on compass(V(2,1),'r'); compass(V(2,3),'g'); text(-abs(V(2,2)),-abs(V(2,2)),'Vinje`s Voltage vectors'); subplot(2,4,3) compass(V(3,2)); hold on compass(V(3,1),'r'); compass(V(4,3),'g'); text(-abs(V(3,2)),-abs(V(3,2)),'Songa`s Voltage vectors'); subplot(2,4,4) compass(V(4,2)); hold on compass(V(4,1),'r'); compass(V(4,3),'g'); text(-abs(V(4,2)),-abs(V(4,2)),'Vemork`s Voltage vectors'); subplot(2,4,5) compass(V(5,2)); hold on compass(V(5,1),'r'); compass(V(5,3),'g'); text(-abs(V(5,2)),-abs(V(5,2)),'Rjukan`s Voltage vectors'); subplot(2,4,6) compass(V(6,2)); hold on compass(V(6,1),'r'); compass(V(6,3),'g'); text(-abs(V(6,2)),-abs(V(6,2)),'Flesaker`s Voltage vectors'); subplot(2,4,7) compass(V(7,2)); hold on compass(V(7,1),'r'); compass(V(7,3),'g'); text(-abs(V(7,2)),-abs(V(7,3)),'Tveiten`s Voltage vectors'); subplot(2,4,8) compass(V(8,2)); hold on compass(V(8,1),'r'); compass(V(8,3),'g'); text(-abs(V(8,2)),-abs(V(8,2)),'Rod`s Voltage vectors'); disp(' ') disp('*******************************************************************************')
    展开阅读全文
    提示  咨信网温馨提示:
    1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
    2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
    3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
    4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
    5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
    6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

    开通VIP折扣优惠下载文档

    自信AI创作助手
    关于本文
    本文标题:短路计算matlab程序.doc
    链接地址:https://www.zixin.com.cn/doc/11424119.html
    页脚通栏广告

    Copyright ©2010-2026   All Rights Reserved  宁波自信网络信息技术有限公司 版权所有   |  客服电话:0574-28810668    微信客服:咨信网客服    投诉电话:18658249818   

    违法和不良信息举报邮箱:help@zixin.com.cn    文档合作和网站合作邮箱:fuwu@zixin.com.cn    意见反馈和侵权处理邮箱:1219186828@qq.com   | 证照中心

    12321jubao.png12321网络举报中心 电话:010-12321  jubao.png中国互联网举报中心 电话:12377   gongan.png浙公网安备33021202000488号  icp.png浙ICP备2021020529号-1 浙B2-20240490   


    关注我们 :微信公众号  抖音  微博  LOFTER               

    自信网络  |  ZixinNetwork