https://github.com/mukhlishga/powerfactory-python
Python scripting for DIgSILENT PowerFactory
https://github.com/mukhlishga/powerfactory-python
electrical electrical-engineering power-factory power-flow python
Last synced: 7 months ago
JSON representation
Python scripting for DIgSILENT PowerFactory
- Host: GitHub
- URL: https://github.com/mukhlishga/powerfactory-python
- Owner: mukhlishga
- Created: 2021-10-09T11:13:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-02T15:11:28.000Z (over 3 years ago)
- Last Synced: 2025-06-22T06:06:35.206Z (11 months ago)
- Topics: electrical, electrical-engineering, power-factory, power-flow, python
- Language: Python
- Homepage:
- Size: 22.5 MB
- Stars: 22
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# powerfactory-python
DIgSILENT PowerFactory is a power system simulation software that is commonly used by electrical engineer to conduct various electrical power system analysis. One common use case is for power flow/load flow calculation of a power grid. One advantage of using PowerFactory is that this program can be embedded with python scripts, so we can implement various automated operations in our power system simulation. We can also generate thousands of power flow calculation to make a power flow dataset that can be utilized for machine learning task.
Please first set up the PowerFactory configuration so that it can be embedded with python scripts. You can find the instruction in the PowerFactory user manual 2020 page 359. The python scripts in this repo can be inserted to the python scripts file.
Please first install openpyxl, a Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm files, so we can store the data generated by the python scripts to an excel file. This excel file can be used for other uses.
To install openpyxl you can type the following line to your terminal:
`py -m pip install openpyxl`
Unless you state where you want to put your output file in the code, the default generated excel file can be found in this location:
C:\Users\\{your pc name}\AppData\Local\Temp\PowerFactory.MrfN6dVP