Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I imported PSSE 33 into python in order to change area and zone in file sav but error. How can i fix it?

import os import sys import math PSSELOCATION=r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN' sys.path.append(PSSELOCATION) os.environ['PATH'] = os.environ['PATH'] + ';' + PSSELOCATION import psspy import redirect redirect.psse2py() psspy.psseinit(10000) psspy.case(r'E:\PSSE Programming\Basic Literature\Vidu2.2.7\htdA3.sav') psspy.buschng3(101,[0,0,2,0],[0, 1.052,-5.1561,0,0,0,0],0) psspy.buschng3(102,[0,0,2,0],[0, 1.0885,0,0,0,0,0],0) psspy.buschng3(103,[0,0,2,0],[0, 1.0381, 1.0795,0,0,0,0],0) psspy.buschng3(110,[0,i,2,0],[0,0,0,0,0,0,0],0) psspy.buschng3(110,[0,0,5,0],[0,0,0,0,0,0,0],0) psspy.buschng3(103,[0,0,5,0],[0, 1.0381, 1.0795,0,0,0,0],0) psspy.buschng3(102,[0,0,5,0],[0,0,0,0,0,0,0],0)

click to hide/show revision 2
No.2 Revision

I imported PSSE 33 into python in order to change area and zone in file sav but error. How can i fix it?

import os
import sys
import math
PSSELOCATION=r'C:\Program PSSE_LOCATION=r'C:\Program Files (x86)\PTI\PSSE33\PSSBIN'
sys.path.append(PSSELOCATION)
sys.path.append(PSSE_LOCATION)
os.environ['PATH'] = os.environ['PATH'] + ';' + PSSELOCATION
PSSE_LOCATION
import psspy
import redirect
redirect.psse2py()
psspy.psseinit(10000)
psspy.case(r'E:\PSSE Programming\Basic Literature\Vidu2.2.7\htdA3.sav')
psspy.buschng3(101,[0,0,2,0],[0, psspy.bus_chng_3(101,[0,0,2,0],[0, 1.052,-5.1561,0,0,0,0],0)
psspy.buschng3(102,[0,0,2,0],[0, psspy.bus_chng_3(102,[0,0,2,0],[0, 1.0885,0,0,0,0,0],0)
psspy.buschng3(103,[0,0,2,0],[0, psspy.bus_chng_3(103,[0,0,2,0],[0, 1.0381, 1.0795,0,0,0,0],0)
psspy.buschng3(110,[0,i,2,0],[0,0,0,0,0,0,0],0)
psspy.buschng3(110,[0,0,5,0],[0,0,0,0,0,0,0],0)
psspy.buschng3(103,[0,0,5,0],[0, psspy.bus_chng_3(110,[0,_i,2,0],[0,0,0,0,0,0,0],0)
psspy.bus_chng_3(110,[0,0,5,0],[0,0,0,0,0,0,0],0)
psspy.bus_chng_3(103,[0,0,5,0],[0, 1.0381, 1.0795,0,0,0,0],0)
psspy.buschng3(102,[0,0,5,0],[0,0,0,0,0,0,0],0)

psspy.bus_chng_3(102,[0,0,5,0],[0,0,0,0,0,0,0],0)