Ask Your Question
0

Change the value of loads (load_chng_4) in Python

asked 2017-02-23 07:15:02 -0500

Anna gravatar image

Hi!

I have created a for loop in Python to simulate the load flow in PSS/E for every hour during one year. The only thing that changes in input is the load values (P) and hence I'm using a function that includes:

psspy.loadchng4(node,name,[i,i,i,i,i,i],[ P, f,f,f,f,_f])

However, when I am running the script it complains that _f is not definied. I thought that it would be the default values or the values that I have already given to it. The only thing I want to change for every load during every iteration is the active power. How can I solve this?

Thanks for all the help I can get!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-23 10:52:48 -0500

EBahr gravatar image

If you add the following at the top of your code it should work correctly.

_i, _f = psspy.getbatdefaults()

edit flag offensive delete link more

Comments

Thank you!

Anna gravatar imageAnna ( 2017-02-24 03:18:05 -0500 )edit

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

Stats

Asked: 2017-02-23 07:15:02 -0500

Seen: 527 times

Last updated: Feb 23 '17