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

Ask Your Question
0

How to filter out dummy buses which belong to multi-section lines?

asked Apr 13 '1

bikiran1991 gravatar image

Is there any psspy routine to identify these dummy buses?

1 answer

Sort by » oldest newest most voted
1

answered Apr 14 '1

perolofl gravatar image

No, there is no API returning only the dummy buses.

It can be done by this function:

 def getmsldummies(sid=-1, flag=2):
    ierr, iarray = psspy.abusint(sid,flag, ['NUMBER','DUMMY'])
    duml = []
    for ibus,idum in zip(*iarray):
        if idum == 1: duml.append(ibus)
    return duml

The function returns a list with all multi-section line dummy buses.

link

Comments

thanks a lot!

bikiran1991 gravatar imagebikiran1991 (Apr 14 '1)

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

2 followers

Stats

Asked: Apr 13 '1

Seen: 266 times

Last updated: Apr 14 '21