Ask Your Question

How to add a generator to an existing .sav indicating a certain active power?

asked 2023-10-19 17:53:44 -0600

Daniel Barrantes gravatar image

I try using "machinechng4" but it does not generate changes in power

edit retag flag offensive close merge delete


Do you want to add a generator or change data for an existing generator?

perolofl gravatar imageperolofl ( 2023-10-20 00:15:21 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2023-10-23 00:09:49 -0600

Tassie Dave gravatar image

updated 2023-10-23 00:21:42 -0600

I would recommend that you record a script to do what you want to do in the GUI. Then view that script and read up on what the psspy functions do, in the API manual.

Here is such a recording. PSSE has done the job in four steps The first line sets bus 922200 to be a generator bus, or type 2 (Important to do! This is a trap for beginners.) The second configures the plant data for this bus The third adds a generator, with ID='1', and P=0 MW The fourth sets its power to 33.33 MW


psspy.plantdata4(922200,0,[0,0],[ 1.0, 100.0])

psspy.machinedata2(922200,r"""1""",[1,1,0,0,0,0],[0.0,0.0, 9999.0,-9999.0, 9999.0,-9999.0, 100.0,0.0, 1.0,0.0,0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0])

psspy.machinechng2(922200,r"""1""",[i,i,i,i,i,i],[ 33.33,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f]

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: 2023-10-19 17:53:44 -0600

Seen: 1,078 times

Last updated: Oct 23