Professional Documents
Culture Documents
Ame521project Kengyu Lin
Ame521project Kengyu Lin
Ame521project Kengyu Lin
Instructor:
Student:
Submitted on:
Task
{/ a;
{lf,ry
Q,
-
+Az
d,$
n4 tttffiS<.
u,cr*rv^
of
t"
6-7{r,ft r r}r
p,oo
d"l-l
{ TWL
+j
k=f
tr -Y1, C po}' +
$ f , {xy+ l,&r*
y,J
'o
* r(v,
*)e)'
jr kr-U,)"
+ c ,( Y"*YL * d&, )= +
ct $, *{,p"a * T,)" + je
kr
Ut -
l-s
&s
,.'l-.
+ + c1 Nt *1,*t
L:T-V
+J-f4l-d{
d*tlt'
{ u( {, - g.)'
+gr
>3
=(
+W'
ty
*4
'Ji
s.
/1
L{
*$,J=
\r
hXr + p l)h
-i)F')
+c (r, -i,) -- o
-c!,--o
= kg, + cgl
lA
ni,
-Kr
(xr
-_1,tu
-x.)+r(x.*") - Ltftr-j,dr-x,)+L(i,-0")=o
: ky-* cy=
(c t+c)
+i Fc) *dt(c,t,)
a\
t, + Crx, r Crd&) *C,*, rgr ["dr -C,i, + c.], -& trd, -q*
=o
\\
lAuX. +k,
1t
lTzY*
\
ff.4t- dgl*t (i" Ya
krlq- -Y>Yu
>
x.lk
^"il.+xr(+Jr
@
-
) +et
- V.d9^ + Cr *r
lr,do -f,d(tr.-tr-d-&)+Fr
C,ot
(*"
:Q
:D
L,nlryt
Fc,ol) =
,c
&d, _*,) _ o
-ktltXt
irl - Ltr.zi,
Y*?k..t1
QIr4rl,)
UgX
nnn. v-r-+-,-'s
L,"*
,T lno tfura.
-,lt;ltx"
k (Y._-yd-d6e)
t4
cu ( r,
-h
-dh)
kr(w-LtotI,)
,$
k (xr-V.)
CIir-U,)
r.\
[heX.
+ h.{.
\t
dgr)
- c. (X. - f. -dB, )
+ C-*- - Cr*r -c2 olg't
-t 0g [-C ,ot) =
&b
=c
1)
nI- -k, fvt -1,0r-r,) - c' (ir -1,&, -x,) + K(y.-,1) +c(i-i..)=,:
+nir-K{h +([1g3 +k,y. .-eil teLrgl
*qi +Ky,-kgt ..c;,_cA.=o
- k (X.-- Yb -
lfu Xa
+ q (ir*t.d,
)
)
-*
dlil -Cr(*"
) + F, (xt
-Xn -
-ttot
(i *t,e, - l, ) = o
-_X,) +L,
UaX,
C.(to-'i, -d,t|
-Lr [f, Uu - L,ht-rt + a (in- L', d, -L1J
+L>
fvr(n +L= gu-y,) +c, {n +1, Fr -t,)J = o
.(k,t,)
k, +
+k,ri
Crd-*L,
f, P) +Y<- (-r' a)
i. [a D * it (ut -q L, u L,a)
=o
f
o
rn
&+c
o &+c
a
I
I
I
frl
Nt
- c"l
rt
-Lr
( X
-Q Iz
t
I
&"f
tI
f
t
tt
Xt
{)
*t4
*C4
7Q*t,
*c.
lz-{,ft,
+bl
I
I
X.b
I
il
il
il
f?D
&
-Cz
(,
-CrA
-CrI,
}J
Ar,e
U** t,ti+tl lt
kr +K
k'+k
--Er
- Kr
-F'
p* +aFt
k' fr
- k'f,
kj, * tri
I
i
Krf,
*F' {k e*hlu
{Yd*hfo-hf} -k
-t
F$. + tl,lJ.
*Frd
X"
#t
Iha'*k,fiP,f,.tr,/
lA'
,{**F"/ ty{twtt
(t cS
J"'
aYa-
Clt"ck-
: uJ f r' A{)
fh. \ri>
ava-
offiy"^"L
[wr] = [T ]er5
[ux,]t olKJ* {*tr| = fX Jr*,
0t*'Jt-(/"1]*
d,ryunol rha*rrr
r(
Uc=
{t
w--
o*Sa Yr
olv f
J- *r"
L,
(w(,t
*Lz
IT
g t":
frlt w(t-L)
=
) ut *(t-1 )=
L' *Lr
ld}l.)
o _ oa*rt gmwto
*o + c,avt k, cvt
Jet
V{gw)
-\
U
= wYs 4w\-
EE({=
wY.enrrW)
-w'Y
o
o
o
cy. w
1"r*1-- | -* 5" s
o
o
0
,Lv=10
\r1/ =
f wrto) +
!.
L,rw)
qwt
ttj
l+[r]
)
write
f*f,"|l"'s
5
t*)
Js5
-fhrt
lnMt) t bf 0v5wt =
UK,r, f*)= Qr
t^nOK=
tht-
r:
/\'l
to,.l
D1 =
-29.1170 +77.2601i
-29.1170 -77.2601i
-29.4529 +77.4448i
-29.4529 -77.4448i
-3.6197 +30.1922i
-3.6197 -30.1922i
-0.4719 +10.6523i
-0.4719 -10.6523i
-0.7196 +13.1701i
-0.7196 -13.1701i
vt1 =
Columns 1 through 5
-0.0033 - 0.0087i -0.0033 + 0.0087i 0.0028 + 0.0072i 0.0028 - 0.0072i 0.0003 + 0.0067i
-0.0028 - 0.0072i -0.0028 + 0.0072i -0.0033 - 0.0087i -0.0033 + 0.0087i -0.0001 - 0.0019i
0.0001 + 0.0004i 0.0001 - 0.0004i 0.0000 + 0.0000i 0.0000 - 0.0000i 0.0005 + 0.0043i
-0.0000 - 0.0000i -0.0000 + 0.0000i 0.0000 + 0.0001i 0.0000 - 0.0001i -0.0037 - 0.0311i
0.0000 + 0.0000i 0.0000 - 0.0000i -0.0001 - 0.0004i -0.0001 + 0.0004i 0.0007 + 0.0053i
0.7680 + 0.0000i 0.7680 + 0.0000i -0.6388 + 0.0057i -0.6388 - 0.0057i -0.2028 - 0.0142i
0.6393 - 0.0054i 0.6393 + 0.0054i 0.7684 + 0.0000i 0.7684 + 0.0000i 0.0565 + 0.0039i
-0.0356 - 0.0063i -0.0356 + 0.0063i -0.0025 - 0.0007i -0.0025 + 0.0007i -0.1329 + 0.0002i
0.0041 + 0.0005i 0.0041 - 0.0005i -0.0056 - 0.0006i -0.0056 + 0.0006i 0.9539 + 0.0000i
-0.0024 - 0.0005i -0.0024 + 0.0005i 0.0347 + 0.0061i 0.0347 - 0.0061i -0.1637 + 0.0003i
Columns 6 through 10
0.0003 - 0.0067i -0.0006 - 0.0299i -0.0006 + 0.0299i 0.0003 + 0.0057i 0.0003 - 0.0057i
-0.0001 + 0.0019i -0.0001 - 0.0045i -0.0001 + 0.0045i -0.0024 - 0.0447i -0.0024 + 0.0447i
0.0005 - 0.0043i -0.0016 - 0.0347i -0.0016 + 0.0347i -0.0031 - 0.0360i -0.0031 + 0.0360i
-0.0037 + 0.0311i -0.0035 - 0.0790i -0.0035 + 0.0790i 0.0028 + 0.0323i 0.0028 - 0.0323i
0.0007 - 0.0053i -0.0008 - 0.0185i -0.0008 + 0.0185i 0.0032 + 0.0362i 0.0032 - 0.0362i
-0.2028 + 0.0142i 0.3192 + 0.0081i 0.3192 - 0.0081i -0.0750 + 0.0002i -0.0750 - 0.0002i
0.0565 - 0.0039i 0.0484 + 0.0012i 0.0484 - 0.0012i 0.5905 + 0.0000i 0.5905 + 0.0000i
-0.1329 - 0.0002i 0.3707 - 0.0005i 0.3707 + 0.0005i 0.4766 - 0.0154i 0.4766 + 0.0154i
0.9539 + 0.0000i 0.8431 + 0.0000i 0.8431 + 0.0000i -0.4278 + 0.0139i -0.4278 - 0.0139i
-0.1637 - 0.0003i 0.1969 - 0.0002i 0.1969 + 0.0002i -0.4787 + 0.0159i -0.4787 - 0.0159i
D2 =
1.0e+03 *
0.1136
0.1738
0.9243
6.8234
6.8736
vt2 =
[vt2]*[M]*[vt2]=
[vt2]*[K]*[vt2]=
1.0e+03 *
0.1136 0.0000 -0.0000 0.0000 -0.0000
0.0000 0.1738 0.0000 0.0000 0.0000
-0.0000 0.0000 0.9243 0.0000 -0.0000
0.0000 0.0000 0.0000 6.8234 0.0000
-0.0000 0.0000 -0.0000 0.0000 6.8736
Amplitude
0.11
0.105
Amplitude (m)
0.1
0.095
0.09
0.085
0.08
0.5
1.5
2.5
w (rad/s)
3.5
4.5
3.5
4.5
Phase
0.035
0.03
atan
0.025
0.02
0.015
0.01
0.5
1.5
2.5
w (rad/s)
subplot(2,1,2)
fi=atan(b4/a4);
for ww=0:0.01:5
fiww=subs(fi,ww);
plot(ww,fiww)
hold on
grid on
end
title('Phase')
xlabel('w (rad/s)')
ylabel('atan')
-fask 2
AgSune. wt{, *)
+-
zN
lc=l
Lpt+t
#r(v)
[[-rrrJ
?rr*t
-- fir)
[9t*rJ=
f f,* f,a
TH = [
L,u ?,*)
?,
(o(
x<l
T. + I! oa'dx *r"ny'f + 4
-- t{: (w'l* r*^[$ *
=;
%r
[nil
{ntJL
=
* *"[+-*'-*
J! f [um]rlu.,.rl
lx
y'
rt[ui-r]rtrr ifl
ax
g{9une-
"*k,[u,'?n= | 3w 1"
!( Utw i-*
v,wJ
Ct [i,
zg.[qn]z t
bqtfiL
A^f
Iy,-w
?rt,.crr]TroJ ?rl
SV,
c"
* [c"J
5M.= -
c4
(t,
5T=
*[ru^Jug
fpl
nl
4$v-- #[KoJn?^
[r^] =
*k,[9t1or1r
__*K
Lr
F,-
'
\
Lt9rvtS
ff"^
* 6l
il
kos0
@Ae|uno
frrx)
il,q=
P'{.at
-l
-(
z*r,
s?)a(ry)
= Wf
,ot
?
[Ao*il=
f(t'")=tA{*}Jz
k
= o. /. ) \\ rfU
<iw sly A* I
v"N
7 F, = *' -+ {F, t,f. +rf, *Jr )
-f\e
&"ewAng
ir
p^
Al*m rl'u
tu"P*(t't** /*'d
=I' $[t-b^7)
I, = /.zx ,ot kg n&
va! gert r4e'ir'nPr^1s*
r*)
l- gt'tJ-' n7(on)
)
te)-l
+
,4"
Jz
u
J> nul
=-
n|(o*) = xo
neeol
1, ^,lJ tk-
wyulc u*{.'t
-fl,n re fia(L
ihe
c^Y
nno(
ha
bt
rh
1l,e
+r.;
SAtu <-
ann(
ah^,t
tl catLllz
Mf'frs
{frh(-
*ott*
dY A,
11".
br
o,old
\NL , Cart. fL
bo
iI
APP\
y-
&re
I 0""(
*J*j *f
{6{n sec
o{;{nt*"rt
-{h?
,yr
N# s{
{ irt '''&
in
L,,
^,{
aT
aS wet'f'
o*o(;tvr-
y1 displacement
0.04
magnitude (m)
0.03
0.02
0.01
0
-0.01
-0.02
-0.03
10
15
20
25
15
20
25
time (s)
y2 displacement
0.06
magnitude (m)
0.04
0.02
0
-0.02
-0.04
10
time (s)
-6
-5
magnitude (m)
x 10
0
-5
-10
-15
100
-5
100
-5
x 10
200
300
beam long (m)
beam displacement 5*dt
100
200
300
beam long (m)
100
400
x 10
200
300
beam long (m)
beam displacement 6*dt
100
400
-4
-5
-2
400
x 10
200
300
beam long (m)
beam displacement 4*dt
-2
-1
-3
100
-6
400
magnitude (m)
0
magnitude (m)
-2
-2
-5
-1
-3
-4
400
magnitude (m)
magnitude (m)
x 10
200
300
beam long (m)
beam displacement 3*dt
x 10
400
0
-1
-2
200
300
beam long (m)
y1 displacement
0.04
magnitude (m)
0.03
0.02
0.01
0
-0.01
-0.02
-0.03
10
15
20
25
15
20
25
time (s)
y2 displacement
0.06
magnitude (m)
0.04
0.02
0
-0.02
-0.04
10
time (s)
a=4.5;
m=2.5*10^3;
I=3.2*10^2;
k1=5*10^5;
k2=5*10^5;
c1=3.6*10^3;
c2=3.6*10^3;
V0=18;
p=8*10^2;
EI=7*10^8;
L=400;
%===== Ma
Mb=zeros(3);
for i=1:1:3
for j=1:1:3
Mbfun = @(x) p.*(1-cos(2.*i.*pi.*x./L)).*(1-cos(2.*j.*pi.*x./L));
Mb(i,j) = integral(Mbfun,0,L);
end
end
Mbb=[m/4+I/(a^2) m/4-I/(a^2);m/4-I/(a^2) m/4+I/(a^2)];
Ma=[[Mb] zeros(3,2);zeros(2,3) [Mbb]];
%===== Kb
Kb=zeros(3);
for i=1:1:3
for j=1:1:3
Kbfun = @(x)
EI.*((2.*i.*pi./L).^2*cos(2.*i.*pi.*x./L)).*((2.*j.*pi./L).^2.*cos(2.*j.*pi.*
x./L));
Kb(i,j) = integral(Kbfun,0,L);
end
end
% Ca Ka are martix function of t, so I put both in the AZ.m for doing the
% numerical solution
Z0=[0 0 0 0.02 0.05 0 0 0 0.6 -0.3]';
N=3000; % choose this number can be divide by 6, in order to find dt for
finding beam's displacement
tend=(L-a)/V0;
h=(L-a)/(V0*N);
z=Z0;
Z(:,1)=Z0;
k=1;
T(:,1)=0;
for t=0:h:tend %Runge-Kutta Method
f1=AZ(t,z,Ma,Kb);
f2=AZ(t+h/2,z+h/2*f1,Ma,Kb);
f3=AZ(t+h/2,z+h/2*f2,Ma,Kb);
f4=AZ(t+h,z+h*f3,Ma,Kb);
Z(:,k+1)=Z(:,k)+(h/6)*(f1+2*f2+2*f3+f4);
z=Z(:,k+1);
T(1,k+1)=t;
k=k+1;
end
figure(1)
subplot(2,1,1)
plot(T,Z(4,:),'r')
title('y1 displacement')
xlabel('time (s)')
ylabel('magnitude (m)')
grid on
subplot(2,1,2)
plot(T,Z(5,:),'b')
title('y2 displacement')
xlabel('time (s)')
ylabel('magnitude (m)')
grid on
%=======beam dispacement
k=1;
for i=1:500:3001
for dx=1:1:400
Wb(k,dx)=admfun(dx)*Z(1:3,i);
end
k=k+1;
end
dx=1:1:400;
figure(2)
subplot(3,2,1)
plot(dx,Wb(2,:))
title('beam displacement 1*dt')
xlabel('beam long (m)')
ylabel('magnitude (m)')
grid on
subplot(3,2,2)
plot(dx,Wb(3,:))
title('beam displacement 2*dt')
xlabel('beam long (m)')
ylabel('magnitude (m)')
grid on
subplot(3,2,3)
plot(dx,Wb(4,:))
title('beam displacement 3*dt')
xlabel('beam long (m)')
ylabel('magnitude (m)')
grid on
subplot(3,2,4)
plot(dx,Wb(5,:))
figure(3)
subplot(2,1,1)
plot(T,Z(4,:),'r')
title('y1 displacement')
xlabel('time (s)')
ylabel('magnitude (m)')
grid on
subplot(2,1,2)
plot(T,Z(5,:),'b')
title('y2 displacement')
xlabel('time (s)')
ylabel('magnitude (m)')
grid on
References
[1]
[2]
[3]
[4]