malab code for system vibration

조회 수: 21 (최근 30일)
Teja Narayana Reddy Peta
Teja Narayana Reddy Peta 2022년 11월 14일
댓글: Suraj 2023년 5월 22일
how to draw graph for single degree system using mat lab.
graph for Displacement ratio (T.R.) versus frequency ratio • Force transmissibility versus frequency ratio . • Maximum acceleration versus frequency ratio. • Steady state displacement (xp(t)) versus time. Plot it for at least 5 periods of oscillation.
can any one please help me
  댓글 수: 1
Suraj
Suraj 2023년 5월 22일
Hi Teja,
I understand that you need assistance in drawing graphs for single degree of freedom system vibration. You would like help to create graphs of Displacement ratio (T.R.) versus frequency ratio, Force transmissibility versus frequency ratio, Maximum acceleration versus frequency ratio, and Steady state displacement (xp(t)) versus time. You would like these graphs to be plotted for at least 5 periods of oscillation.
Here is a sample code that can help you create the desired graphs:
% Define system parameters
k = 10; % Spring constant (N/m)
m = 1; % Mass (kg)
% Define frequency ratio
w = (0:0.1:5)*sqrt(k/m);
% Calculate displacement ratio
tr = 1./sqrt((1-(w.^2)));
% Calculate force transmissibility
ft = 1./sqrt((1-(w.^2)).^2+4.*(0.05.*w).^2);
% Calculate maximum acceleration
amax = (w.^2)./sqrt((1-(w.^2)).^2+4.*(0.05.*w).^2);
% Calculate steady state displacement
% xp is the amplitude of displacement
xp = (0:0.01:5).*sqrt(k/m);
% Define time vector for steady state displacement plot
t = linspace(0, 10, 1000);
% Plotting
figure
% Displacement Ratio plot
subplot(2, 2, 1)
plot(w, tr)
title('Displacement Ratio vs Frequency Ratio')
xlabel('Frequency Ratio (w/w_n)')
ylabel('Displacement Ratio (x/x_n)')
% Force Transmissibility plot
subplot(2, 2, 2)
plot(w, ft)
title('Force Transmissibility vs Frequency Ratio')
xlabel('Frequency Ratio (w/w_n)')
ylabel('Force Transmissibility (F_{out}/F_{in})')
% Maximum acceleration plot
subplot(2, 2, 3)
plot(w, amax)
title('Maximum Acceleration vs Frequency Ratio')
xlabel('Frequency Ratio (w/w_n)')
ylabel('Maximum Acceleration (a_{max}/a_{in})')
% Steady State Displacement plot
subplot(2, 2, 4)
for i = 1:length(w)
plot(t, xp(i).*sin(w(i).*t))
hold on
end
hold off
title('Steady State Displacement vs Time')
xlabel('Time (s)')
ylabel('Displacement (m)')
I hope this helps!
Best regards,
Suraj.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by