Ask Your Question
0

Voltage Check Report to Excel

asked 2018-02-22 05:38:36 -0600

PSSE_ABCD gravatar image

Hi All

Does anyone have a python script which extracts the buses and their voltages which are outside +/- 5% and exports them to excel after doing a load flow?

Thanks

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2018-02-22 14:41:34 -0600

Ali gravatar image

updated 2018-02-22 14:48:11 -0600

Something like this does the job. After calling this function, write the following line: volviol.to_csv('voltage.csv') and that should do it.

 def voltages_csv():
    # get a dataframe of all buses and their voltages; you need to write this function
    allBusData = AllBuses()
    volviol = []
    for index, iBus in allBusData.iterrows():
        busPu = iBus['pu']
        if not (0.95 <= busPu <= 1.05):
            volviol.append(iBus)
    volviolDF = pd.DataFrame(data=volviol)
    return volviolDF
edit flag offensive delete link more
0

answered 2018-02-22 11:21:24 -0600

user99 gravatar image

You can record the functionality using PSSE GUI and then modify it for your case.

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

1 follower

Stats

Asked: 2018-02-22 05:38:36 -0600

Seen: 553 times

Last updated: Feb 22 '18