how does pypower treat branches with multiple circuits?

63 views
Skip to first unread message

Joshua Johnson

unread,
Apr 8, 2016, 8:05:09 PM4/8/16
to pypower

First of all, I'd like to echo the thanks others have made for this port.


I have used matpower a little and I see that if a branch has multiple circuit connections, the branch information is treated as an additional row in the branch matrix with a redundant set of from-to bus IDs.  I'm not exactly sure what matpower is doing under the hood, but the power flow results are tying to the results I see in PowerWorld for the same case and so I assume matpower is handling them properly.

How are circuit IDs handled python implementation?  Since the circuit ID is dropped in matpower and pypower is porting matpower's functionality, are there any issues with dictionaries trying to access elements with duplicate keys, etc.?

The branches I'm trying to load would look like:

from         to             ckt id
123           456          1
456           789          1
123           789          1
123           789          2

etc.

Thanks in advance!

Josh

Richard Lincoln

unread,
Apr 11, 2016, 1:00:29 PM4/11/16
to pyp...@googlegroups.com

The data in pypower is mostly stored in numpy arrays. The matlab equivalent of a dict is a struct and they too don't support duplicate keys.  Pypower is almost a direct translation of matpower and should handle parallel lines in much the same way.

Richard

--
You received this message because you are subscribed to the Google Groups "pypower" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypower+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joshua Johnson

unread,
Apr 13, 2016, 6:46:35 PM4/13/16
to pypower

Thank you Richard.  When work dies down a little I will look at porting the psse conversion functionality.
Reply all
Reply to author
Forward
0 new messages