简体   繁体   中英

How to access PSSE working case variables by Python a code

I am a transmission planning engineer and trying to automate the execution of PSSE 100 times or more at one go through a Python code. I already runs, change loads, reruns psse and write bus based summary report to *.csv file. What I really want to do is select the first active power load variable of a PSSE case and increase it by 1 MW. Then run psse, write results to a csv file. Change the selected load back to its original value and move on to the next active load to do the same again and again until I have done same for all load busses.

This will help me to calculate transmission loss factors for entire network with one go.

Thanks

@dsmtlk, if you're experienced in Python, you can readily find the information you need in the PSSE API Manual located in your PSSE program folder (mine is in C:\\Program Files (x86)\\PTI\\PSSE33\\DOCS). The API routines for getting bus data are in section 8.6. The routine for changing bus data—viz., psspy.load_data_4() —is in section 2.21.

If you're new to Python, here are a couple links I found helpful when I first started:

https://docs.python.org/2/tutorial/

http://www.tutorialspoint.com/python/

I am new to PSSE as well as Python. I am trying to do exactly what you have done by using Python in order to calculate the transmission losses. Is it possible to share with me your code in Python and any advice or guide in that regard will be highly appreciated.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM