First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered Mar 16 '3

Shawn gravatar image

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()

click to hide/show revision 2
No.2 Revision

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()