1

psspy.AFLOWCPLX

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?

Hector's avatar
71
Hector
asked 2013-04-10 08:21:39 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2

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.

Eli Pack's avatar
823
Eli Pack
answered 2013-04-11 01:00:08 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer