%共振解调,轴承故障分析程序。Bearing failure analysis
%以下随便选取CWRU四个文本,并结合说明文件中的Defect frequencies计算理论值(f=Df*rpm/60),具体如下
% 97.mat正常数据文本 0HP(Horse Power,就是负载)
% 105.mat 内圈故障 7mil 0HP 159.92Hz
% 198.mat 外圈故障 14mil 1HP 105.87Hz
% 3005.mat 滚动体故障 28mil 0HP 141.7Hz
% 另外文件夹中还有3006-3008另外三个滚动体故障文本,X049_DE_time-X051_DE_time,可更换验证共振解调算法
% 3006 1HP 1797rpm 139.2Hz
% 3007 2HP 1772rpm 137.4Hz
% 3008 3HP 1730rpm 135.9Hz
clc;
clear;
close all;
%参数设置
sampleFreq = 12000;%采样频率
sampleLength = 8196;%采样点数
%下载正常数据,数据爱放哪放哪,反正MATLAB能识别中文路径,路径别过长就行
good = load('D:\\\97.mat');
data_good = good.X097_DE_time(1:sampleLength);
%下载内圈故障数据
inner = load('D:\\\105.mat');
data_inner = inner.X105_DE_time(1:sampleLength);
%下载外圈故障数据
outer = load('D:\\\198.mat');
data_outer = outer.X198_DE_time(1:sampleLength);
%下载滚动体故障数据
ball = load('D:\\\3005.mat');
data_ball = ball.X048_DE_time(1:sampleLength);
%产生仿真信号
t=0:1/sampleFreq:(sampleLength-1)/sampleFreq;
%信号赋值
Data1 = data_ball;
%==========================================================================
%直接进行FFT变换
%==========================================================================
for n=1:sampleLength
if abs(Data1(n))>10;
Data(n)=0;
else Data(n)=Data1(n);
end
end
fft_result = abs(fft(Data)) * 2 / sampleLength;
%画图的坐标变换
time_plot_s = 0:1/sampleFreq:(sampleLength-1) / sampleFreq;
fft_plot_Hz = sampleFreq*(1:sampleLength/2)/sampleLength;
figure;
subplot(211)
plot(time_plot_s,Data);
title('时域波形');ylabel('振幅/m/s^2');xlabel('时间/s');
grid on;
subplot(212)
plot(fft_plot_Hz,fft_result(1:sampleLength/2));
title('频域波形');ylabel('振幅/m/s^2');xlabel('频率/Hz');
grid on;
%当butter(4,[0.01,0.1]),将下边预处理两部分注释掉或者保留都可以,加不加预处理都不会对共振解调结果产生明显影响
%==========================================================================
%预处理:去除趋势项
%==========================================================================
m=1;
data=Data';
a=polyfit(t,Data,m);
y=Data-polyval(a,t);
%==========================================================================
%预处理:小波降噪
%==========================================================================
[c,l]=wavedec(y,3,'db3');
[thr,sorh,keepapp]=ddencmp('den','wv',y);
Data=wdencmp('gbl',y,'db3',3,thr,sorh,keepapp);
%==========================================================================
%共振解调法
%==========================================================================
%带通滤波
subplot(211);
plot(time_plot_s,Data);
% 包络
envelop_hil = hilbert(Data);
envelop_abs = abs(envelop_hil);
[b,a] = butter(4,[0.01,0.1]) ;
filter_data = filter(b,a,envelop_abs);
%fft变换
envelop_fft = abs(fft(filter_data))*2 /sampleLength;
figure;
subplot(211)
plot(time_plot_s,envelop_abs);
title('包络时域波形');ylabel('振幅/m/s^2');xlabel('时间/s');grid on;
subplot(212)
plot(fft_plot_Hz,10*envelop_fft(2:sampleLength/2+1));
title('包络频域波形');ylabel('振幅/m/s^2');xlabel('频率/Hz');grid on;
% N=length(envelop_fft);
% Xrms=sqrt(sum(envelop_fft.^2)/N)
% beta=sum(envelop_fft.^4)/N
% kv=beta/(Xrms^4)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 16 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/c3aebf790a0d4d6caa1e1b708afba776_m0_55417198.jpg!1)
m0_55417198
- 粉丝: 8
- 资源: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)