Ask Your Question
0

Why psspy.accc_with_dsp_3 function doesn't update .acc solution file?

asked 2020-08-28 11:50:05 -0600

Automation Guy gravatar image

updated 2020-08-28 11:51:00 -0600

Hello All, I'm new to this group and also to PSS/E python. I'm developing a python code to run ACCC with the inputs as sub, mon, con and dfx files using the function psspy.acccwithdsp_3 as shown below:

psspy.accc_with_dsp_3
( 
    0.5,
    [0,0,0,0,0,2,0,0,0,0,0],
    'MON',
    dfxFileName,
    accFileName,
    "",
    "",
    ''
)

The problem/questions that I have are:

1. Why does this function expects the name of the solution file .acc as an input and why can't it create it automatically via program?
2. Though I have passed the path and name of the solution file, the file is not updated with the solution data after running the above function (running above function doesn't throws any error).

Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-08-28 18:02:16 -0600

jconto gravatar image

For more information search the forum for "ACCC".

Q1: Ask PTI about it.

Q2: The API functions works OK. Chances are that your code contains errors (filename are missing, ...). Delete the output files (*.dfx, *.acc files). Review the log of the run and post the error statements. Make use of the error value returned after an API call:

ier = psspy.dfax_2(a,b,...)
if ier:
   print ('Error during DFX creation')

Or post your code for testing.

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

Stats

Asked: 2020-08-28 11:50:05 -0600

Seen: 457 times

Last updated: Aug 28 '20