Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

was able to figure out a way to retrieve the machine output by using the powerflow model "amachreal" API. It will work only if we return PSSE to powerflow mode from the dynamics mode. Following code will help you to understand this logic.

psspy.run(0, t, 0, 24, 0)

psspy.powerflowmode()

ierr, rarray = psspy.agenbusreal(0, 4, 'PGEN')

ierr, rarray = psspy.amachreal(0, 4, 'PGEN') df_mach[i] = rarray[0]

pgen_array.append(rarray[0])

i += 1 t += 0.1 psspy.dynamicsmode()

was able to figure out a way to retrieve the machine output by using the powerflow model "amachreal" API. It will work only if we return PSSE to powerflow mode from the dynamics mode. Following code will help you to understand this logic.

psspy.run(0, t, 0, 24, 0)

psspy.powerflowmode()

ierr, rarray = psspy.agenbusreal(0, 4, 'PGEN')

ierr, rarray = psspy.amachreal(0, 4, 'PGEN') 'PGEN')

df_mach[i] = rarray[0]

pgen_array.append(rarray[0])

i += 1

i += 1 t += 0.1 0.1

psspy.dynamicsmode()