Ask Your Question
0

Automated Simulation for System Losses

asked 2018-01-10 15:11:48 -0600

Miami_Engineer gravatar image

I am looking to develop a code/script that would allow me to enter an array of load for a generating unit (ex 0 MW to 25 MW in 0.1 MW increments) and solve the system losses for specified buses instead of having to manually enter and solve for each load input at the generator. Additionally, I am using PSSE version 34.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-01-11 01:22:26 -0600

perolofl gravatar image
  1. Record a python script while doing the data change and solving manually in PSS/E.

  2. Enter a for loop with numpy.arange to vary pgen.

  3. Look for a suitable API in the manual to return the wanted losses.

  4. Print pgen and losses in report window with psspy.report() or store the results in lists for plotting with matplotlib.

edit flag offensive delete link more

Comments

Thanks for the feed back. Following your advice i was able to start a script using the record function, but I have no idea how to set up a forloop using the numpy.arage command. Once I determine an API to return losses, how can I take all of that data and export to excel?

Miami_Engineer gravatar imageMiami_Engineer ( 2018-01-11 09:54:40 -0600 )edit

numpy.arange([start, ]stop, [step, ]dtype=None) in your case nump.arange(0,25,0.1) looks like this returns an array, you'd loop thru the values in the array for load in array: run the recorded stuff and store losses np.savetxt('test.csv', first_layer_output, delimiter=',', fmt='%s')

nelak gravatar imagenelak ( 2018-01-17 10:52:30 -0600 )edit

Thanks for help. I am way over my head at the moment. LOL I will be taking a SIEMENS training course on Python/PSSE in May, so hopefully I'll learn enough to make sense of this.

Miami_Engineer gravatar imageMiami_Engineer ( 2018-04-09 12:33:10 -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: 2018-01-10 15:11:48 -0600

Seen: 889 times

Last updated: Jan 11 '18