First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Amir, you've done a fantastic job importing the psspy library. What you must do next is to initialise PSSE and open a saved case.
import os
import sys
PSSE_PATH=r'C:/program files/pti/psseuniversity32/pssbin'
sys.path.append(PSSE_PATH)
os.environ['PATH']+=';'+PSSE_PATH
import psspy
# initialise psse
psspy.psseinit(10000)
# load a saved case.
psspy.case(r'c:/program files/pti/psseuniversity32/example/savnw.sav')
# now you can grow a bus
psspy.growbus(101,0,-3.2)
But unless you save the slider diagram file, you'll never see the result of growbus, because Python will exit.