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

Ask Your Question
0

How to get REPC model's VARS parameter?

asked Sep 8 '1

penny870718 gravatar image

Hello everyone: I want to get the VARS parameter by python after simulation, I've tried to use "psspy.mdlind" but it only can used in traditional machine, not in renewable energy. Can someone tell me how to get REPC model's parameter?

Sincerely, Thanks.

1 answer

Sort by » oldest newest most voted
0

answered Sep 8 '1

perolofl gravatar image

Use API psspy.windmind. See API manaul.

link

Comments

Could I ask what is "Starting VAR index" in this python function? Can I get each second's VARs value?

penny870718 gravatar imagepenny870718 (Sep 8 '1)

The API returns the index of the first VAR of the model. After simulation, you can only get the actual value of the VAR, i.e. the value at the end of the simulation.

perolofl gravatar imageperolofl (Sep 8 '1)

So, if I add a fault in 1 sec, and clear fault in 0.2sec, final run to 20 sec, I can just get 1 sec's VARs, 1.2sec's VARs, and 20 sec's VARs, is it correct?Can I use "psspy.var_channel" to get the actual value of the VARs?

penny870718 gravatar imagepenny870718 (Sep 8 '1)

I've try to use "psspy.var_channel" to get the VARs value. First, I use "psspy.windmind" to get first VAR of the model. Then, I use "psspy.var_channel(status, ident)" to get the VARs value.

penny870718 gravatar imagepenny870718 (Sep 9 '1)

Which "status" I just key in the first VAR of the model that I've got by "psspy.windmind", and the "ident" I just key in a space, like ' '. The result of PSS/E just print "Invalid VAR index: <omitted value="">; value must be in the range 1 through 250000 (002502)".

penny870718 gravatar imagepenny870718 (Sep 9 '1)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Sep 8 '1

Seen: 369 times

Last updated: Sep 08 '21