RHOs = 1600;
RADIUS = 0.1525;
HEIGHT = 8;
NAT_FREQ = 188;
Mm = 22.34;
Km = 3.11 * 10^7;
Rm = 2730;
Cs = 265;
ATTENUATION = 0.06;
AREA = pi * RADIUS^2;
HEIGHT = HEIGHT * 0.0254;
CsP = Cs / (1 + ATTENUATION * 1i);
CsS = 0.5 * CsP;
K = CsP^2 * RHOs;
G = CsS^2 * RHOs;
FREQ = 1:1000; FREQ = transpose(FREQ);
LAMBDA = CsS ./ FREQ;
COMP = K.^-1;
Ms = RHOs * AREA * HEIGHT;
Ks1 = ((8 * pi) ./ LAMBDA) * G * RADIUS;
Ks2 = (1 / COMP) * (AREA / -HEIGHT);
Ks2 = real(Ks2); Rs2 = imag(Ks2);
Ks1 = real(Ks1); Rs1 = imag(Ks1);
PRESSURE = 1; FORCE = PRESSURE * AREA;
NAT_OMEGA = 2 * pi * NAT_FREQ;
vs = []; vm = [];
for j = 1:length(FREQ)
OMEGA = 2 * pi * j;
if (HEIGHT == 0)
X = -1i * OMEGA * FORCE / (-Km + 1i * OMEGA * Rm + OMEGA^2 * Mm);
vs = [vs X];
else
Rs1 = 0; Ks1 = 0;
A11 = Ks1 + Ks2 - 1i * OMEGA * (Rs1 + Rs2) - OMEGA^2 * Ms;
A12 = Ks2 + 1i * OMEGA * Rs2;
A21 = A12;
A22 = Km + Ks2 - 1i * OMEGA * (Rs2 + Rm) - OMEGA^2 * Mm;
A = [A11 A12; A21 A22];
X = A \ [-1i * OMEGA * FORCE; 0];
vs = [vs X(1)];
vm = [vm X(2)];
end
end
plot(1:1000, abs(vs)); xlim([0 500]);
title('Without Shear Parameters');
xlabel('Frequency (Hz)'); ylabel('Velocity (m/s/1Pa)');
hold on
3 Comments
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/467500-2dof-system-what-is-wrong-with-the-implemented-differential-equations-here#comment_715616
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/467500-2dof-system-what-is-wrong-with-the-implemented-differential-equations-here#comment_715616
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/467500-2dof-system-what-is-wrong-with-the-implemented-differential-equations-here#comment_715631
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/467500-2dof-system-what-is-wrong-with-the-implemented-differential-equations-here#comment_715631
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/467500-2dof-system-what-is-wrong-with-the-implemented-differential-equations-here#comment_715639
Direct link to this comment
https://de.mathworks.com/matlabcentral/answers/467500-2dof-system-what-is-wrong-with-the-implemented-differential-equations-here#comment_715639
Sign in to comment.