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

Ask Your Question
0

Multi-Line machine data extraction using area id

asked May 21 '4

anonymous user

Anonymous

I am not very familiar with the API for PSSE, and I am looking to pull all the machine data from PSSE using Python. I am looking to pull the data based on a specific list of areas.

Is there a way of doing that without knowing all the buses?

1 answer

Sort by ยป oldest newest most voted
0

answered May 22 '4

jconto gravatar image

The psspy API contains functions to do the following (crude) algorithm:

- Gather bus data for all buses in case into a bus list
- Gather generation data for all generators in case into a gen list
- Enter an area loop: for areai in selectedareas:
-    Enter a generator loop:
-        Find index in bus list for generator bus
-        if area in bus record == areai:
-              print generator record + bus record(index)
-        else: continue
link

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: May 21 '4

Seen: 237 times

Last updated: May 22 '24