Ask Your Question
0

What is the correct way to finish a simulation

asked 2019-05-16 04:14:45 -0500

toderesa97 gravatar image

I have some simulations and was wondering what is the best way (instructions using psspy) to finish successfully a simulation. I don't know if it is a silly or useless question, but have searched on this site and have not found anything, so if someone could shed some light on this, I'd really appreciate it.

The way I currently finish a simulation is by executing these set of instructions:

psspy.delete_all_plot_channels()
psspy.dynamicsmode(0)
ierr_close_line = psspy.close_powerflow()
ierr_del_tmpfiles = psspy.deltmpfiles()
ierr_halt = psspy.pssehalt_2()

Thanks, Tomás.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2019-05-17 00:06:59 -0500

perolofl gravatar image

updated 2019-06-22 12:19:58 -0500

There is nothing needed to ”finish a simulation”. You don’t need those lines. What do you want to do?

EDIT: Too many people believe it is necessary to stop PSSE before doing the next dynamic simualtion.

You only need to:

1: Open a saved case

2: Open a snapshot

3: Convert generators and loads

4: Initialise dynamic simulation (STRT)

5: Perform the steps in the simulation (RUN and disturbances). The last RUN performed will define the "end of simulation"!

edit flag offensive delete link more
0

answered 2019-06-21 11:46:23 -0500

boat14 gravatar image

updated 2019-06-21 11:47:00 -0500

You can just terminate with the psspy.pssehalt_2() command.

psspy.delete_all_plot_channels()         # this clears the channels, not required because you're not saving the .snp file.
psspy.dynamicsmode(0)                    # not required, as you're not doing any more operations.
ierr_close_line = psspy.close_powerflow()# not required, as you're not doing any more operations.
ierr_del_tmpfiles = psspy.deltmpfiles()  # not required, I'm pretty sure temp files get cleared when PSS/e terminates
edit flag offensive delete link more

Comments

API psspy.pssehalt_2 will stop PSSE. The question is "How to finish a simulation".

perolofl gravatar imageperolofl ( 2019-06-22 12:12:07 -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

1 follower

Stats

Asked: 2019-05-16 04:14:45 -0500

Seen: 100 times

Last updated: Jun 22