A toolbox for Python based control of DIgSILENT PowerFactory
Project description
IEEH PowerFactory Tools
A toolbox for Python based control of DIgSILENT PowerFactory.
Field of Application
This application is intended to use for an external usage ('engine mode') of the power flow calculation program DIgSILENT PowerFactory. Therefore, the Python-PowerFactory-API, provided by the company, is utilized.
The following functionalities are provided:
- export of calculation relevant grid data from a PowerFactory project to the IEEH Power System Data Model
- [intended in future release] import from external grid data into the PowerFactory environment
- [intended in future release] basic control of PowerFactory
Tutorials
Jupyter notebooks are provided to get in touch with the usage of this toolbox:
- for export: powerfactory_export.ipynb
Installation
Just install via pip:
pip install ieeh-powerfactory-tools
Compatibility
Due to very useful features in python 3.10+
- which is supported by PowerFactory 2022
, we decided to drop python 3.9
starting from version 1.4
. Users that use an older PowerFactory
version, please use version 1.3
.
Development
Install pdm
Windows:
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py -UseBasicParsing).Content | python -
Linux/Mac:
curl -sSL https://raw.githubusercontent.com/pdm-project/pdm/main/install-pdm.py | python3 -
Install pdm-venv
pdm plugin add pdm-venv
pdm config venv.in_project true
Clone powerfactory-tools
git@github.com:ieeh-tu-dresden/powerfactory-tools.git
cd powerfactory-tools
Install powerfactory-tools
as a production tool
pdm install --prod
Install powerfactory-tools
in development mode
pdm install
For development in Visual Studio Code, all configurations are already provided:
Acknowledgement
Please note that this work is part of research activities and is still under active development.
This code was tested with DIgSILENT PowerFactory 2021 SP5
and DIgSILENT PowerFactory 2022 SP2
.
Attribution
Please provide a link to this repository:
https://github.com/ieeh-tu-dresden/powerfactory-tools
Please cite as:
Institute of Electrical Power Systems and High Voltage Engineering - TU Dresden, PowerFactory Tools - A toolbox for Python based control of DIgSILENT PowerFactory, Zenodo, 2022. https://doi.org/10.5281/zenodo.7074968.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ieeh-powerfactory-tools-1.5.0.tar.gz
.
File metadata
- Download URL: ieeh-powerfactory-tools-1.5.0.tar.gz
- Upload date:
- Size: 36.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.5.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77ecfc866575ec8c513beb89583c95284bc690febd84c2b092a8f9133673d4a5 |
|
MD5 | 819f1cd2fbdee703ba597a253bbbe995 |
|
BLAKE2b-256 | 307c0639bf4ab13a49a387b4a04b2a4ddca23842f26506e7f2c76d732c4a7cf1 |
File details
Details for the file ieeh_powerfactory_tools-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: ieeh_powerfactory_tools-1.5.0-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.5.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4e6fa9eeaf786c78e447a0399db4740fb537ec4d2f918a25d3cc6f12c7381d5 |
|
MD5 | f0058cf544676b6c7d8e3c177f9805d1 |
|
BLAKE2b-256 | 0239460668156b0a310d4f91db57aa860bba6bc222692f35f5f3d63e6a0248d1 |