You are on page 1of 2

8/09/18 07:46 AM G:\Mi unidad\2018 -...\Senal_rodamiento.

m 1 of 2

close all
clear all
clc

N = 10 ; %Numero de bolas
F = 60 ; %Frecuencia del eje
g_s= 1.4; %Valor del gs peak a las RPM del eje tomado de la tabla 1. del articulo guia
g = 9.8 ; % Aceleración gravedad

BPFO = 0.4*N*F; %Frecuencia asociada al paso de la pista externa


BPFI = 0.6*N*F; %Frecuencia asociada al paso de la pista interna
FTF = 0.4*F;% Frecuencia fundamental de la Jaula
BSF = 2.4*F; %Frecuencia fundamental de las bolas

Fs=F*16; %Longitud de muestreo espectral


T=1/Fs; % Longitud del muestreo temporal
L=100000; % Cantidad de divisiones del espacio temporal
t=(0:L-1)*T; % Discretizacion de la variable temporal

C_BPFO = g_s*g ;
C_BPFI = 0.01*randn()*C_BPFO;
C_BSF = 0.01*randn()*C_BPFO;
C_FTF = randn()*C_BPFO;

X_BPFO= C_BPFO*sin(BPFO*2*pi*t);
X_BPF1= C_BPFI*sin(BPFI*2*pi*t);
X_BSF= C_BSF*sin(BSF*2*pi*t);
X_FTF= C_FTF*sin(FTF*2*pi*t);

X=X_BPFO+X_BPF1+X_BSF+X_FTF;

Y=fft(X);
P2=abs(Y/L);
P1=P2(1:L/2+1);
P1(2:end-1)=2*P1(2:end-1);

f=Fs*(0:(L/2))/L;

figure
plot(t,X)
hold on
plot(t,C_BPFO,'g')
plot(t,2*C_BPFO,'c')
plot(t,4*C_BPFO,'y')
plot(t,8*C_BPFO,'r')
%Z= [C_PBFO;
% 2*C_BPFO;
% 4*C_BPFO;
% 8*C_BPFO];
%area(Z)
8/09/18 07:46 AM G:\Mi unidad\2018 -...\Senal_rodamiento.m 2 of 2

title('Amplitud aceleración a(t)')


xlabel(' t [s]')
ylabel('aceleración [m/s^2]')
axis([0 0.3 max(X)+10 min(X)-10])

figure
plot(f,P1)
title('Magnitud Velocidad Spectro of F[X(t)](w)')
xlabel('f (Hz)')
ylabel('|P1(f)|')

You might also like