Ask Your Question
0

Hello I am using PSSEXplore 34 version. I tried to find out the number of iterations performed in a sav file with the command psspy.iterat(). Unfortunately its not showing it. There is no error while running the code. Can anyone help me out with this?

asked 2020-05-17 19:21:07 -0500

Siam gravatar image

I also tried using psspy.maxmsm and psspy.sysmsm to see what happens. Unfortunately, it is showing nothing.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2020-05-19 18:12:00 -0500

Siam gravatar image

updated 2020-05-19 18:30:05 -0500

Thanks for the answer. I actually used the below code. I also provide the output here. From my understanding it is not performing the iterations. I am not getting it why I am having this output.

import os
import sys
sys_path_PSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN"
sys.path.append(sys_path_PSSE)
os_path_PSSE=r"C:\Program Files (x86)\PTI\PSSEXplore34\PSSBIN"
os.environ['PATH'] += ';' + os_path_PSSE
os.environ['PATH'] += ';' + sys_path_PSSE
import redirect
redirect.psse2py()

import psspy
psspy.throwPsseExceptions =True
import redirect
redirect.psse2py()

psspy.psseinit(8000)
psspy.case('E:\Thesis-REN\IEEE14.sav')
psspy.fnsl()

Number_iterations = psspy.iterat()
Max_mismatch = psspy.maxmsm()
Total_System_mismatch = psspy.sysmsm()

msg1 = "The number of itterations was %s"
msg2 = "The max mismatch was %s"
msg3 = "The system mismatch was %s"

print(msg % Number_iterations)
print(msg2 % Max_mismatch)
print(msg3 % Total_System_mismatch)

####Output#####

SIEMENS POWER TECHNOLOGIES INTERNATIONAL

    50 BUS POWER SYSTEM SIMULATOR--PSS(R)E-34.3.2

         INITIATED ON WED, MAY 20 2020   0:26

08/19/93 UW ARCHIVE 100.0 1962 W IEEE 14 BUS TEST CASE

The Saved Case in file E:\Thesis-REN\IEEE14.sav was saved on WED, APR 24 2019 16:03 PS E:\Thesis-REN\Python_Script

edit flag offensive delete link more
0

answered 2020-05-19 15:20:20 -0500

perolofl gravatar image

Those API:s are not showing anything, they are returning information. Use a print if you want to see the returned values:

print 'Iterations:',psspy.iterat()
print 'Max mismatch:',psspy.maxmsm()
print 'System mismatch:',psspy.sysmsm()
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2020-05-17 19:21:07 -0500

Seen: 224 times

Last updated: May 19 '20