Ask Your Question

How to clear VAR value(dynamic model) through python?

asked 2019-10-10 20:52:13 -0500

LLL gravatar image

I am using the for loop to do the dynamic simulation. However, I find from second loop, there is some error for the result. My colleague tells me if I can clear the VAR value every time, it should be fine. Can anyone tell me how to clear VAR value through python? Thank you very much.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2019-10-11 00:17:24 -0500

perolofl gravatar image

To change a specific VAR with index IVAR use:


To change VAR number N for a plant model with name xxx use:

psspy.change_plmod_var(ibus,id,'xxx',N, new_value)

There are similar API's for other types of dynamic models, like wind machine, loads, line relays, etc. See the API manual.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2019-10-10 20:52:13 -0500

Seen: 17 times

Last updated: Oct 11