PSSE bus codes
A reference of all the bus types in PSSE.
Type 1: Load Bus
Type 2: Generator Bus
Type 3: Swing Bus
Type 4: Disconnected
Type 5: Load Bus (at boundary of an area)
Have you ever used Type 5
? I only came across it today in my research.
Here is how to create a new type 1 bus
busnumber, busname = 20020, "PARK_2"
psspy.bus_data_2(i=busnumber, intgar1=1, name=busname)
Beware though, if bus number 20020
already existed then this would change it's type and name - It wouldn't create a new bus at all.