First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

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 May 18 '0

Siam gravatar image

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

2 answers

Sort by » oldest newest most voted
0

answered May 20 '0

Siam gravatar image

updated May 20 '0

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

link
0

answered May 19 '0

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()
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: May 18 '0

Seen: 282 times

Last updated: May 19 '20