Frequency domain small-signal analysis toolbox for EMT models
Project description
Z-tool
Z-tool is a Python-based implementation for the frequendy-domain stability analysis of modern power systems. The core functionalities are measurement/characterization of EMT models in the frequency domain and small-signal stability assessment. The analysis relies on an existing system model in the EMT simulation software PSCAD and/or input frequency response data.
The following features are currently implemented and validated:
- Voltage perturbation-based admittance scan at several nodes, including converter-based systems and black-box components, via frequency_sweep
- Stability assessment via Generalized Nyquist Criteria applicable to standalone-stable MIMO systems
- Oscillation mode identification via closed-loop eigenvalue decomposition and bus participation factors, EVD
- Passivity assessment and small gain theorem application
- Sensitivity of the Nyquist loci with respect to the components' admittance via loci_sensitivity
- Comprehensive stability analysis computing previous and other metrics via stability_analysis
- Frame conversion functions, e.g. from dq-frame to alpha/beta-frame and to positive/negative sequence
The flowchart below summarizes a common usage of the tool for stability studies, including frequency-domain system identification (frequency_sweep) and several stability analysis functions (stability):
Installation
To use the toolbox, the following pre-requisites are needed.
- Python 3.7 or higher together with
- Numpy, Scipy, and Matplotlib (included in common python installations such as Anaconda)
- PSCAD automation library
- PSCAD v5 or higher is recommended.
- Install the Z-tool via cmd
py -m pip install ztoolacdcor using the repository files. Similarly, cmdpy -m pip install ztoolacdc --upgradeupdates the package.
Usage
A generic usage of the package can be summarized in the following steps:
- Add the Z-tool PSCAD library to your PSCAD project
- Place the tool's scan blocks at the target buses and name them uniquely
- Define the resulting connectivity of the scan blocks (only for multi-infeed analyses)
- Specify the basic simulation settings and frequency range for the study
- Run the frequency scan and small-signal stability analysis functions
Follow the example(s) described here for more guidance. More details on the approach and implemented functions can be found in the papers below and/or this webinar with the complementary slides. The GUI is currently under development.
Other features
- Transfer function scan via the frequency_sweep_TF function, see the example here
- Change of PSCAD component values for parametric studies, see the example here
- PSCAD control arguments: clear temporary files, keep PSCAD open, retain certificate, etc.
- Exploit the symmetric properties of the system to reduce the scan time (optional)
- Different computation of participation factors, e.g. extended PFs via EVD
- Allow previous snapshots to be re-used
- Snapshot simulation plots
Citing Z-tool
If you find the Z-tool useful in your work, we kindly request that you cite the following publications, which you can freely access here and here.
@INPROCEEDINGS{Cifuentes2024,
author={Cifuentes Garcia, Francisco Javier and Roose, Thomas and Sakinci, Özgür Can and Lee, Dongyeong and Dewangan, Lokesh and Avdiaj, Eros and Beerten, Jef},
booktitle={2024 IEEE PES Innovative Smart Grid Technologies Europe (ISGT EUROPE)},
title={Automated Frequency-Domain Small-Signal Stability Analysis of Electrical Energy Hubs},
year={2024},
pages={1-6},
doi={10.1109/ISGTEUROPE62998.2024.10863484}}
@article{Cifuentes2025,
author = {Francisco Javier {Cifuentes Garcia} and Jef Beerten},
title = {Z-Tool: Frequency-domain characterization of EMT models for small-signal stability analysis},
journal = {Electric Power Systems Research},
volume = {252},
pages = {112405},
year = {2026},
doi = {https://doi.org/10.1016/j.epsr.2025.112405}}
Contact Details
For queries about the package or related work please feel free to reach out to Fransciso Javier Cifuentes Garcia. You can find more open-source tools for power systems analysis in the etch website.
License
This is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Z-tool is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.
Contributors
- Francisco Javier Cifuentes Garcia: Main developer
- Thomas Roose: Initial stability analysis functions
- Jan Kircheis, Eros Avdiaj and Özgür Can Sakinci: Validation and support
Future work
- Scans in split projects
- Switch between current and voltage perturbation
- Computation of stability margins: phase, gain and vector margins
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ztoolacdc-0.1.44.tar.gz.
File metadata
- Download URL: ztoolacdc-0.1.44.tar.gz
- Upload date:
- Size: 123.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b150eebd156d62829f659364cb1cec49dfa5dbb2030f2b46402ec7e1651f9e2
|
|
| MD5 |
9cb96e74e97cd6597815e89458a8d4e9
|
|
| BLAKE2b-256 |
8f8843fdd5884e83dc5bc2ba897d8409785b496dd378d713a3c7824c803fc658
|
File details
Details for the file ztoolacdc-0.1.44-py3-none-any.whl.
File metadata
- Download URL: ztoolacdc-0.1.44-py3-none-any.whl
- Upload date:
- Size: 127.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f48bc5d7024dfc70a1683dbc281d1517c89d97b4d7bfb99e3fde2608899da520
|
|
| MD5 |
bb9861348094f07d01bbdde683c7418b
|
|
| BLAKE2b-256 |
0fdc0233b96b13f10c891987d678152a2ca32f29ca8f6475b13c5b1e7704b8f9
|