First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

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

asked Apr 18 '3

waltterval_again gravatar image

updated Apr 18 '3

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.

1 answer

Sort by » oldest newest most voted
0

answered Apr 19 '3

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)
link

Comments

Thanks, I will try it.

waltterval_again gravatar imagewaltterval_again (Aug 25 '3)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Apr 18 '3

Seen: 184 times

Last updated: Apr 19 '23