Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

aBusReal and aMachReal behaving weirdly

In my dynamic simulation of the IEEE9 bus system, I wish to retrieve the real power generation data of generator buses w.r.t. time. However there seems to be an inconsistency between the values of Real Power retrieved when I use

ierr, current_PGEN = psspy.amachreal(-1, string = "PGEN")

or

ierr, current_PGEN = psspy.agenbusreal(-1, string = "PGEN")

which show the same constant values as in steady state

as opposed to the command

chnfobj = dyntools.CHNF(outfile)

which shows the correct values for the real powers generated in its POWR columns in the resultant excel file.

Some context for the simulation:

  1. I'm increasing all the loads with time.
  2. The generators have governors (and therefore their generations should increase).
  3. Since the first two commands (agenbusreal and amachreal) give values for only that instant, I'm appending the output values to one table for the whole run, instance by instance.
  4. Other API retrievals (bus voltages, line currents) seem to work just fine.
  5. I've set up channel object such that PGens are recorded (an example column in the excel file is POWR 1[BUS1 16.500]1)