全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
JD=14;ZL=20;WC=0.01;ZP=1,2,0.01335,0.04211,0.0,0.0;1,3,0.0,0.20912,0.0,0.0;1,4,0.0,0.55618,0.0,0.0;1,10,0.05811,0.17632,0.0,0.0340;1,11,0.06701,0.17103,0.0,0.0128;2,10,0.05695,0.17388,0.0,0.0346;2,12,0.0,0.25202,0.0,0.0;2,14,0.05403,0.22304,0.0,0.0492;3,4,0.0,0.11001,0.0,0.0;3,13,0.0,0.17615,0.0,0.0;4,5,0.03181,0.08450,0.0,0.0;4,9,0.12711,0.27038,0.0,0.0;5,6,0.08205,0.19207,0.0,0.0;6,12,0.09498,0.19890,0.0,0.0;7,8,0.22092,0.19988,0.0,0.0;7,12,0.12291,0.25581,0.0,0.0;8,9,0.17093,0.34802,0.0,0.0;8,12,0.06615,0.13027,0.0,0.0;10,11,0.04699,0.19797,0.0,0.0438;10,14,0.01938,0.05917,0.0,0.0528;JP=1,1,-0.478,0.039,1.0,0.0;2,1,-0.076,-0.016,1.0,0.0;3,1,0.0,0.0,1.0,0.0;4,1,-0.295,-0.166,1.0,0.0;5,1,-0.09,-0.058,1.0,0.0;6,1,-0.035,-0.018,1.0,0.0;7,1,-0.061,-0.016,1.0,0.0;8,1,-0.135,-0.058,1.0,0.0;9,1,-0.149,-0.05,1.0,0.0;10,2,0.183,0.0,1.045,0.0;11,2,-0.942,0.0,1.010,0.0;12,2,-0.112,0.047,1.70,0.0;13,2,0.0,0.174,1.90,0.0;14,0,0.0,0.0,1.060,0.0;N1,N2=size(ZP);p=max(ZP(:,1);q=max(ZP(:,2);max1=max(p,q);Y=zeros(max1);for n=1:N1 i1=ZP(n,1);j1=ZP(n,2);r=ZP(n,3);x=ZP(n,4);g=ZP(n,5);b=ZP(n,6); m=r*r+x*x; if i1=j1 Y(i1,i1)=Y(i1,i1)+r/m-j*x/m+j*b; else Y(i1,j1)=Y(i1,j1)-r/m+j*x/m; Y(j1,i1)=Y(i1,j1); Y(i1,i1)=Y(i1,i1)+r/m-j*x/m+j*b; Y(j1,j1)=Y(j1,j1)+r/m-j*x/m+j*b; endend%导纳矩阵生成V=zeros(1,JD);XJ=zeros(1,JD);P=zeros(1,JD);Q=zeros(1,JD);V2=zeros(1,JD);G=real(Y);B=imag(Y);for i=1:JD V(i)=JP(i,5); XJ(i)=JP(i,6); P(i)=JP(i,3); Q(i)=JP(i,4); V2(i)=V(i)*V(i); end %赋值DD=0;PD=1;for i=1:JD e(i)=V(i)*cos(XJ(i); f(i)=V(i)*sin(XJ(i); end while PD=0 PD=0;DD=DD+1; n=JD-1; H=zeros(n);N=zeros(n);J=zeros(n);L=zeros(n);R=zeros(n);S=zeros(n); for i=1:n for k=1:n if(i=k) H(i,k)=-B(i,k)*e(i)+G(i,k)*f(i); N(i,k)=G(i,k)*e(i)+B(i,k)*f(i); J(i,k)=-N(i,k); L(i,k)=H(i,k); R(i,k)=0; S(i,k)=0; else a1=0;b1=0; for i1=1:n a1=a1+G(i,i1)*e(i1)-B(i,i1)*f(i1); b1=1+G(i,i1)*f(i1)-B(i,i1)*e(i1); end H(i,k)=-B(i,k)*e(i)+G(i,k)*f(i)+b1; N(i,k)=G(i,k)*e(i)+B(i,k)*f(i)+a1; J(i,k)=-G(i,k)*e(i)-B(i,k)*f(i)+a1; L(i,k)=-B(i,k)*e(i)+G(i,k)*f(i)-b1; R(i,k)=2*f(i); S(i,k)=2*e(i); end end end J2n=zeros(2*n); for i=1:n if(JP(i,2)=1) for k=1:n J2n(2*i-1,2*k-1)=H(i,k); J2n(2*i-1,2*k)=N(i,k); J2n(2*i,2*k-1)=J(i,k); J2n(2*i,2*k)=L(i,k); end else for k1=1:n J2n(2*i-1,2*k1-1)=H(i,k1); J2n(2*i-1,2*k1)=N(i,k1); J2n(2*i,2*k1-1)=R(i,k1); J2n(2*i,2*k1)=S(i,k1); end end end for i=1:n XP(i)=0;XQ(i)=0; XV2(i)=e(i)*e(i)+f(i)*f(i); for k=1:n XP(i)=XP(i)+e(i)*(G(i,k)*e(k)-B(i,k)*f(k)+f(i)*(G(i,k)*f(k)+B(i,k)*e(k); XQ(i)=XQ(i)+f(i)*(G(i,k)*e(k)-B(i,k)*f(k)-e(i)*(G(i,k)*f(k)+B(i,k)*e(k); end DP(i)=P(i)-XP(i); DQ(i)=Q(i)-XQ(i); DV2(i)=V2(i)-XV2(i); end PQU=zeros(2*n,1); for i=1:n PQU(2*i-1,1)=DP(i); if(JP(i,2)=1) PQU(2*i,1)=DQ(i); else PQU(2*i,1)=DV2(i); end end ma
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 广告牌制作合同书签订注意事项
- 1 《社会历史的决定性基础》 任务式公开课一等奖创新教案统编版高中语文选择性必修中册
- 二手设备买卖协议书案例
- 抵押反担保合同争议解决途径
- 民间借贷偿还协议书范例
- 信息管理系统安全协议
- 摩托车购买合同书范本
- 2024年公益捐赠合同书
- 无偿借用车辆的租赁协议
- 股东协议代签的法律风险与防范措施
- 基于人工智能的文化遗产保护与传承策略
- 2024-2029年中国酒店行业发展分析及发展前景与趋势预测研究报告
- MOOC 高等数学(上)-西北工业大学 中国大学慕课答案
- 无人机测试与评估标准
- 2024年全国法院检察院书记员招聘笔试参考题库附带答案详解
- 碧桂园的财务风险分析与防范措施
- 2024年江西吉安市城市建设投资开发有限公司招聘笔试参考题库含答案解析
- (高清版)WST 813-2023 手术部位标识标准
- 营销商务类管培生
- 《眼科与视功能检查》-2.视力检查课件(实操)
- 冶金煤气安全生产培训课件
评论
0/150
提交评论