Ask Your Question
0

reduce the time for running

asked 2020-05-09 17:41:06 -0600

maryam gravatar image

Hello all,

I have a code (in python) which is run a dynamic model in PSSE. For every simulation, I run the code and get the P and Q of the generator ( I set the final time of simulation, as 20 seconds). Every simulations takes 3-5 seconds to complete. Does anybody now what are the factor that impact this time? and does any body can help me to how to reduce this time? Thank you. best regards

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-05-10 20:56:37 -0600

jconto gravatar image

Standard simulations parameter values for integration step size is 1/4 of a cycle (60 Hz), acceleration factor set to 1. Verify that during case conversion, TSYL activity converged in 1 or 2 iterations. Select minimum but necessary set of channels. Send output of process to a log file (or to null device) instead of the default screen. Try running the simulation outside the PSSe GUI, using python and PSSe API. These settings will give you a baseline simulation time. Deviations from these settings may render longer simulation times.

For a dynamic run, 3-5 sec total simulation time is fast. If you have to do multiple runs (>100) consider parallel processing. Search this forum for more related posting.

edit flag offensive delete link more

Comments

Thank you so much. Your comments is useful for me. But I don't understand what is the acceleration factor in the code. pssspy.run(option, tpause, nprt, nplt, ctrplt) here is the setting for me pssspy.run(0, 2, nprt??, nplt??, ctrplt??) I dont know how to set the three parameters in this line.

maryam gravatar imagemaryam ( 2020-05-13 15:44:42 -0600 )edit

From the API.pdf: acceleration factor is set to 1.0 as, psspy.dynamics_solution_param_2([99,_i,_i,_i,_i,_i,_i,_i], [ 1.0,_f, 0.001, 0.004,_f,_f,_f,_f]) The run command writes data to disk by skipping 3, to screen/log by skipping 99, plot 0 points: psspy.run(0, 2, 99, 3, 0) #nprt?, nplt?, ctrplt?

jconto gravatar imagejconto ( 2020-05-13 21:39:33 -0600 )edit

Thank you so much.

maryam gravatar imagemaryam ( 2020-05-14 00:49:42 -0600 )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

1 follower

Stats

Asked: 2020-05-09 17:41:06 -0600

Seen: 621 times

Last updated: May 10 '20