First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

PSSE/ Transmission Losses

asked Nov 21 '19

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!!

2 answers

Sort by » oldest newest most voted
0

answered Nov 22 '19

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

link

Comments

Thanks @perolofi for your help

Kutaiba gravatar imageKutaiba (Nov 24 '19)
0

answered Nov 21 '19

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.

link

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 (Nov 21 '19)

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.
Want to format code in your answer? Here is a one minute demo on Youtube

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: Nov 21 '19

Seen: 2,398 times

Last updated: Nov 22 '19