Ask Your Question
0

Results of the percentage load of three-winding transformers with the awndreal() function.

asked 2023-04-18 12:19:53 -0600

waltterval_again gravatar image

updated 2023-04-18 12:25:20 -0600

I run this funtion:

ierr, rarray = psspy.awndreal(sid=0, owner=1, ties=3, flag=3, entry=1, string=['PCTRATEA'])

I get a numpy array with a number of values that is equal to 3 times the number of transformers that I have, one for each winding.

I do not understand the order of the results I get, not if it is sorted in ascending order, taking into account the bus number of the first winding, or if it is sorted by transformer name, etc.

Could someone explain to me how this function presents its results?

I'm working with 35.5.2 version.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2023-04-19 08:23:27 -0600

perolofl gravatar image

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)
edit flag offensive delete link more

Comments

Thanks, I will try it.

waltterval_again gravatar imagewaltterval_again ( 2023-08-25 08:41:36 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2023-04-18 12:19:53 -0600

Seen: 158 times

Last updated: Apr 19 '23