0

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

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.

Automation Guy's avatar
1
Automation Guy
asked 2020-08-28 11:50:05 -0500, updated 2020-08-28 11:51:00 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

jconto's avatar
2.9k
jconto
answered 2020-08-28 18:02:16 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer