Ask Your Question
0

About pscopf by python

asked 2014-02-14 09:44:53 -0500

LarryHo gravatar image

I used the recording button to find the code of pscopf:

psspy.case(r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\ieee25bus.sav""") psspy.dfax([1,1],r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\ieee25bus.sub""", r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\ieee25bus.mon""", r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\ieee25busN1.con""", r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\ieee25bus.dfx""") psspy.pscopf([0,0,0,1,1,0,1,0,0,0,0,1,1,0,0,1,1,5,2,1,1,1,1,1,1,1],[ 0.5, 100.0, 100.0, 0.1, 0.1, 0.8, 1.5, 1.0, 1.0, 1.0, 1.0],[r"""CTRLARBASE""", r"""CTRLARBASE""", r"""CTRLARBASE""", r"""CTRLARBASE""", r"""CTRLARBASE""", r"""CTRLARBASE""", r"""CTRLARBASE"""], r"""C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\ieee25bus.dfx""","","")

Well then how can I trace out some key variabe that can be used for python script such as

number_iterations = psspy.iterat()

Where can I find other useful function of psspy?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2014-02-14 13:36:27 -0500

yfwing gravatar image

I am assuming that you are looking for the API manual. You can find it in your PSS/E installation directory, by default, it is:

C:\Program Files (x86)\PTI\PSSE33\DOCS
edit flag offensive delete link more
0

answered 2014-02-15 11:12:21 -0500

LarryHo gravatar image

Thanks a lot. That is useful but 2000 pages are tooooo many.

So I would like to ask more: By using PSSE33.exe to solve PSCOPF can get a report like

PTI INTERACTIVE POWER SYSTEM SIMULATOR--PSS圃 SUN, FEB 16 2014 1:10 PREVENTIVE SECURITY CONSTRAINED OPTIMAL POWER FLOW

% LOADING VALUES ARE % MVA FOR TRANSFORMERS AND % CURRENT FOR NON-TRANSFORMER BRANCHES

Distribution factor file:
C:\Program Files (x86)\PTI\PSSE33\EXAMPLE\ieee_25bus.dfx ...

How can I get this report by python? Can I print this report and save as a txt file and ... how?

Thanks for your help.

edit flag offensive delete link more

Comments

you can use `ierr = progress_output(islct, filarg, options)` to direct the output to a file.

yfwing gravatar imageyfwing ( 2014-02-19 16:28:28 -0500 )edit

Thank you. From your prompt, I found my key function: report_output. This is what I ask for.

LarryHo gravatar imageLarryHo ( 2014-02-20 06:39:02 -0500 )edit

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

Stats

Asked: 2014-02-14 09:44:53 -0500

Seen: 387 times

Last updated: Feb 15 '14