0

Automated Simulation for System Losses

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.

Miami_Engineer's avatar
1
Miami_Engineer
asked 2018-01-10 15:11:48 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0
  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.

perolofl's avatar
3.8k
perolofl
answered 2018-01-11 01:22:26 -0500
edit flag offensive 0 remove flag delete link

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's avatar Miami_Engineer (2018-01-11 09:54:40 -0500) 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's avatar nelak (2018-01-17 10:52:30 -0500) 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's avatar Miami_Engineer (2018-04-09 12:33:10 -0500) edit
add a comment see more comments

Your Answer

Login/Signup to Answer