First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
Hi everyone,
I am trying to equivalent the network up to machine node, and the code works well in psse 33, however, in PSSE Xplore 34, it seems something wrong with my operation in eeqv or xeqv.
My code can work without the equivalence API yet the spyder will collapse every time I add "psspy.eeqv". But this function works well when I use the interface.
If anyone knows how to fix this, I would appreciate that.
My code is as follows:
import os import sys syspathPSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27' #or where else you find the psspy.pyc sys.path.append(syspathPSSE) ospathPSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN' # or where else you find the psse.exe os.environ['PATH'] += ';' + ospathPSSE import psspy
pp = r'C:\Program Files (x86)\PTI\PSSEXplore34\EXAMPLE\savnw' pp2 = r'D:' psspy.psseinit(buses=39) import redirect redirect.psse2py() if not os.path.isfile(pp2+'progress.txt'): tmpfile = open(pp2+'progress.txt', 'w+') tmpfile.close() psspy.progressoutput(6, pp2+'progress.txt', [0,0])
psspy.read(0,pp+'.raw') psspy.fdns([0,0,0,1,1,0,99,0]) psspy.fdns([0,0,0,1,1,0,99,0]) psspy.eeqv(0,1,[0,0,0,0,0,0],[0.0, 10.0]) psspy.cong(0)
psspy.conl(-1,1,1) psspy.conl(-1,1,2,[0,0],[100,0,0,100]) psspy.conl(-1,1,3)
psspy.ordr() psspy.fact() psspy.tysl() print 'finish'
2 | No.2 Revision |
Hi everyone,
I am trying to equivalent the network up to machine node, and the code works well in psse 33, however, in PSSE Xplore 34, it seems something wrong with my operation in eeqv or xeqv.
My code can work without the equivalence API yet the spyder will collapse every time I add "psspy.eeqv". But this function works well when I use the interface.
If anyone knows how to fix this, I would appreciate that.
My code is as follows:
import os
import sys
3 | No.3 Revision |
Hi everyone,
I am trying to equivalent the network up to machine node, and the code works well in psse 33, however, in PSSE Xplore 34, it seems something wrong with my operation in eeqv eeqv/xeqv, or xeqv.is this a bug in PSSE Xplore 34 ?
My code can work without the equivalence API yet the spyder will collapse every time I add "psspy.eeqv". But this function works well when I use the interface. interface (the interface will also collapse sometimes).
If anyone knows how to fix this, I would appreciate that.
My code is as follows:
import os
import sys
sys_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27' #or where else you find the psspy.pyc
sys.path.append(sys_path_PSSE)
os_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN' # or where else you find the psse.exe
os.environ['PATH'] += ';' + os_path_PSSE
import psspy
pp = r'C:\Program Files (x86)\PTI\PSSEXplore34\EXAMPLE\savnw'
pp2 = r'D:'
psspy.psseinit(buses=39)
import redirect
redirect.psse2py()
if not os.path.isfile(pp2+'_progress.txt'):
tmp_file = open(pp2+'_progress.txt', 'w+')
tmp_file.close()
psspy.progress_output(6, pp2+'_progress.txt', [0,0])
psspy.read(0,pp+'.raw')
psspy.fdns([0,0,0,1,1,0,99,0])
psspy.fdns([0,0,0,1,1,0,99,0])
psspy.eeqv(0,1,[0,0,0,0,0,0],[0.0, 10.0])
psspy.cong(0)
psspy.conl(-1,1,1)
psspy.conl(-1,1,2,[0,0],[100,0,0,100])
psspy.conl(-1,1,3)
psspy.ordr()
psspy.fact()
psspy.tysl()
print 'finish'
4 | No.4 Revision |
Hi everyone,
In my work, I am trying going to equivalent the network up to machine node, and the code in following works well in psse 33, however, in PSSE Xplore 34, it seems something wrong with my operation in eeqv/xeqv, or the IDE collapse every time I run the code, is this a bug in PSSE Xplore 34 ?
My In PSSE Xplore 34, my code can work without the equivalence API API, yet the spyder IDE will collapse every time I add the line "psspy.eeqv". But this
The network equivalence function works well when I use the interface (the in PSSE Xplore 34 interface, although the interface will also collapse sometimes). sometimes.
If anyone knows how to fix this, I would appreciate that.
My code is as follows:
import os
import sys
sys_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27' #or where else you find the psspy.pyc
sys.path.append(sys_path_PSSE)
os_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN' # or where else you find the psse.exe
os.environ['PATH'] += ';' + os_path_PSSE
import psspy
pp = r'C:\Program Files (x86)\PTI\PSSEXplore34\EXAMPLE\savnw'
pp2 = r'D:'
psspy.psseinit(buses=39)
import redirect
redirect.psse2py()
if not os.path.isfile(pp2+'_progress.txt'):
tmp_file = open(pp2+'_progress.txt', 'w+')
tmp_file.close()
psspy.progress_output(6, pp2+'_progress.txt', [0,0])
psspy.read(0,pp+'.raw')
psspy.fdns([0,0,0,1,1,0,99,0])
psspy.fdns([0,0,0,1,1,0,99,0])
psspy.eeqv(0,1,[0,0,0,0,0,0],[0.0, 10.0])
psspy.cong(0)
psspy.conl(-1,1,1)
psspy.conl(-1,1,2,[0,0],[100,0,0,100])
psspy.conl(-1,1,3)
psspy.ordr()
psspy.fact()
psspy.tysl()
print 'finish'
5 | No.5 Revision |
Hi everyone,
In my work, I am going to equivalent the network up to machine node, and the code in following works well in psse 33, however, in PSSE Xplore 34, PSSE34, the IDE collapse every time I run the code, is this a bug in PSSE Xplore 34 ?
In PSSE Xplore 34, my code can work without the equivalence API, yet the spyder IDE will collapse every time I add the line "psspy.eeqv".
The network equivalence function works well in PSSE Xplore 34 interface, although the interface will also collapse sometimes.
If anyone knows how to fix this, I would appreciate that.
My code is as follows:
import os
import os, sys
#print (sys.version)
#print(sys.path)
# Set path
sys_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSPY27' #or where else you find the psspy.pyc
(x86)\PTI\PSSE34\PSSPY27'
sys.path.append(sys_path_PSSE)
os_path_PSSE=r'C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN' # or where else you find the psse.exe
(x86)\PTI\PSSE34\PSSBIN'
os.environ['PATH'] += ';' + os_path_PSSE
import psspy
pp = r'C:\Program Files (x86)\PTI\PSSEXplore34\EXAMPLE\savnw'
pp2 = r'D:'
psspy.psseinit(buses=39)
import redirect
redirect.psse2py()
(x86)\PTI\PSSE34\EXAMPLE\savnw'
psspy.psseinit(buses=50)
if not os.path.isfile(pp2+'_progress.txt'):
os.path.isfile(pp+'_progress.txt'):# output the progress to a file
tmp_file = open(pp2+'_progress.txt', open(pp+'_progress.txt', 'w+')
tmp_file.close()
psspy.progress_output(6, pp2+'_progress.txt', psspy.progress_output(2, pp+'_progress.txt', [0,0])
psspy.read(0,pp+'.raw')
psspy.fdns([0,0,0,1,1,0,99,0])
psspy.fdns([0,0,0,1,1,0,99,0])
psspy.eeqv(0,1,[0,0,0,0,0,0],[0.0, 10.0])
psspy.cong(0)
psspy.conl(-1,1,1)
psspy.conl(-1,1,2,[0,0],[100,0,0,100])
psspy.conl(-1,1,3)
psspy.ordr()
psspy.fact()
psspy.tysl()
# it works well in interface, while collapase every time when called by API
print 'finish'
"finish"