Ask Your Question
0

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

asked Oct 19 '3

Daniel Barrantes gravatar image

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

Comments

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

perolofl gravatar imageperolofl (Oct 20 '3)

1 answer

Sort by » oldest newest most voted
0

answered Oct 23 '3

Tassie Dave gravatar image

updated Oct 23 '3

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.buschng4(922200,0,[2,i,i,i],[f,f,f,f,f,f,f],_s)

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]

link

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: Oct 19 '3

Seen: 1,828 times

Last updated: Oct 23 '23