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:
- I'm increasing all the loads with time.
- The generators have governors (and therefore their generations should increase).
- Since the first two commands (
agenbusreal
andamachreal
) give values for only that instant, I'm appending the output values to one table for the whole run, instance by instance. - Other API retrievals (bus voltages, line currents) seem to work just fine.
- 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)