19. clear all
clc
syms y t
u0=0;
v0=0;
Wn=5;
m=2;
time = linspace ( 0,5,200);
U1 = u0* cos(Wn.*time)+v0/Wn* sin(Wn.*time);
plot(time,U1,'k')
hold on
tt = t -5;
yy = y -5 ;
hy=0.1.*sin(5*(tt-yy));
fy=1.2;
u2=int(hy*fy,y,0,tt);
v2=diff(u2,t);
T=linspace(5,7,200);
U2 = double (subs(u2,t,T));
V2 = double(subs(v2,t,T));
plot(T,U2,'r-');
hold on
U=double(subs(u2,t,7))
V=double(subs(v2,t,7))
t=linspace(7,12,200);
tt1 = t - 7 ;
Dis=U.*cos(Wn.*(tt1))+(V/Wn).*sin(Wn.*(tt1));
plot(t,Dis,'b-')
hold on
clc
clear
M = 2;
K = 50;
u0 =0;
v0 = 0;
Wn =5 ;
T = linspace( 0,12,200);
syms u(t) t
du = diff(u,t);
u = dsolve ( M*diff(du,t)+ K*u==0,u(0)==0,du(0)==0);
v = diff(u,t);
time = linspace(0,5,200);
UQ = double (subs(u,t,time))
VQ = double(subs(u,t,time));
20. U1 = double (subs(u,t,5));
V1 = double (subs(v,t,5));
plot(time,UQ,'k*')
hold on
syms u1(t1) t1
du1 = diff(u1,t1);
u1 = dsolve ( M*diff(du1,t1)+ K*u1==1.2,u1(5)==U1,du1(5)==V1);
v1 = diff(u1,t1);
time = linspace(5,7,200);
U2 = double (subs(u1,t1,time));
V2 = double(subs(u1,t1,time));
U22 = double (subs(u1,t1,7));
V22 = double (subs(v1,t1,7));
plot(time,U2,'g*')
hold on
syms u2(t2) t2
du2=diff(u2,t2);
u2=dsolve(M*diff(du2,t2)+K*u2==0,u2(7)==U22,du2(7)==V22);
v2=diff(u2,t2);
time = linspace(7,12,200);
U3 = double(subs(u2,t2,time));
U4 = double (subs(v2,t2,time));
plot(time,U3,'r*')
grid on
hold on
xlabel ('Time')
ylabel ('Displacement')
title ( 'Delayed rectangular pulse response')
legend ( 'Initial response','Forced response','Residual free vibration','location','Sout
hOutside' )
U =
0.0455
V =
-0.0514
UQ =
Columns 1 through 13
0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 14 through 26
40. Time (t)
0 2 4 6 8 10 12 14 16 18
Response(rad)
-0.2
-0.15
-0.1
-0.05
0
0.05
0.1
0.15
0.2
Numerical Solution of the Pendulum for 3=10
Nonlinear
Linear
41. m1=2;m2=4;k1=100;k2=100;k3=200;
[frequency,v]= eigen;
M=[m1,0;0 m2];
K=[k1+k2,-k2;-k2,k2+k3];
x=[1;0];
xdot=[0;-2];
Xo=[x;xdot];
T= (2*pi/7.0711);
time=[0:0.01:3*T];
[t,q]=ode45(@mdof_ini_ode45,time,Xo);
n=length(x);
XX=q(:,(1:n));
XXdot=q(:,(1:n)+n);
q1an=0.667*cos(11.1803*t)+(1.3334/11.1803)*sin(11.1803*t)+0.3332*...
cos(7.0711*t)-(1.3334/7.0711)*sin(7.0711*t);
plot(t,q1an,'--','linewidth',2)
hold on
plot(time,q(:,1),'linewidth',1)
grid on
title('bfResponse 1-IniCond')
xlabel('bf Time period'); ylabel('bfU_1(t)')
legend('bf Analytical','bf Numerical')
hold off
q2an=-0.4998*(0.667*cos(11.1803*t)+(1.3334/11.1803)*sin(11.1803*t))...
+0.3332*cos(7.0711*t)-(1.3334/7.0711)*sin(7.0711*t);
figure
plot(t,q2an,'--','linewidth',2)
hold on
plot(time,q(:,2))
grid on
title('bfResponse 2-IniCond')
xlabel('bf Time period'); ylabel('bfU_2(t)')
legend('bf Analytical','bf Numerical')
hold off
M =
2 0
0 4
K =
200 -100
-100 300
v =
45. m1=2;m2=4;k1=100;k2=100;k3=200;
[frequency,v]= eigen;
M=[m1,0;0 m2];
K=[k1+k2,-k2;-k2,k2+k3];
M1=v.'*M*v;
K1=v.'*K*v;
x=[0;0];
xdot=[0;0];
Xo=[x;xdot];
qt=inv(v)*x;
qdot=inv(v)*xdot;
T= (2*pi/7.0711);
time=[0:0.01:3*T];
[t,q]=ode45(@mdof_step_ode45,time,Xo);
n=length(x);
XX=q(:,(1:n));
XXdot=q(:,(1:n)+n);
plot(time,q(:,1),'linewidth',1)
hold on
q1ana=0.1*(1-cos(7.0711*t));
plot(t,q1ana,'.','linewidth',2)
grid on
title('bfResponse 1-stepforce')
xlabel('bf Time period'); ylabel('bfU_1(t)')
legend('bf Numerical','bf Analytical','location','southOutside')
hold off
figure
plot(time,q(:,2),'linewidth',1)
hold on
q2ana=0.1*(1-cos(7.0711*t));
plot(t,q2ana,'.','linewidth',2)
grid on
title('bfResponse 2-stepforce')
xlabel('bf Time period'); ylabel('bfU_2(t)')
legend('bf Numerical','bf Analytical','location','southOutside')
hold off
M =
2 0
0 4
K =
200 -100
-100 300
46. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
47. 7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
48. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
49. 2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50. 50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
51. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
52. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
53. -100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
54. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
55. -0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
56. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
57. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
58. 2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
59. 0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
60. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
61. 7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
62. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
63. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
64. -0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
65. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
66. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
67. 0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
68. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
69. 200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
70. 7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
71. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
72. 7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
73. -0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
74. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
75. 50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
76. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
77. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
78. 200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
79. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
80. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
81. 7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
82. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
83. 2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
84. 50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
85. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
86. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
87. -100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
88. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
89. -0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
90. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
91. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
92. 2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
93. 0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
94. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
95. 7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
96. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
97. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
98. -0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
99. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
100. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
101. 0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
102. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
103. 200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
104. 7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
105. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
106. 7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
107. -0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
108. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
109. 50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
110. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
111. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
112. 200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
113. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
114. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
115. 7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
116. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
117. 2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
118. 50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
119. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
120. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
121. -100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
122. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
123. -0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
124. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
125. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
126. 2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
127. 0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
128. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
129. 7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
130. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
131. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
132. -0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
133. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
134. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
135. 0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
136. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
137. 200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
138. 7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
139. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
140. 7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
141. -0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
142. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
143. 50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
144. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
145. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
146. 200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
147. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
148. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
149. 7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
150. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
151. 2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
152. 50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
153. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
154. frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
155. -100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
156. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
157. -0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
158. M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
159. D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
160. 2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
161. 0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
162. K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
163. 7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
164. v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
165. frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
-0.4082 -0.5774
-0.4082 0.2887
D =
50.0000 0
0 125.0000
frequency =
7.0711
frequency =
7.0711 11.1803
M =
2 0
0 4
K =
200 -100
-100 300
v =
169. m1=2;m2=4;k1=100;k2=100;k3=200;
[frequency,v]= eigen;
M=[m1,0;0 m2];
K=[k1+k2,-k2;-k2,k2+k3];
x=[0;0];
xdot=[0;0];
Xo=[x;xdot];
T= (2*pi/7.0711);
time=[0:0.01:3*T];
[t,q]=ode45(@mdof_cos_ode45,time,Xo);
n=length(x);
XX=q(:,(1:n));
XXdot=q(:,(1:n)+n);
q1an=0.01185*cos(3.533*t)-0.01185*cos(11.1803*t)+0.0311*cos(3.533*t)...
-0.0311*cos(7.0711*t);
plot(t,q1an,'o','linewidth',2)
hold on
plot(time,q(:,1),'linewidth',1)
grid on
title('bfResponse 1-IniCond')
xlabel('bf Time period'); ylabel('bfU_1(t)')
legend('bf Analytical','bf Numerical')
hold off
q2an=-0.4998*(0.01185*cos(3.533*t)-0.01185*cos(11.1803*t))...
+0.0311*cos(3.533*t)-0.0311*cos(7.0711*t);
figure
plot(t,q2an,'o','linewidth',2)
hold on
plot(time,q(:,2))
grid on
title('bfResponse 2-IniCond')
xlabel('bf Time period'); ylabel('bfU_2(t)')
legend('bf Analytical','bf Numerical')
hold off
M =
2 0
0 4
K =
200 -100
-100 300
v =
176. syms r x
r=3
E=1e7;%Youngs Modulus
Rho=0.1/386.6; %Mass Density
L=100;%Length
A=2; %Area
F=100; %Force
u0=F*x/(A*E); %Intial Displacement
v0=0; %Initial Velocity
L_=pi*(r-0.5)/L; %Eigen Value of r_th Mode
W_=L*sqrt(E/Rho); %Natural Frequency of r_th Mode
Psi=vpa(sin(L_*x),5); %Eigen Function
disp ('the value of GMr')
GMr=vpa(int(Rho*A*Psi^2,0,100),5)
G=1/GMr;
disp ('the value of qr(0)')
qr_0=vpa((int(Rho*A*Psi*u0,0,100)*G),5);
pretty(qr_0)
disp ('the value of qvr(0)')
qvr_0=vpa((int(Rho*A*Psi*v0,0,100)*G),3)
r =
3
the value of GMr
GMr =
0.025867
the value of qr(0)
0.000016211
the value of qvr(0)
qvr_0 =
0.0
Published with MATLAB® R2015a
177. syms r x
E=1e7;%Youngs Modulus
Rho=0.1/386.6; %Mass Density
L=100;%Length
A=2; %Area
F=100; %Force
L_r=pi*(r-0.5)/L; %Eigen Value of r_th Mode
W_r=L*sqrt(E/Rho); %Natural Frequency of r_th Mode
Psi=vpa(sin(L_r*x),5); %Eigen Function
disp('the value of GMr')
GMr=vpa(int(Rho*A*Psi^2,0,100),5)
Psi_a=subs(Psi,x,L);
disp('the value of GFr')
GFr=vpa(Psi_a*F,5)
the value of GMr
GMr =
0.025867 - (0.0082336*sin(6.2832*r - 3.1416))/(2.0*r - 1.0)
the value of GFr
GFr =
100.0*sin(3.1416*r - 1.5708)
Published with MATLAB® R2015a
178. clear all
clc
syms r x
E=1e7;%Youngs Modulus
Rho=0.1/386.6; %Mass Density
L=100;%Length
A=8; %Area
F=100;%Force
a=80; b=20;% points on the line
L_r=pi*r/L; %Eigen Value of r_th Mode
Psi=vpa(sin(L_r*x),5); %Eigen Function
M=Rho*A*L;%mass
I=M*L^2/3;%moment of inertia
Wn=(L_r*L)*sqrt(E*I/(Rho*A*L^4));
disp('the value of GMr is')
GMr=vpa(int(Rho*A*Psi^2,0,100),5)%r_th Modal Mass
u01=((F*b*x)/(6*L*E*I))*(L^2-x^2-b^2);
u02=((F*b)/(6*L*E*I))*((L/b)*(x-a)^3+(L^2-b^2)*x-x^3);
v0=0;
G=1/GMr;
qr_01=vpa(int((Rho*A*Psi*u01)*G,0,80),5);
qr_02=vpa(int((Rho*A*Psi*u02)*G,80,100),5);
disp('the value of qr(0)is')
qr_0=vpa(qr_01+qr_02,5)
disp ('the value of qvr(0) is ')
qvr_0=vpa((int(Rho*A*Psi*v0,0,100)*G),3)
the value of GMr is
GMr =
0.10347 - (0.016467*sin(6.2832*r))/r
the value of qr(0)is
qr_0 =
(1.0e-12*(sin(2.5133*r)*(1.9454e7/r^2 - 6.1596e6/r^4) - 1.0*cos(2.5133*r)*(1.6297e7/r -
1.5481e7/r^3)))/((0.016467*sin(6.2832*r))/r - 0.10347) - (1.0e-12*(sin(2.5133*r)*(1.9454
e7/r^2 - 6.1596e6/r^4) - 1.0*cos(2.5133*r)*(1.6297e7/r - 1.5481e7/r^3) - 1.0*sin(3.1416*
r)*(3.0396e7/r^2 - 6.1596e6/r^4) + cos(3.1416*r)*(3.1831e7/r - 1.9351e7/r^3)))/((0.01646
7*sin(6.2832*r))/r - 0.10347) + (9.6e-9*((1.4399e-11*(7.0369e13*sin(2.5133*r) - 1.7686e1
4*r*cos(2.5133*r)))/r^2 - (1.4399e-11*(7.0369e13*sin(3.1416*r) - 2.2107e14*r*cos(3.1416*
r)))/r^2))/((0.016467*sin(6.2832*r))/r - 0.10347) - (1.3823e-19*(7.0369e13*sin(2.5133*r)
- 1.7686e14*r*cos(2.5133*r)))/(r^2*((0.016467*sin(6.2832*r))/r - 0.10347)) - (9.4278e-4
6*(3.2667e40*sin(2.5133*r) - 3.2667e40*sin(3.1416*r) + 2.0525e40*r*cos(3.1416*r) - 1.350
5e39*r^3*cos(3.1416*r) + 6.4482e39*r^2*sin(3.1416*r)))/(r^4*((0.016467*sin(6.2832*r))/r
- 0.10347))
179. the value of qvr(0) is
qvr_0 =
0.0
Published with MATLAB® R2015a
180. syms r x
E=1e7;%Youngs Modulus
Rho=0.1/386.6; %Mass Density
L=100;%Length
A=8; %Area
F=100;%Force
a=80; b=20;
L_r=pi*r/L; %Eigen Value of r_th Mode
Psi=vpa(sin(L_r*x),5); %Eigen Function
M=Rho*A*L;
I=M*L^2/3;
Wn=(L_r*L)*sqrt(E*I/(Rho*A*L^4));
disp('the value of GMr')
GMr=vpa(int(Rho*A*Psi^2,0,100),5)%r_th Modal Mass
Psi_a=subs(Psi,x,80);
disp ('the value of GFr')
GFr=vpa(Psi_a*F,5)
the value of GMr
GMr =
0.10347 - (0.016467*sin(6.2832*r))/r
the value of GFr
GFr =
100.0*sin(2.5133*r)
Published with MATLAB® R2015a
181. %Rohit Avadhani 1001354462
%class id 1
%Use E=10^ 7 psi, Rh0=0.1/g, g=386.4 in the following problems.
%Problem 1: Ritz solution of a tapered bar with a tip mass
%Given a tapered clamped-free bar with a constant thickness 1 in., the height
%varies linearly from 4 in at the left end to 2 in at the right end. The length of the
%bar is 20 in. A concentrated mass MA is attached at the free end (MA=half of the
%bar mass). Find the first 3 natural frequencies and the associated eigenfunctions
%by Ritz method. ( Use polynomial basis functions.)Plot the eigenfunction and write
%the natural frequency in the titles of these plots. Additionally, reported the
%computed [Ka], and [Ma] and use these matrices to find an upper bound of the
%lowest natural frequency.
syms x
E=10^7;Rho=0.1/386.4;L=20;
A=4-2*x/L;I=((4-2*x/L)^3)/12;
phi0=[1 x x^2];
fBC=x;
phi=fBC*phi0;
phi_add=subs(phi,x,L);
Madd=30*Rho*(phi_add)'*(phi_add);
Ka=int((diff(phi,1))'*diff(phi,1)*E*A,'x',0,L);
Ma=int(phi'*phi*Rho*A,'x',0,L)+Madd;
[PP,EE]=eig(double(Ka),double(Ma));
[EG,ii]=sort(diag(EE));
PhiN=PP(:,ii);
PSI=phi*PhiN;
WnRitz=sqrt(EG);
for i=1:3
disp(['Eigenfunction Psi',int2str(i),'(x)= '])
vpa(PSI(i),4)
disp(' or')
vpa(expand(PSI(i)),4)
end
for i=1:length(PSI)
figure
ezplot(PSI(i),[0 L])
title(['bfEigenfunction psi',int2str(i),'(x),omega_n=',num2str(WnRitz(i))])
grid on
end
ph=PSI(1,1);
K0=int(((diff(ph))^2)*E*A,'x',0,L);
M0=int((ph^2)*Rho*A,'x',0,L)+30*Rho;
182. Rq=double(K0/M0);
W_upper=sqrt(Rq)
Eigenfunction Psi1(x)=
ans =
- 0.0001533*x^3 + 0.005258*x^2 + 0.412*x
or
ans =
- 0.0001533*x^3 + 0.005258*x^2 + 0.412*x
Eigenfunction Psi2(x)=
ans =
0.0009581*x^3 + 0.0977*x^2 - 2.085*x
or
ans =
0.0009581*x^3 + 0.0977*x^2 - 2.085*x
Eigenfunction Psi3(x)=
ans =
0.03051*x^3 - 0.8872*x^2 + 5.683*x
or
ans =
0.03051*x^3 - 0.8872*x^2 + 5.683*x
W_upper =
1.8499e+04
185. %Rohit Avadhani
%class id 1
%Problem 2: Ritz solution of a tapered bar with a tip mass, use bar eigenfunctions
%Resolve Problem 1 by using the first 3 eigenfunctions of a uniform clamped-free
%bar as basis functions.
syms x
E=10^7;Rho=0.1/386.4;L=20;
A=4-2*x/L;I=((4-2*x/L)^3)/12;
phi=[sin((pi*x)/2/L) sin((3*pi*x)/2/L) sin((5*pi*x)/2/L)];
phi_add=subs(phi,x,L);
Madd=30*Rho*(phi_add)'*(phi_add);
Ka=int((diff(phi,1))'*diff(phi,1)*E*A,'x',0,L);
Ma=int(phi'*phi*Rho*A,'x',0,L)+Madd;
[PP,EE]=eig(double(Ka),double(Ma));
[EG,ii]=sort(diag(EE));
PhiN=PP(:,ii);
PSI=phi*PhiN;
WnRitz=sqrt(EG);
for i=1:3
disp(['Eigenfunction Psi',int2str(i),'(x)= '])
vpa(PSI(i),4)
disp(' or')
vpa(expand(PSI(i)),4)
end
for i=1:length(PSI)
figure
ezplot(PSI(i),[0 L])
title(['bfEigenfunction psi',int2str(i),'(x),omega_n=',num2str(WnRitz(i))])
grid on
end
ph=PSI(1,1);
K0=int(((diff(ph))^2)*E*A,'x',0,L);
M0=int(ph^2*Rho*A,'x',0,L)+30*Rho;
Rq=double(K0/M0);
W_upper=sqrt(Rq)
Eigenfunction Psi1(x)=
ans =
7.707*sin(0.07854*x) + 0.243*sin(0.3927*x) - 0.9144*sin(0.2356*x)
186. or
ans =
7.707*sin(0.07854*x) + 0.243*sin(0.3927*x) - 0.9144*sin(0.2356*x)
Eigenfunction Psi2(x)=
ans =
5.765*sin(0.07854*x) - 1.869*sin(0.3927*x) + 8.31*sin(0.2356*x)
or
ans =
5.765*sin(0.07854*x) - 1.869*sin(0.3927*x) + 8.31*sin(0.2356*x)
Eigenfunction Psi3(x)=
ans =
9.514*sin(0.3927*x) - 3.105*sin(0.07854*x) + 4.204*sin(0.2356*x)
or
ans =
9.514*sin(0.3927*x) - 3.105*sin(0.07854*x) + 4.204*sin(0.2356*x)
W_upper =
1.8073e+04
189. %Rohit Avadhani
%class id 1
%Problem 3 Ritz solution of a tapered simply-supported beam
%Given a tapered simply supported beam with a constant thickness 1 in. and height
%varies linearly from 4 in at the left end to 2 in at the right end. The length of the
%beam is 50 in. Find the first 3 natural frequencies and the associated
%eigenfunctions by Ritz method. ( Use polynomial basis functions.)Plot the
%eigenfunction and write the natural frequency in the titles of these plots.
%Additionally, reported the computed [Ka], and [Ma] and use these matrices to
%find an upper bound of the lowest natural frequency
syms x
E=10^7;Rho=0.1/386.4;L=50;
A=4-2*x/L;I=((4-2*x/L)^3)/12;
phi0=[1 x x^2];
fBC=x*(x-L);
phi=fBC*phi0;
Ka=int((diff(phi,2))'*diff(phi,2)*E*I,'x',0,L);
Ma=int(phi'*phi*Rho*A,'x',0,L);
[PP,EE]=eig(double(Ka),double(Ma));
[EG,ii]=sort(diag(EE));
PhiN=PP(:,ii);
PSI=phi*PhiN;
WnRitz=sqrt(EG);
for i=1:3
disp(['Eigenfunction Psi',int2str(i),'(x)= '])
vpa(PSI(i),4)
disp(' or')
vpa(expand(PSI(i)),4)
end
for i=1:length(PSI)
figure
ezplot(PSI(i),[0 L])
title(['bfEigenfunction psi',int2str(i),'(x),omega_n=',num2str(WnRitz(i))])
grid on
end
ph=PSI(1,1);
K0=int((diff(ph,2)^2)*E*I,'x',0,L);
M0=int(ph^2*Rho*A,'x',0,L);
Rq=double(K0/M0);
W_upper=sqrt(Rq)
190. Eigenfunction Psi1(x)=
ans =
0.007819*x*(x - 50.0) + 0.0002051*x^2*(x - 50.0) - 2.465e-6*x^3*(x - 50.0)
or
ans =
- 2.465e-6*x^4 + 0.0003283*x^3 - 0.002436*x^2 - 0.3909*x
Eigenfunction Psi2(x)=
ans =
2.529e-5*x^3*(x - 50.0) - 7.245e-5*x^2*(x - 50.0) - 0.01556*x*(x - 50.0)
or
ans =
2.529e-5*x^4 - 0.001337*x^3 - 0.01194*x^2 + 0.778*x
Eigenfunction Psi3(x)=
ans =
0.05965*x*(x - 50.0) - 0.005403*x^2*(x - 50.0) + 0.000106*x^3*(x - 50.0)
or
ans =
0.000106*x^4 - 0.0107*x^3 + 0.3298*x^2 - 2.983*x
W_upper =
656.7699
193. %Rohit Avadhani
%class id -1
%Problem 4 Ritz solution of a tapered simply-supported beam use beam eigenfunctions
%Resolve Problem 3 by using the first 3 eigenfunctions of a uniform simplysupported
%beam as basis functions
syms x
E=10^7;Rho=0.1/386.4;L=50;
A=4-2*x/L;I=((4-2*x/L)^3)/12;
phi0=[sin((pi*x)/L) sin((2*pi*x)/L) sin((3*pi*x)/L)];
fBC=x*(x-L);
phi=fBC*phi0;
Ka=int((diff(phi,2))'*diff(phi,2)*E*I,'x',0,L);
Ma=int(phi'*phi*Rho*A,'x',0,L);
[PP,EE]=eig(double(Ka),double(Ma));
[EG,ii]=sort(diag(EE));
PhiN=PP(:,ii);
PSI=phi*PhiN;
WnRitz=sqrt(EG);
for i=1:3
disp(['Eigenfunction Psi',int2str(i),'(x)= '])
vpa(PSI(i),4)
disp(' or')
vpa(expand(PSI(i)),4)
end
for i=1:length(PSI)
figure
ezplot(PSI(i),[0 L])
title(['bfEigenfunction psi',int2str(i),'(x),omega_n=',num2str(WnRitz(i))])
grid on
end
ph=PSI(1,1);
K0=int((diff(ph,2)^2)*E*I,'x',0,L);
M0=int(ph^2*Rho*A,'x',0,L);
Rq=double(K0/M0);
W_upper=sqrt(Rq)
Eigenfunction Psi1(x)=
ans =
0.01317*x*sin(0.06283*x)*(x - 50.0) - 0.002609*x*sin(0.1257*x)*(x - 50.0) + 0.0004586*x*
sin(0.1885*x)*(x - 50.0)
197. Contents
◾ HW#6-Problem 1:Eigen value solution for 4dof spring mass system:
◾ Plot Mode shapes
◾ plotting 2nd Mode shape
◾ Mass,Stiffness and Force Normalization of Modal Matrix
clear
%Rohit Avadhani 1001354462
HW#6-Problem 1:Eigen value solution for 4dof spring mass system:
m1=10;m2=2;m3=1;m4=1;
k1=50;k2=50;k3=10;k4=10;
% Mass Matrix
M=[10,0,0,0;
0,2,0,0;
0,0,1,0;
0,0,0,1];
% K Matrix
K= [100,-50,0,0;
-50 ,70,-10,-10;
0,-10,10,0;
0,-10,0,10;];
% Initial Conditions
u0=[0;0;0;0];v0=[0;0;0;0];
disp('Initial displacement')
disp([u0])
disp('Initial velocity')
disp([v0])
% Finding Eigen Values and Eigen Vectors, use below commands
% Solution of eigenvalue problem by MATLABb function eig
[Phi1,Eeg1]=eig(K,M)
% get EigenValues (diagonal of Eigen value matrix Eeg1)
eeg=diag(Eeg1)
% Sort eigenvaluee
[Eg,Ie]=sort(eeg)
% Reorder eigenvectors acording to the order of eigenvalues
Phi=Phi1(:,Ie)
% Finding Natural Frequency
W=sqrt(Eg)
% display eigen solutions
198. disp('EigenSolutions: ')
disp('EigenValue Natural-frequency')
disp([Eg sqrt(Eg)])
disp('Modal matrix')
disp([Phi])
disp('Max-normalized modal matrix')
NDOF=length(Eg)
% Eigen Vectors Normalization, here Normalizing to Maximum element
% Normalize to make max element 1
for i=1:NDOF
pi=Phi(:,i);
[pm,ii]=max(abs(pi));
phis=pi*sign(pi(ii))/pm;
PhiMax(:,i)=phis;
end
PhiMax
Phi1=PhiMax(:,1); % 1st Mode shape
Phi2=PhiMax(:,2); % 2nd Mode shape
% Orthogonality Verification
%(Note: Orthogonality Verification can be done with or without
%normalization of eigen vectors)
% check M-orthogonality and K-orthogonality of the two mode shapes
disp('Check M-orthogonality and K-orthogonality of the two mode shapes')
M_ortho=Phi1'*M*Phi2
K_ortho=Phi1'*K*Phi2
Initial displacement
0
0
0
0
Initial velocity
0
0
0
0
Phi1 =
0.2134 0.2015 -0.0620 0.1000
0.2999 -0.0000 -0.0000 -0.6403
0.4269 -0.7116 -0.5209 0.1999
0.4269 -0.2959 0.8308 0.1999
201. plotting 2nd Mode shape
figure
plot([0 1 2],[0 Phi2(1) Phi2(2)],'r--','linewidth',2)
hold on
plot(1,Phi2(1),'bo','linewidth',2)
plot(0,0,'bo','linewidth',2)
plot(2,Phi2(2),'bo','linewidth',2)
xlabel('bfDOF'),ylabel('bfMode shape coefficient')
202. Mass,Stiffness and Force Normalization of Modal Matrix
disp('Mass-normalization of modal matrix')
GM=Phi.'*M*Phi
disp('Stiffness-normalization of modal matrix')
GK=Phi.'*K*Phi
% Initial Modal Displacement and velocity
disp('Modal displacement')
q0=Phi'*M*u0
disp('Modal velocity')
qv0=Phi'*M*v0
% Part C
Z=K-10*M
%syms v v1 v2 v3 v4
%v=[v1,0,0,0;0,v2,0,0;0,0,v3,0;0,0,0,v4]
%Z*v={0}
P2=[1;0;1;-6]
P3=[1;0;-6;1]
P2.'*M*P3
205. Contents
◾ HW#6-Problem 2:Eigen value solution for 4dof spring mass system:
%%Rohit Avadhani 1001354462
HW#6-Problem 2:Eigen value solution for 4dof spring mass system:
m1=10;m2=2;m3=1;m4=1;
k1=50;k2=50;k3=10;k4=10;
% Mass Matrix
M=[10,0,0,0;
0,2,0,0;
0,0,1,0;
0,0,0,1];
% K Matrix
K= [100,-50,0,0;
-50 ,70,-10,-10;
0,-10,10,0;
0,-10,0,10;];
% Initial Conditions
u0=[0;0];v0=[0;0];
disp('Initial displacement')
disp([u0]);
disp('Initial velocity')
disp([v0]);
% Finding Eigen Values and Eigen Vectors, use below commands
% Solution of eigenvalue problem by MATLABb function eig
[Phi1,Eeg1]=eig(K,M);
% get EigenValues (diagonal of Eigen value matrix Eeg1)
eeg=diag(Eeg1);
% Sort eigenvaluee
[Eg,Ie]=sort(eeg);
% Reorder eigenvectors acording to the order of eigenvalues
Phi=Phi1(:,Ie) ;
% Finding Natural Frequency
W=sqrt(Eg)
% display eigen solutions
disp('EigenSolutions: ');
disp('EigenValue Natural-frequency');
disp([Eg sqrt(Eg)]);
disp('Modal matrix');
disp([Phi]);
208. Contents
◾ Four DOF_Data_1_IC.m
◾ Data for 4-DOF system:
◾ system data
◾ Initial conditions
◾ Forcing functions
◾ Time duration for pulse ( non-zero force from 0 to T0)
◾ time points
◾ Frequency points
◾ Type of analysis
◾ Output specification
◾ Output specification
◾ -------------
%Rohit Avadhani 1001354462
Four DOF_Data_1_IC.m
Data for 4-DOF system:
system data
Mass matrix
M=[10 0 0 0;
0 2 0 0;
0 0 1 0;
0 0 0 1];
% stiffness matrix
K=[ 100 -50 0 0;
-50 70 -10 -10
0 -10 10 0
0 -10 0 10];
% Damping matrix
C=[2 0 0 0;0 1 0 -1;0 0 0 0;0 -1 0 1]
C =
2 0 0 0
0 1 0 -1
0 0 0 0
0 -1 0 1
209. Initial conditions
u0=[.1;.1;.1;.1];v0=[1;0;0;0];
Forcing functions
Static
P0=[10;0;0;2];
% Sine component
Ps=[0;0;1;0]; % amplitude
Ws=4; % frequency, rad/s
% Cosine component
Pc=[10;0;0;2]; % amplitude
Wc=4; % frequency, rad/s
Time duration for pulse ( non-zero force from 0 to T0)
T0=100;
time points
tALL=linspace(0,10,200);
Frequency points
WALL=0;
Type of analysis
Analysis='Analytical'; % for time domain solution
% Analysis='Numerical';
% Analysis='Symbolic';
% Analysis='Frequency Response'; % for frequency domain solution
% Analysis='Pulse Response'; % for pulse inputs
% Analysis='Modal analysis'; % for eigenvalue problem
% Analysis='Spring-mass-damper'; % forulation of M,K,C matrices
Output specification
PrintDOF=[0 ]; % ID of outpit dof
% Print time domain solution of PrintDOF at time tALL
% Or
% Print frequency domain solution of PrintDOF at frequency WALL time tn
210. Output specification
PlotDOF=[1;2;3;4 ];
% ID of outpit dof
% Plot time domain solution of PlotDOF at time tALL
% Or
% Plot frequency domain solution of PlotDOF at frequency WALL time tn
-------------
Published with MATLAB® R2015a
211. syms r x
E=1e7;%Youngs modulus
Rho=0.1/386.6;%density
L=100;%Length
A=2;%cross sectional area
L_=pi*(r-0.5)/L;% eigen values
W_=L*sqrt(E/Rho);% natural frequencies
psi=sin(L_*x);%eigen functions
Psi=vpa(psi,5);% numerical values of eigen functions
% plotting for third function
disp('the plot of third eigen function is as follows')
r=3;%Third mode value
x=linspace(0,L,100);
Psi_=sin(0.031416.*x.*(r - 0.5));%eigen function vector
plot(x,Psi_,'k*');
grid on
xlabel('bfL')
ylabel('bfPsi(x)')
title ('Eigen function to Length')
the plot of third eigen function is as follows