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 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!!