全文预览

电网1202刘妍君

上传者:相惜 |  格式:doc  |  页数:26 |  大小:281KB

文档介绍
ndefDECLEARVAR_H_INCLUDED#defineDECLEARVAR_H_INCLUDEDconstintN=100;constintNLINE=100;constdoubleLimit=1e-4;intn_node,n_line,cas;//平衡节点type=0,e,f;PQ节点type=1,PQ;PV节点type=2,pv;structtynode{intid,type;doublenoda,nodb;}gBus[N];//变压器type=1,输电线type=2;structtyline{intid,type,start,ends;doublex,r,bk;}gLine[NLINE];doublegY_G[N][N],gY_B[N][N];doublegDelta_P[N],gDelta_Q[N],gDelta_PQ[2*N];obi[2*N][2*N];doublegDelta_f[N],gDelta_e[N],gDelta_fe[2*N];doublegf[N],ge[N];structtynodeans{intid,type;doublee,f,v,g,p,q;}nodeans[N];structfushu{doublep,q;}S[N][N];#endif//DECLEARVAR_H_INCLUDED(2)头文件”DeclearFunc.h”#ifndefDECLEARFUNC_H_INCLUDED#defineDECLEARFUNC_H_INCLUDEDvoidGetData();voidGetYMatrix();voidSetInitial();voidGetUnbalance();obi();voidGetRevised();voidGetNewValue();voidCalFlow();voidGetAns();voidOutPut();

收藏

分享

举报
下载此文档