Ask Your Question
0

Move some of the load to another bus

asked 2023-08-12 04:08:27 -0500

Vlad gravatar image

Is there a clever way to move from a node just a part of the load with python? Lets say I want to move some load from bus A and add it to bus B, but in many data bases in which the load differ. So load A= 10MW load B= 5MW, move 5MW from A to B... but in another base load is 15 with 7 lets say. When I record with python it puts the final value... so I need to read first de actual load, substract and add.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2023-08-14 09:39:33 -0500

jconto gravatar image

One way is to create a 'reading' function, with load bus, id as parameter to read the Pmw of a load and Pmw as output. Next calculate the new value for load B and load A using the increment wanted, and write those values back. A loop can be used to iterate over all the different cases. Post the script for other to comment on it. All psspy functions are available in 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

Stats

Asked: 2023-08-12 04:08:27 -0500

Seen: 125 times

Last updated: Aug 14 '23