Skip to main content

A toolbox for Python based control of DIgSILENT PowerFactory

Project description

IEEH PowerFactory Tools

License

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 into three common readable JSON files utilizing predefined schemas:
    • grid topology:
      • base topology containing all elements of the exported grid
    • topology case;
      • information about disabled elements to represent a specific operational case based on the base topology
    • steadystate case
      • information about power draw/infeed for a specific operational case
  • [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:

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.

DOI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ieeh-powerfactory-tools-1.4.2.tar.gz (40.7 kB view details)

Uploaded Source

Built Distribution

ieeh_powerfactory_tools-1.4.2-py3-none-any.whl (52.0 kB view details)

Uploaded Python 3

File details

Details for the file ieeh-powerfactory-tools-1.4.2.tar.gz.

File metadata

File hashes

Hashes for ieeh-powerfactory-tools-1.4.2.tar.gz
Algorithm Hash digest
SHA256 5546a730e286537e40d4fd11c2197e2a3099cbd7fe12f05bcd4a42bcbe6c462d
MD5 35e83c7551ac29355588abf7dd0d05b6
BLAKE2b-256 10a50ba7cac45fdc4028d8c634acb686688a089cae3137812a0fdc4c853d590b

See more details on using hashes here.

File details

Details for the file ieeh_powerfactory_tools-1.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ieeh_powerfactory_tools-1.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e5e3501c9c64d61a8116e140a3c9850981d46f301c3a6658b30399f3d0bc951
MD5 6d50262ea3a88e0771fc5a4accd6f0c8
BLAKE2b-256 c98f2341d3ff5d76c7816f33a298de3cdc115cedcfee12503ee404e1f8c97d5a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page