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

Ask Your Question
0

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

asked Aug 28 '0

Automation Guy gravatar image

updated Aug 28 '0

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.

1 answer

Sort by » oldest newest most voted
0

answered Aug 29 '0

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.

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

Stats

Asked: Aug 28 '0

Seen: 497 times

Last updated: Aug 28 '20