First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
![]() | 1 | initial version |
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