First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
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.
I added a generator (with no P specified), and then changed the power level. As perolofl implied, it is a three step process
Here is such a recording: The first line sets bus 922200 to be a generator bus, or type 2 (Important! Trap for beginners.) The second adds a generator, with ID='2'. The third sets the generator 2 power to 33.33 MW
psspy.buschng4(922200,0,[2,i,i,i],[f,f,f,f,f,f,f],s) psspy.machinedata2(922200,'2',[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,'2',[i,i,i,i,i,i],[ 33.333,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,_f])
2 | No.2 Revision |
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.
I added a generator (with no P specified), and then changed the power level. As perolofl implied, it is a three step process
Here is such a recording: The first line sets bus 922200 to be a generator bus, or type 2 (Important! Trap for beginners.) The second adds a generator, with ID='2'. The third sets the generator 2 power to 33.33 MW
psspy.buschng4(922200,0,[2,i,i,i],[f,f,f,f,f,f,f],s)
f],_s)
psspy.machinedata2(922200,'2',[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])
1.0])
psspy.machinechng2(922200,'2',[i,i,i,i,i,i,i,i,i,i,i],[ 33.333,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,_f])
3 | No.3 Revision |
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.
I added a generator (with no P specified), and then changed the power level. As perolofl implied, it is a three step process
Here is such a recording:
recording. PSSE has done the job in four steps
The first line sets bus 922200 to be a generator bus, or type 2 (Important! Trap (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='2'.
The third ID='1', and P=0 MW
The fourth sets the generator 2 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,'2',[1,1,0,0,0,0],[0.0,0.0, 2(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,'2',[2(922200,r"""1""",[i,i,i,i,i,i],[ 33.333,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f,f])