0

Read variables during dynamic simulation

Hi all,

I wonder if we can read value of variables during dynamic simulation? For example, checking line flow during dynamic simulation, and add some conditions based on that. Since we run simulation (psspy.run) up to a stop time, does psse provide this facility to have the variables values as real time output existed during simulation? ( to be clear, I am not talking about output retrieval from channel setup).

Moji's avatar
1
Moji
asked 2022-06-29 13:10:18 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

You can use API to get the actual value at end of simulation (stop time). It is also possible to run the simulation in steps and get the value at each pause.

As I understand you want to retrieve the values for each time step during the simulation, and that is only possible via channels.

perolofl's avatar
3.8k
perolofl
answered 2022-06-30 02:36:20 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks. Yes I want to read line flow at each time step and compare with rated value to find the overflow line to trip them. I made a loop for psspy.run stopping at each step, now how I can get the line flow at each step? Does ‘brnmsc’ give the value?

Moji's avatar Moji (2022-07-14 06:27:52 -0500) edit

It is better to use model TIOCR1 to trip the line automatically at overcurrent.

perolofl's avatar perolofl (2022-07-15 11:35:08 -0500) edit
add a comment see more comments
0

Hi, I did it for a wind machine writing in Python code:

Add VAR as channels: Vref of PPC

ierr, ival = psspy.windmind(91003,"""S1""", 'WAUX','VAR') psspy.varchannel([-1,ival] ,"""Vref""") psspy.varchannel([-1,ival+1] ,"""Qref""") psspy.varchannel([-1,ival+7] ,"""Q/V deadband""") psspy.varchannel([-1,ival+5] ,"""Q line flow in MVar""")

Add STATE as channels:

ierr, ival = psspy.windmind(91003,"""S1""", 'WAUX','STATE') psspy.varchannel([-1,ival] ,"""Voltage measurement filter""") psspy.varchannel([-1,ival+2] ,"""PI Q""") psspy.var_channel([-1,ival+3] ,"""Lead lag in reactive power path""")

alexius's avatar
15
alexius
answered 2022-08-04 02:26:16 -0500
edit flag offensive 0 remove flag delete link

Comments

Well, Moji wrote that he is not talking about channels...

perolofl's avatar perolofl (2022-08-05 03:52:08 -0500) edit

Sorry I misread... :(

alexius's avatar alexius (2022-08-05 06:02:32 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer