微❤关注"电气仔推送"获得资料
主体模块:
建议使用MATLAB2021b及以上版本打开!
功率计算模块、下垂控制模块、电压电流双环控制模块

系统输出有功功率:

系统输出无功功率:

系统频率变化曲线:

参考文献:
微电网并网运行模式下的控制方法研究
#include<stdio.h>
#include<windows.h>
int main()
{
double x, y, a;
for (y = 1.5; y > -1.5; y -= 0.1)
{
for (x = -1.5; x < 1.5; x += 0.05)
{
a = x * x + y * y - 1;
if (a * a * a - x * x * y * y * y <= 0)
{
printf("+");
Sleep(1);
}
else
printf(" ");
}
printf("\n");
}
printf("爱情来的太快就像龙卷风,你把握不住的,让哥来\n----HWH");
return 0;
}