Ask Your Question
0

PSSE/ Transmission Losses

asked 2019-11-20 18:21:52 -0500

anonymous user

Anonymous

Hi Everyone, I'm new to PSSE. I am trying to calculate the transmission losses of psse model using Python language by modelling it into two stages: 1) Run the psse load flow and export the results to excel spreadsheet; 2) Increase the generation (generators) by 1MW, and run the load flow again and export the results to excel.

Is there anyway to export the transmission losses to excel spreadsheet using Python or any other methods that can be used as well?

Thanks in advance!!

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2019-11-22 06:44:23 -0500

perolofl gravatar image

The total losses for the whole system is returned with SYSTOT and the total losses in an area with ARDAT (Chapter 7).

edit flag offensive delete link more

Comments

Thanks @perolofi for your help

Kutaiba gravatar imageKutaiba ( 2019-11-24 15:25:32 -0500 )edit
0

answered 2019-11-21 03:10:19 -0500

drsgao gravatar image

You don't really need to calculate the losses yourself as the APIs already have them.

For example, the "aflowreal()" function in the psspy module, which give you the losses of the whole subsystem. You can also get losses by area, just read the API doc.

After acquiring the data, export them to Excel is easy. Just use openpyxl or other modules. I won't recommend PSSE's Excel module though. It is very bad and it terminates all Excel processes without warning on import. It is even easier to export the data to CSV. You just need the standard Python lib.

edit flag offensive delete link more

Comments

Thanks drsgao @drsgao, That's really helpful, can you direct me to which chapter in API document, as it is a very big document.

Kutaiba gravatar imageKutaiba ( 2019-11-21 15:52:01 -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-11-20 18:21:52 -0500

Seen: 2,275 times

Last updated: Nov 22 '19