Automatized AVR tuning with Python in DIgSILENT PowerFactory

Automatized AVR tuning with Python in DIgSILENT PowerFactory

Sometimes it is needed to tune an AVR (automatic voltage regulator) to fulfill specific requirements. Requirements such as rise time, overshoot, and settling time are often used to specify the desired behavior for a given step response of the AVR. Since it is difficult to tune the controller by hand, this post presents an automatized…

Split lines or cables into a pre-defined number of sections in DIgSILENT PowerFactory

Split lines or cables into a pre-defined number of sections in DIgSILENT PowerFactory

In this post, I present an approach to automatically split lines or cables in DIgSILENT PowerFactory into a pre-defined number of sections. The main idea is to loop over every line and split it into a pre-defined number of sections. The sections assume the same line type as the original line. Whereas the length of…

A template for rate-of-change-of-frequency (RoCoF) analysis of synchronous generators/condensers

A template for rate-of-change-of-frequency (RoCoF) analysis of synchronous generators/condensers

The importance of grid connection studies increases around the world. TSOs focus more on the grid impact of new generation units as the energy transition moves forward. Adding more converter-based units changes the power system dynamics fundamentally, e.g. higher frequency gradients. That’s also why TSOs require rate-of-change-of-frequency (RoCoF) analyses before the approval of prospective units….

A template for fault-ride-through (FRT) analysis of synchronous generators/condensers

A template for fault-ride-through (FRT) analysis of synchronous generators/condensers

The importance of grid connection studies increases around the world. TSOs focus more on the grid impact of new generation units as the energy transition moves forward. Adding more converter-based units changes the power system dynamics fundamentally. That’s also why most TSOs require a fault-ride-through (FRT) analysis of prospective units before approval. Similarly important is…

How to create a measurement file for DIgSILENT PowerFactory from a CSV, TXT, or XLSX file?

How to create a measurement file for DIgSILENT PowerFactory from a CSV, TXT, or XLSX file?

Many times when you model time-domain simulations in DIgSILENT PowerFactory you want to use time-series data stored in CSV, TXT, or XLSX files. In PowerFactory you can integrate these time series by means of measurement files (*.ElmFile). These measurement files are simple ASCII files with a column for each variable including the time. The time…

Automatized short-circuit analysis with Python in DIgSILENT PowerFactory

Automatized short-circuit analysis with Python in DIgSILENT PowerFactory

Sometimes you want to know the short-circuit currents and short-circuit powers at different locations in the power system. This could be of importance for different reasons. For example, design of protection systems or identification of weak grid areas in terms of short-circuit power. Therefore, in this post, I present an approach for automatized short-circuit analysis…

Transient stability improvement by re-dispatching of synchronous generators

Transient stability improvement by re-dispatching of synchronous generators

This is a follow-up to my post about Transient Stability Analysis by Evaluation of the Critical Clearing Time with Python in DIgSILENT PowerFactory. While the mentioned post describes the evaluation of transient stability, this post addresses the improvement of transient stability by re-dispatching of synchronous generators. The goal of the re-dispatching is to guarantee a…

Transient stability analysis by evaluation of the critical clearing time with Python in DIgSILENT PowerFactory

Transient stability analysis by evaluation of the critical clearing time with Python in DIgSILENT PowerFactory

Most power system engineers have faced some kind of stability-related questions in their careers. In my case, I have worked quite a bit on transient stability related matters during my PhD (the publications are available on Google Scholar). That is why I decided to write this article about transient stability analysis by evaluation of the…

Automated bottleneck (critical line) analysis with Python in DIgSILENT PowerFactory

Automated bottleneck (critical line) analysis with Python in DIgSILENT PowerFactory

On the 8th of January 2021, the system separation incident in Continental Europe started with the tripping of a line in Croatia due to overcurrent protection. The subsequent shift of the power flow overloaded the neighboring lines and caused them to trip as well. These cascading events are undoubtedly very critical for power systems. This…

Run DIgSILENT PowerFactory through the Python API – kickstart your PowerFactory automatization

Run DIgSILENT PowerFactory through the Python API – kickstart your PowerFactory automatization

Most people who work with DIgSILENT PowerFactory know that sometimes it is convenient to automatize certain tasks to avoid tedious manual work. However, automatization is also key if you want to carry out a large number of simulations with varying parameters. Luckily, DIgSILENT PowerFactory comes with an API interface for Python to do precisely that….