风力涡轮机故障检测和隔离方法
应用介绍
免费下载用于风力涡轮机故障检测和隔离方法Matlab代码
function [sys,x0,str,ts] = Detection_pitch(t,x,u,flag,A,B,C,L)
switch flag,
%%%%%%%%%%%%%%%%%%
% Initialization %
%%%%%%%%%%%%%%%%%%
case 0,
[sys,x0,str,ts]=mdlInitializeSizes;
%%%%%%%%%%%%%%%
% Derivatives %
%%%%%%%%%%%%%%%
case 1,
sys=mdlDerivatives(t,x,u,A,B,C,L);
%%%%%%%%%%%
% Outputs %
%%%%%%%%%%%
case 3,
sys=mdlOutputs(t,x,u,C);
%%%%%%%%%%%%%%%%%%%
% Unhandled flags %
%%%%%%%%%%%%%%%%%%%
case { 2, 4, 9 },
sys = [];
%%%%%%%%%%%%%%%%%%%%
% Unexpected flags %
%%%%%%%%%%%%%%%%%%%%
otherwise
error(['Unhandled flag = ',num2str(flag)]);
end
% end csfunc
%
%=============================================================================
% mdlInitializeSizes
% Return the sizes, initial conditions, and sample times for the S-function.
%=============================================================================
%
function [sys,x0,str,ts]=mdlInitializeSizes
sizes = simsizes;
sizes.NumContStates = 2;
sizes.NumDiscStates = 0;
sizes.NumOutputs = 1;
sizes.NumInputs = 2;
sizes.DirFeedthrough = 1;
sizes.NumSampleTimes = 1;
sys = simsizes(sizes);
x0 = [0 0 ]' ;
str = [];
ts = [0 0];
% end mdlInitializeSizes
%
%=============================================================================
% mdlDerivatives
% Return the derivatives for the continuous states.
%=============================================================================
%
function sys=mdlDerivatives(t,x,u,A,B,C,L)
y = u(1);
control = u(2);
x_est = x(1:2);
y_est = C*x_est;
sys = [ A*x_est + B*control + L*(y-y_est) ];
% end mdlDerivatives
%
%=============================================================================
% mdlOutputs
% Return the block outputs.
%=============================================================================
%
function sys=mdlOutputs(t,x,u,C)
x_est = x(1:2);
y_est = C*x_est;
sys = [y_est ];
%end mdlOutputs
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: [email protected] 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 风力涡轮机故障检测和隔离方法
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
AeroDynamics.mat | 6.75 KB | 2008-11-13 |
Detection_pitch.m | 0.58 KB | 2010-10-13 |
FDIBenchMarkData.m | 1.65 KB | 2010-11-04 |
FDIBenchMark_BLW_test_b_1025.mdl | 31.80 KB | 2011-03-28 |
FDI_DriveTrain_c.m | 0.61 KB | 2010-10-24 |
FD_fault2_c.m | 0.65 KB | 2010-10-21 |
FD_pitch1_a.m | 0.62 KB | 2010-10-11 |
FD_pitch3_a.m | 0.62 KB | 2010-10-10 |
initialization.m | 0.31 KB | 2010-10-26 |
plot_fault_index.m | 0.15 KB | 2010-10-29 |
winddata.mat | 1,197.95 KB | 2008-11-14 |
mdl_v3.0 | 0.00 KB | 2013-11-11 |
Code of An Estimation-based Approach of Fault Detection and Isolation of the Wind TurbineBenchmark | 0.00 KB | 2017-11-12 |
发表评论 取消回复