Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Option ENTRY defines the order. 1 = winding 1 bus #, 2 = transformer name.

Use awndint to get the bus numbers and winding number.

An example:

ierr, iarray = psspy.awndint(-1,owner=1, ties=3, flag=3, entry=1, string=['WIND1NUMBER', 'WIND2NUMBER', 'WIND3NUMBER', 'WNDNUM'])
ierr, rarray = psspy.awndreal(-1, owner=1, ties=3, flag=3, entry=1, string=['PCTRATEA'])

data = iarray + rarray

for ibus, jbus, kbus, wind, pcta in zip(*data):
    print(ibus, jbus, kbus, wind, pcta)