The real power loss in branch k can be computed as ...

Ploss = results.branch(k, PF) + results.branch(k, PT)

Also, I just noticed my previous response had an error in it. The voltage 
angles used to compute Vf and Vt need to be multiplied by pi/180 to convert 
from degrees to radians.

-- 
Ray Zimmerman
Senior Research Associate
B30 Warren Hall, Cornell University, Ithaca, NY 14853
phone: (607) 255-9645





On Oct 2, 2013, at 2:18 AM, Muhammad Buhari 
<[email protected]> wrote:

> Hi,
> 
> Pls can you help me with an advice on the best method to compute the branch 
> losses using matpower
> 
> Thanks for your continued assisstance.
> 
> Regards
> 
> Muhammad Buhari
> 
> PhD student
> 
> Electrical Energy and Power Systems Research group,
> 
> University of Manchester, UK
> 
> From: [email protected] 
> [[email protected]] on behalf of Ray Zimmerman 
> [[email protected]]
> Sent: 30 September 2013 8:22 PM
> To: MATPOWER discussion forum
> Subject: Re: Branch Currents in matpower 4.1
> 
> For branch k, connecting bus f to bus t, you can calculate them directly from 
> the bus voltages and branch powers.
> 
> Sf = results.branch(k, PF) + 1j * results.branch(k, QF);
> St = results.branch(k, PT) + 1j * results.branch(k, QT);
> Vf = results.bus(f, VM) * exp(1j * results.bus(f, VA));
> Vt = results.bus(t, VM) * exp(1j * results.bus(t, VA));
> If = conj( Sf / Vf );
> %% complex current injected into branch k at bus f
> It = conj( St / Vt );
> %% complex current injected into branch k at bus t
> 
> 
> -- 
> Ray Zimmerman
> Senior Research Associate
> B30 Warren Hall, Cornell University, Ithaca, NY 14853
> phone: (607) 255-9645
> 
> 
> On Sep 28, 2013, at 11:24 AM, Jiashen Teh <[email protected]> 
> wrote:
> 
>> Hi 
>> 
>> I would like to know the method to calculate correctly the branch currents 
>> from the matpower results.
>> 
>> Regards
>> 
>>                 
>> Yours sincerely,
>> 
>> Jiashen Teh
>> PhD Student
>> Electrical Energy & Power Systems Group, School of Electrical & Electronic 
>> Engineering
>> Ferranti Building (B18), The University of Manchester, M13 9PL, United 
>> Kingdom
>> Tel: +44 (0) 161 306 2263; Mobile: +44 (0) 792 322 4864
>> From: Muhammad Buhari
>> Sent: 28 September 2013 16:19
>> To: Jiashen Teh
>> Subject: Branch Currents in matpower 4.1
>> 
>> Hi,
>> 
>> Please can you help me with the method to calculate correctly the branch 
>> currents from the matpower results.
>> 
>> Regards
>> 
>> Muhammad Buhari
>> 
>> PhD student
>> 
>> Electrical Energy and Power Systems Research group,
>> 
>> University of Manchester, UK
>> 
> 
> 

Reply via email to