stateestimation-ipm/TransPower.m

15 lines
584 B
Mathematica
Raw Normal View History

function [ output_args ] = TransPower( newwordParameter,Volt,VAngel )
2013-04-22 21:56:16 +08:00
%TRANSPOWER 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;
transK=newwordParameter.trans.transK;
2013-04-22 21:56:16 +08:00
cmpSEV=Volt.*exp(1j*VAngel); %<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѹ
% cmpY=sparse(r,c,Y.*(1j*YAngel),length(Volt),length(Volt));
cmpSETransI=(cmpSEV(transI)./transK-cmpSEV(transJ)).*1./(transR+1j*transX);
output_args=real(cmpSEV(transI)./transK.*conj(cmpSETransI));
2013-04-22 21:56:16 +08:00
end