Ask Your Question

095's profile - activity

2014-12-30 13:39:57 -0500 received badge  Editor (source)
2014-12-30 13:36:57 -0500 asked a question Three Winding Transformer Connection Codes

I am using PSS(R)E V32.2 api commands to output a list of all the three winding transformers that have a connection code of 4. The api returning a value of 4 for only some of the transformers that are actually code 4. Its working 100% accurately for 2 winding transformers but not 3 winding. Is this a bug or am I doing something wrong? I left out the psse init and loading of case and the areas used in the subsystem as I don't think that is the problem.

 ierr = psspy.bsys(0, 1, [0, 999], len(areas), areas, 0, [], 0, [], 0, [])
 ierr, iarray = psspy.awndint(0, 1, 3, 3, 2, ['WIND1NUMBER', 'WIND2NUMBER', 'WIND3NUMBER', 'WNDNUM', 'STATUS', 'CNXCOD', 'OWN1'])

 ierr, carray = psspy.awndchar(0, 1, 3, 3, 2, ['ID'])

 for wind1, wind2, wind3,  id,  wndnum, status, conncode, owner in zip(iarray[0], iarray[1], iarray[2], carray[0], iarray[3], iarray[4], iarray[5], iarray[6]):

    # API is returning code 3 for transformers that are actually code 4?????
    if conncode == 4:
        print owner, wind1, wind2, wind3, id, 'code: %i' % connode