设为首页收藏本站|繁體中文 快速切换版块

 找回密码
 立即加入
搜索
查看: 3225|回复: 0

How To Regenerate Initial Conditions in matlab /simulink wind generation system

[复制链接]

该用户从未签到

尚未签到

发表于 2009-6-1 10:14:57 | 显示全部楼层 |阅读模式

马上加入,结交更多好友,共享更多资料,让你轻松玩转电力研学社区!

您需要 登录 才可以下载或查看,没有账号?立即加入

×
4. How To Regenerate Initial Conditions; v2 v' H5 |4 r8 K% X2 W
This demo is set-up with all states initialized so that the simulation starts in steady-state. Otherwise, due to the long time constants of the electromechanical part of the wind turbine model and to its relatively slow regulators you would have to wait for tens of seconds before reaching steady-state. The initial conditions have been saved in the "power_wind_dfig_det.mat" file. When you start simulation, the InitFcn callback (in the Model Properties/Callbacks) automatically loads into your workspace the contents of this .mat file ("xInitial" variable specified in the "Initial state" parameter in the Simulation/Configuration Parameters menu).
, u" _; L9 f5 [8 I/ T9 p6 S+ i! E8 Q: z
If you modify this model, or change parameter values of power components, the initial conditions stored in the "xInitial" variable will no longer be valid and Simulink will issue an error message. To regenerate the initial conditions for your modified model, follow the steps listed below:
! |6 ^6 r2 F" R* c4 [- ~7 @# d  {" N. B  L" S. f- Y7 |
In the Simulation/Configuration Parameters menu, uncheck the "Initial state" parameter.
8 M7 y% z4 w; H9 S1 ?In the 120 kV Three-phase Voltage Source menu, disable the source voltage step by setting the "Time variation of " parameter to "none". 5 U( ~1 c5 W5 C) {8 p! E, J, I7 P
In order to shorten the time required to reach steady-state, you will have to temporarily decrease the inertia of the turbine-generator group. Open the DFIG Wind Turbine menu and in the Drive train data and Generator data, divide the H inertia constants by 10. $ ~* \4 a5 S; Y9 F' I
Change the Simulation Stop Time to 5 seconds. Note that in order to generate initial conditions coherent with the 60 Hz voltage source phase angles, the Stop Time must be an integer number of 60 Hz cycles. : _  x, \) X+ N8 ~
Change the Simulation Mode from "Normal" to "Accelerator". 7 H" x1 A) H$ {, L5 d3 s0 w6 h4 q
Start simulation. When Simulation is completed, verify that steady state has been reached by looking at waveforms displayed on the Scope. The final states which have been saved in the "xFinal" structure with time can be used as initial states for future simulations. Executing the next two commands copies these final conditions in "xInitial" and saves this variable in a new file (myModel_init.mat).
0 u+ L' |- v4 S! S>> xInitial=xFinal; 7 R# H9 }. Q- x: @
>> save myModel_init xInitial
! T- n- I4 g8 ?' {In the File/Model Properties/Callbacks/InitFcn window, replace the first line of initialization commands with "load myModel_init". Next time you start a simulation with this model, the variable xInitial saved in the myModel_init.mat file will be loaded in your workspace.
0 L  V: m) c% o6 KIn the Simulation/Configuration Parameters menu, check "Initial state".
) ?( f) J, z+ Y3 m9 ?In the Wind Turbine Generator and Drive train data, reset the inertia constants H back to their original values. 9 j/ H- T; g* \# ~/ E" s% q0 i* {+ }
Start simulation and verify that your model starts in steady-state.
& w8 n* a$ ]2 Q. ]2 n. _( t0 G- TIn the 120 kV Three-phase voltage source menu, set the "Time variation of" parameter back to "Amplitude".   O8 J9 I% m, `' X) k) j
Change the Simulation Stop Time and Simulation Mode back to their original values (0.2 seconds, Normal).
& g/ E9 w" Z: s* [Save your Model.
"真诚赞赏,手留余香"
还没有人打赏,支持一下
楼主热帖
帖文化:【文明发帖 和谐互动】 社区精神:【创新、交流、互助、共享】
您需要登录后才可以回帖 登录 | 立即加入

本版积分规则

招聘斑竹

小黑屋|手机版|APP下载(beta)|Archiver|电力研学网 ( 赣ICP备12000811号-1|赣公网安备36040302000210号 )|网站地图

GMT+8, 2024-4-27 11:21

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表