stateestimation-self-deriva.../TransReactivePower.m

14 lines
546 B
Matlab

function [ output_args ] = TransReactivePower( newwordParameter,Volt,VAngel )
%TRANSREAVTIVEPOWER Summary of this function goes here
% Detailed explanation goes here
transI=newwordParameter.trans.transI;
transJ=newwordParameter.trans.transJ;
transR=newwordParameter.trans.transR;
transX=newwordParameter.trans.transX;
cmpSEV=Volt.*exp(1j*VAngel); %¸´Êýµçѹ
% cmpY=sparse(r,c,Y.*(1j*YAngel),length(Volt),length(Volt));
cmpSETransI=(cmpSEV(transI)-cmpSEV(transJ)).*1./(transR+1j*transX);
output_args=imag(cmpSEV(transI).*conj(cmpSETransI));
end