Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to get branch power flow and their bus numbers.

Hello,

I am using the API command psspy.aflowreal to get active power flow of branches in a subsystem. Problem is, using this command does not indicate which value is which.

For example, aflowreal returns:

[10, -9, 20, -21, 30, -29]

Where I'm trying to get:

[ [10, (bus1, bus2)], [-9, (bus2, bus1)], [20, (bus2, bus3)], .... ]

Does anybody have an idea of how I can implement this in my script??

Thanks!!

How to get branch power flow and their bus numbers.

Hello,

I am using the API command psspy.aflowreal to get active power flow of branches in a subsystem. Problem is, using this command does not indicate which value is which.belongs to which 'to and from' bus number.

For example, aflowreal returns:

[10, -9, 20, -21, 30, -29]

Where I'm trying to get:

[ [10, (bus1, bus2)], [-9, (bus2, bus1)], [20, (bus2, bus3)], .... ]

Does anybody have an idea of how I can implement this in my script??

Thanks!!