Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use GENDAT and BUSDT2 to obtain the total PGEN and PLOAD at the bus.

Use GENDAT and BUSDT2 to obtain the total PGEN and PLOAD at the bus.

EDIT:

I didn't find any API returning bus subsystem totals. However, it is possible to use API scale for this. Example: A bus subsystem defined with sid=0.

ierr, totals, moto = psspy.scal_4(0,0,0,[],[])

The totals for the selected subsystem are returned in a tuple. Here, totals[1] contains the total MW load and totals[2] the total MW generation. See PAG manual for the rest of the content in totals.

Use GENDAT and BUSDT2 to obtain the total PGEN and PLOAD at the bus.

EDIT:

I didn't find any API returning bus subsystem totals. However, it is possible to use API scale scal for this. Example: A bus subsystem defined with sid=0.

ierr, totals, moto = psspy.scal_4(0,0,0,[],[])

The totals for the selected subsystem are returned in a tuple. Here, totals[1] contains the total MW load and totals[2] the total MW generation. See PAG manual for the rest of the content in totals.

Use GENDAT and BUSDT2 to obtain the total PGEN and PLOAD at the bus.

EDIT:

I didn't find any API returning bus subsystem totals. However, it is possible to use API scal for this. Example: A bus subsystem defined with sid=0.

ierr, ierr, totals, moto = psspy.scal_4(0,0,0,[],[])

The totals for the selected subsystem are returned in a tuple. Here, totals[1] contains the total MW load and totals[2] the total MW generation. See PAG manual for the rest of the content in totals.