If there are islands, can I get a list of the islanded buses using psspy?
I know about psspy.tree(), but it only returns the number of buses in the swingless island. I want a list of the islanded buses. Is there a way to automate this?
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
I know about psspy.tree(), but it only returns the number of buses in the swingless island. I want a list of the islanded buses. Is there a way to automate this?
The easiest is to use API treedat, which returns a lot of information in a dictionary. The following will return a list with a sublist with bus numbers in every found island.
treeobj = psspy.treedat(999)
islandbuses = treeobj['island_busnum']
For eaxemple, with three islands the list may look like this:
[[101], [102], [201, 202, 203, 204, 205, 206, 211]]
This can be merged into one single list with:
islandbuslist = [j for i in islandbuses for j in i]
Now the list is:
[101, 102, 201, 202, 203, 204, 205, 206, 211]
Everything in a single line:
islandbuslist = [j for i in psspy.treedat(999)['island_busnum'] for j in i]
Asked: 2022-09-22 15:37:45 -0500
Seen: 1,433 times
Last updated: Sep 23 '22
A way to read PSSE sld information into python
Get the number of buses targeted by BSYS
how do I disable the window showing the logs of the power flow solution in python?
Python syntax to extract breaker status
Using psspy and dyntools without PSSE
How to set a custom value of the .sav file using psspy
How to return machine CON description?
No module named psspy with psse33
whit loves you. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.