First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
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.amachreal(0, 4, 'PGEN') df_mach[i] = rarray[0]
i += 1 t += 0.1 psspy.dynamicsmode()
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.amachreal(0, 4, 'PGEN')
'PGEN')
df_mach[i] = rarray[0]
i += 1
i += 1
t += 0.1
0.1
psspy.dynamicsmode()