image thumbnail

Bidirectional 2-level AC-DC Converter Average Model

version 1.1.0 (50.8 KB) by Chunpeng LI
This is an average AC-DC VSC. Ratings can be changed, and P/V and Q settings can be tuned.


Updated 27 May 2020

View License

This is an average AC-DC VSC. This model will show you the fundamental of VSC about d/q decoupling. The control system operates in pu, so it is flexible to apply this in another network just after changing the ratings in the "Mask" of the converter block. If you want to build a real model based on this average model, you can enable PMW, and replace the controlled 3 voltage sources with 6 switches.

If you have any questions or suggestions, please contact me,

1. Inside the converter control parts, all parameters adopt per unit.
2. Open the "Mask" of the converter [Ctrl+M], go to "Initialisation" tab, you can change all ratings.
3. Double click the converter, in the "global monitor" block, you can observe the variables in pu. And in the up-left boxes, red blocks, you can switch and tune the P/V control, and adjust Q setpoint.

Cite As

Chunpeng LI (2021). Bidirectional 2-level AC-DC Converter Average Model (, MATLAB Central File Exchange. Retrieved .

Li, Chunpeng, et al. “Metrology Requirements of State-of-the-Art Protection Schemes for {DC} Microgrids.” The Journal of Engineering, vol. 2018, no. 15, Institution of Engineering and Technology ({IET}), Oct. 2018, pp. 987–992, doi:10.1049/joe.2018.0254.

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

Inspired by: DC Microgrid Demo


Community Treasure Hunt

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

Start Hunting!