The code is simulating the swing curve for a power system after a fault is cleared. The swing curve shows the variation of the rotor angle of a synchronous generator with respect to time after a disturbance.
The simulation considers the effect of a fault and subsequent clearing of the fault after a specified time. The values of the fault clearing time tfl, the fault duration tf, the critical clearing time tc, and the time step ts are all specified in the code.
The pm variable represents the mechanical power input to the generator, while pm1, pm2, and pm3 are the perturbation amplitudes applied to pm during the simulation.
The swing curve is plotted using the plot function at the end of the code. The axis function sets the limits of the x and y-axis of the plot, while title adds a title to the plot.
引用格式
recent works (2024). swing curve for a power system after a fault is cleared (https://www.mathworks.com/matlabcentral/fileexchange/126804-swing-curve-for-a-power-system-after-a-fault-is-cleared), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2023a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |