Unified Decentralized Small-Signal Stability Criterion for Grid-Connected Converters - Simulation Code
If you use the code associated with this repo, please remember to cite the paper:
This repository contains the simulation code for the paper Unified Decentralized Small-Signal Stability Criterion for Grid-Connected Converters. The simulations are built using Simulink in MATLAB 2024b. The repository is organized into four main folders.
This folder contains electromagnetic transient (EMT) simulation files for the New England 39-bus system. Each .slx Simulink file has a corresponding .m data file.
- Ensure that the system starts with small-signal stable parameters before switching to another parameter set to verify small-signal stability.
- Recommended startup method: High GFM active power damping and slow GFL operation.
- The simulation uses a discrete time step of
1e-5(same as PSCAD's time step). The step size can be increased, but this may introduce errors.
This folder contains files for theoretical derivation, frequency scan simulations, and result validation:
- Run the frequency scan script
dqscan.mfirst to obtain the actual impedance model of the inverter. - Then, execute
xxx_compare.mto compare the results and validate the small-signal model.
This folder includes functions for computing the DW shell and numerical range using sampling and rotation methods.
- The computation utilizes parallel processing (
parfor). If parallel execution is not supported, replaceparforwithfor. - Example usage cases are included in the folder.
This folder contains details on the admittance calculation for the 39-bus system and the implementation of Kron reduction.
- Includes scripts for constructing the admittance matrix.
- Provides the methodology for reducing the system using Kron reduction.
- Helps in understanding the impact of network parameters on system stability.
- MATLAB 2024b
- Simulink
- Parallel Computing Toolbox (optional, for
parforfunctions)
- Navigate to the respective folder based on the type of analysis.
- Follow the instructions provided for each simulation task.
- Adjust parameters as needed to explore system stability under different conditions.
For any questions or issues, please refer to the paper for theoretical details or reach out to the authors.