Ask Your Question
1

psspy.AFLOWCPLX

asked 2013-04-10 08:21:39 -0600

Hector gravatar image

I have found that the function

"ierr, xarray = psspy.aflowcplx(-1,1,1,1, 'PQLOSS')"

returns an array of power losses, but with each branch loss repeated twice. Is it possible to obtain the losses of each branch only once with this function?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-04-11 01:00:08 -0600

Eli Pack gravatar image

The reason why you're getting each branch repeated twice is because aflowcplx reports on both ends of the line. This functionality is more useful when retrieving the flow, which might be different at each end. In the case of losses, it will look like repetition (since the loss of the line is not dependent on which side you're looking at).

The following two lines will give you the losses without repetition.

ierr, xarray = psspy.aflowcplx(-1,1,1,1,'PQLOSS')
xarray = [xarray[0][::2]]

The second line removes every second result.

edit flag offensive delete link more

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

Stats

Asked: 2013-04-10 08:21:39 -0600

Seen: 1,051 times

Last updated: Apr 11 '13