How to add a generator to an existing .sav indicating a certain active power?
I try using "machinechng4" but it does not generate changes in power
First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
I try using "machinechng4" but it does not generate changes in power
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]
Asked: 2023-10-19 17:53:44 -0600
Seen: 1,797 times
Last updated: Oct 23 '23
Do you want to add a generator or change data for an existing generator?