nopgqg_lineloss/imbalance.m

13 lines
697 B
Matlab
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function [P0,Q0,U,Uangle]=imbalance(PG,PD,PQstandard,Pointpoweri,QG,QD,Busnum)
%**************************************************************************
% 程序功能 : 子函数——计算功率不平衡分量等
% 编 者: 梁 捷
% 编制时间 2010.12
%**************************************************************************
%% 计算功率的不平衡分量
P0=(PG-PD)/PQstandard; % 求取节点注入有功功率的标幺值
Q0=(QG-QD)/PQstandard; % 求取节点注入无功功率的标幺值
%% 平启动赋电压初值
U=ones(1,Busnum); % 按照平启动给电压幅值赋值
Uangle=zeros(1,Busnum); % 按照平启动给电压相角赋值
end