Toolbox for Modeling and Analysis of Power Networks in the DQ0 Reference Frame

Analyzes the dynamics of symmetric power networks, generators, and loads in the DQ0 reference frame
2.8K Downloads
Updated 14 Jan 2018

View License

The software manual and more downloads are available at
http://a-lab.ee/projects/dq0-dynamics
-- What this tool does
This is a free software tool for analyzing the dynamics of power systems based on dq0 signals. It is designed to simulate and analyze power systems that include several generators and loads, and possibly a large transmission network. The software provide tools for constructing dynamic models of the system components, and enables analysis in the frequency domain or the time domain. The manual and software provide simple explanations and examples that can help one get started.
-- When to use this software
Several approaches exist for modeling the dynamic behavior of three-phase power systems. Transient simulations that use the abc frame of reference describe the system by means of physical quantities, and thus offer high accuracy and flexibility. This approach is often the most general, since it applies to nonsymmetric systems, and is valid over a wide range of frequencies. Another popular approach is to model the power system using time-varying phasors, often by using the network power flow equations. This approach has many benefits, one of them is that the transmission network is described by means of purely algebraic equations. However, time-varying phasors are only applicable at low frequencies, under the assumption that the system is quasi-static.
A solution that complements these two well-known approaches is to model large power systems on the basis of dq0 quantities. This approach is not as general as abc-based models, and is advantageous mainly when the network and units are symmetrically configured. However, dq0 models combine two properties of interest: similar to transient models, dq0-based models are derived from physical models, and are therefore accurate at high frequencies, so the assumption of a quasi-static network is not required. In addition, similarly to time-varying phasors, dq0 models are time-invariant. This property allows to define an operating point, and enables small-signal analysis, and stability analysis.
-- How this software operates
(More details available at the software manual - see above).
The software describes power systems by means of signal-flow diagrams, in which each component is modeled by dq0 quantities. Transmission networks are represented by linear state-space models with voltage inputs and current outputs. The software automatically constructs the model matrices based on the network data. This can be done using the graphical user interface, or directly from the Matlab command line. The resulting state-space models are of minimal order, and use sparse system matrices, and are therefore suitable for large power systems. The network and its components are modeled using a dq0 transformation that is based on a unified reference frame.
-- Additional details on
** Installation
** Tutorial
** How to cite this work
are available in the software manual (see link above)
-- Contact
Any questions? please contact us at
http://yoash-levron.eew.technion.ac.il/contactus/contact-2/

Cite As

yoash levron (2024). Toolbox for Modeling and Analysis of Power Networks in the DQ0 Reference Frame (https://www.mathworks.com/matlabcentral/fileexchange/58702-toolbox-for-modeling-and-analysis-of-power-networks-in-the-dq0-reference-frame), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
2.6.0.0

Added example: exSyncGenPVinv.m + exSyncGenPVinv_sim.slx

2.5.0.0

All Simulink files are updated to R2014b, to solve version issues.

2.4.0.0

Added example (pv_dq.m) demonstrating modeling of a three-phase photovoltaic inverter based on dq0 signals

2.3.0.0

updated examples

2.2.0.0

fixed typo in example droopB.m

2.1.0.0

Updated documentation

2.0.0.0

Major revision:
- Updated function names
- Clean the code
- Tutorial is added

1.26.0.0

updated function 'eliminate_buses' to handle an empty subset.

1.25.0.0

added example 'example_long_line_7bus.m'

1.24.0.0

Added another example: example_droop_B.m (droop control + central angle reference frame)

1.23.0.0

Added example 'example_droop_A' (basic droop control)

1.22.0.0

Updated website link

1.21.0.0

Updated documentation

1.20.0.0

added contact details

1.19.0.0

- New homepage & software manual

1.18.0.0

new function & example: longline_analytic.m , longline_analytic_ex.m

1.17.0.0

Added example - 'example_14bus_gen_and_renewables.m' - Dynamic simulation of the IEEE 14 bus test case network, with physical synchronous machine models and photovoltaic inverters (renewable sources).

1.16.0.0

Added example 'tst_sync_machine_II' that compares the transient responses of the physical and approximated synchronous machine models.

1.15.0.0

Added example file 'example_long_line_pv.m'

1.14.0.0

Updated implementation and examples for long transmission lines

1.13.0.0

updated documentation

1.12.0.0

Updated function 'step_sparse' to enhance the computation speed for very large systems.

1.11.0.0

Updated function 'step_sparse' to better handle large systems.
Step response is now computed much faster and with lower memory requirements.

1.10.0.0

-- A new example 'example_large_systems_stability.m' has been added.
-- Supporting functions such as 'step_sparse' have been added.
-- Implementation in function 'eliminate_buses' has been improved to support large systems.

1.7.0.0

Updated call to Simulink files to run better on older versions of Matlab.

1.6.0.0

updated typos in documentation. Files without change.

1.5.0.0

Added a new example:
'example_renewable_gen_parameters.m', 'example_renewable_gen_simulink.slx'
Simulates the dynamics of a small network that contain a renewable energy source, using dq0 signals.

1.4.0.0

Updated documentation, files without change

1.3.0.0

Documentation updated. Files without change.

1.2.0.0

Updated documentation. Files have not been changed.

1.1.0.0

Updated small typos in description. Files have not been changed.

1.0.0.0