Sie sind auf Seite 1von 29

Task 1.

A Five-DOF Model of Automobiles


Task 2. Model of Coupled Vehicle-Bridge Systems

AME 521 Engineering Vibrations II


Final Project

Instructor:
Student:
Submitted on:

Prof. Bingen Yang


Kengyu Lin 9852103390
Dec 5, 2016

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

.: 4 r]! eX: *,uu *; + { ,nr-' Y +u,x,* + +Ttor'


+ + {ru6 kn<- +z.t^} V,"

+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,od-7,)t-r)+ k(x, -V,)+c, (rL +1,0;

-i)F')

+c (r, -i,) -- o

rhi, -g, (y5+/, 0L -x,)ty(x,-v,,1 - c, Grol"io_i,)*c (*, _i) _o


\t

-c!,--o

rnf, +hItr* k) *yr(+,)+0t(-k,1,1

= kg, + cgl

lA

ni,

-Kr

(xr

-_1,tu

r i, (,+c,) *n(_",) *nii_c,t)

-x.)+r(x.*") - Ltftr-j,dr-x,)+L(i,-0")=o

) ni,- kr Xr +krLgb +krf,. + F)r.- -FU, - it+ele) +C1*" *Cf, -CV.=o


| /AT' *X'( Kr*k) +tuFk,)+ ot(r,r,)r/.-

: ky-* cy=

(c t+c)

+i Fc) *dt(c,t,)

- Yd'[o-Iu -'d0r) + Ft (ye +I-Br-il) * k, ftt -1,0t-x-)


- L.(x"-rr-dg.)" c,c*il *bd"-x,) * c, (tt - l,er-*,
) =o
A4uiu

a\

+ Nlfr-k'Y.*F,Ys + k dg +Fryr +lql, tu=yft,+


-C,

k)(t, -k,h&u -krX>

t, + Crx, r Crd&) *C,*, rgr ["dr -C,i, + c.], -& trd, -q*

NuiL + xt(-k,)*x,{-r)+)rr (F +Fr+h)r

=o

x.(-r) + Ft(pd+krl. -k,l )


+i,(+)+ ir(-c) +k,"(qa,nC,) *ir(-"Jrdg(c"d cr.{, - c, I^) o
=

\\

lAuX. +k,
1t

lTzY*

\
ff.4t- dgl*t (i" Ya

krlq- -Y>Yu

>

x.lk

^"il.+xr(+Jr

@
-

) +et

- V.d9^ + Cr *r

(+d)+ n (_c,)* i-t"S +et

lr,do -f,d(tr.-tr-d-&)+Fr
C,ot

(*"

:Q
:D

L,nlryt

Fc,ol) =

,c

!,(r, +Lgt-x) - htn(rt-1,0*7,)

-; - dPJ + c, I>ds* 6ds - *,) - c, tt dr

&d, _*,) _ o

-ktltXt

irl - Ltr.zi,
Y*?k..t1
QIr4rl,)

UgX

nnn. v-r-+-,-'s

L,"*

t" el4(* ttre

,T lno tfura.

-,lt;ltx"
k (Y._-yd-d6e)
t4
cu ( r,

-h

-dh)

kr(w-LtotI,)

A[i, *1,d. -i.)

,$

k (xr-V.)

CIir-U,)
r.\

- -F, (f. -yu -

[heX.

+ h.{.
\t

dgr)

- c. (X. - f. -dB, )
+ C-*- - Cr*r -c2 olg't

+ Xt( *EL) +X. ( l") *

-t 0g [-C ,ot) =

&b

=c

GEril + ys (-c-) * Xe (Cr)

1)

fl,i -k,(rl *L,gb-r,)- c,(x, +L-dr -* )*ktr,+J +c{*, 4,1 =-o

t rr,,V, - F, Yu -k,L..hr,+t, f,r -at, -cntrgr+tni, +b(, -kv, + Li, -c!, -- o


+ rn,*,*xr[E,+k) +fg1-kr) tgt(-krL.)+ ], ( c,+c) +*t
Gc,)

+ &r (-c, L,) = k 9, + c{,

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

de ) tK ,(tt * L.er -X,)

(i *t,e, - l, ) = o

-_X,) +L,

-r'xc +k'xu + hd,s =c.i" ru*o +uaq+Krla +L,L,ot


-Ly,
*C,h+ CrL.d, -c,i, +kr Xl- k,L,or
-8,y, + C,ia --eL*, _cry, _,o
Nuiu

UaX,

ty. (-kr) +y" (-&,) +yt ( k, +k,+k,) +y. (-k,) +Ar(hot


*kt, _hL)

+X (-c,)+X, (-c,)+it bc,*c,) +lL


Gr) + rS (cA+crL: -L, L, ) =,

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

Tb,'- d[K, ft.-n-dga)+

.(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

&h t il+c,l;Cl, -crd

-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

Ur= U. srn{ wt}


Y, = tJ, lfh ft*{t-%}

-t

F$. + tl,lJ.

*Frd

X"

#t

Iha'*k,fiP,f,.tr,/

lA'

,{**F"/ ty{twtt

(t cS

J"'

undanynt s3sternS ei$wvtfus *orl uJ*vah*g

aYa-

t vt= ' D'J

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=

d: tnrl d +fLJ3* trl y Ir]


\

{t
w--

o*Sa Yr
olv f

=Y" $& trt)


u

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

+ tt{$ t[c]$ +[FJ y = ?rMs,rr wt +


A{9wvn-e
tf

Jet

V{gw)
-\
U

= wYs 4w\-

EE({=

wY.enrrW)

-w'Y

y. Ld;( U/rt ) *CU ul


"

o
o
o

cy. w

1"r*1-- | -* 5" s
o
o
0

,Lv=10

\r1/ =

f wrto) +

!.

L,rw)

qwt

-w'fu] ((s lnult t \c costutf) * tf{Ys u *t -\, <n ov*)


rIr][Y, ;bW * fc
2s Snw* +T* bswf,
-\n/

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

r Et)t ( *fr *ff)

to,.l

#*t u*o1 Yosyontz

Y*tt (*)-- 8+ snn{ *t}t 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 =

-0.0148 0.0024 0.0121 -0.0876 -0.0728


-0.0022 -0.0189 -0.0034 -0.0731 0.0873
-0.0172 -0.0153 0.0080 0.0038 -0.0003
-0.0390 0.0137 -0.0574 -0.0004 -0.0006
-0.0091 0.0154 0.0098 0.0003 0.0037

[vt2]*[M]*[vt2]=

1.0000 -0.0000 0.0000 -0.0000 0.0000


-0.0000 1.0000 -0.0000 -0.0000 0.0000
0.0000 -0.0000 1.0000 0.0000 -0.0000
-0.0000 -0.0000 0.0000 1.0000 0.0000
0.0000 0.0000 -0.0000 0.0000 1.0000

[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)

%AME 521 Project Task1 Kengyu Lin USCID:9852103390


clear;
clc;
%~1a
me=200; %kg
k2=1.3*10^5; %N/m
c2=1.02*10^3; %kg/s
d=1.65; %m
Mb=1650; %kg
Ib=2330; %kg-m^2
k1=2.5*10^5; %N/m
c1=2.73*10^3; %kg/s
m=75; %kg
k=2.5*10^5; %N/m
c=1.48*10^3; %kg/s
L1=1.4; %m
L2=1.3; %m
syms w
Lr=10; %m
vc=Lr*w; %m/s~~~~~~varible
t0=(L1+L2)/vc;
y0=0.08; %m
M=[m 0 0 0 0;
0 m 0 0 0;
0 0 Mb 0 0;
0 0 0 me 0;
0 0 0 0 Ib];
C=[c1+c 0 -c1 0 -c1*L2;
0 c1+c -c1 0 c1*L1;
-c1 -c1 2*c1+c2 -c2 c1*L2-c1*L1+c2*d;
0 0 -c2 c2 -c2*d;
-c1*L2 c1*L1 c2*d+c1*L2-c1*L1 -c2*d c2*d^2+c1*L2^2+c1*L1^2];
K=[k1+k 0 -k1 0 -k1*L2;
0 k1+k -k1 0 k1*L1;
-k1 -k1 k2+2*k1 -k2 k2*d+k1*L2-k1*L1;
0 0 -k2 k2 -k2*d;
-k1*L2 k1*L1 k2*d+k1*L2-k1*L1 -k2*d k2*d^2+k1*L2^2+k1*L1^2];
%~1b
AZ=[zeros(5) eye(5);-inv(M)*K -inv(M)*C];
[vt1,D1]=eig(AZ); % with damp
D1=eig(AZ)
vt1
%~1c
[vt2,D2]=eig(K,M); %undamp
D2=eig(K,M)
vt2
% check orthogonal
vt2'*M*vt2
vt2'*K*vt2
%~1d
qs=[k*y0; k*y0*cos(w*t0)+c*y0*w*sin(w*t0) ;0;0;0];

qc=[c*y0*w; -k*y0*sin(w*t0)+c*y0*w*cos(w*t0) ;0;0;0];


Q=[-w^2*[M]+[K] -w*[C];w*[C] -w^2*[M]+[K]];
qq=[qs;qc];
YY=inv(Q)*qq;
a4=YY(4,:);
b4=YY(9,:);
figure(1)
subplot(2,1,1)
M4=(a4^2+b4^2)^0.5;
for ww=0:0.01:5
M4ww=subs(M4,ww);
plot(ww,M4ww)
hold on
grid on
end
title('Amplitude')
xlabel('w (rad/s)')
ylabel('Amplitude (m)')

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'

{,t Erw"'l* * * r, [g, -nt (x,,*)]'n J t,[v.-wfi, ,*)f'


= ){{KtlL+ *p,Fi-zj,w(x ,t)**,t ,,*l
t*k [g] - zy.w(x,,*)+w-(x,,*))
{.K}l = I.t

rt[ui-r]rtrr ifl

ax

w tx ,*) = [[,orl ?rorl: [g"r] ?xt S (r-Kt)


wtx, ,*) = tU,aJ LA = fuftt Tu J (x-x,)
V=

*+1;r4p t $r,[y,'-zg, [Erl] ? + ?r(vrr,;frrrrn) ?)

g{9une-

"*k,[u,'?n= | 3w 1"
!( Utw i-*
v,wJ
Ct [i,

zg.[qn]z t
bqtfiL

A^f

-,; (X ,*D 35, -

Iy,-w

?rt,.crr]TroJ ?rl

SV,

c"

[r (y,,il -V, ] 5 w fX ,*)

- c- [ri, (tr, ,*)- y, ] J w (t,,,r)

* [c"J
5M.= -

c4

(t,

-[uffi f,il(t!,- [u u)J s Lw)

5T=

*[ru^Jug
fpl
nl

4$v-- #[KoJn?^

[r^] =

*k,[9t1or1r

__*K

Lr

F,-

'

*kr {'-0 (rz} *lJ


{_

\
Lt9rvtS

ff"^

i,ed fta,{rv;F{nru,r f ttu u p{e-

ff, f fr- $v + $ r,qlr* )d*


+ Jr'It.'lna^J $t^ -

* 6l

il
kos0

Ao{w;rrib{q- Sr* C,vx

@Ae|uno
frrx)
il,q=
P'{.at

-l
-(

z*r,

s?)a(ry)

= Wf

,ot

?
[Ao*il=

nsthj Ruryr ', K."tr*o &* ttel

tet dl; crete iau,. tr = k l"

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

tq- in *h& / ^dnfipt ih


6E anot pt of the g, o*n"t 3,)

-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

beam displacement 1*dt


2
magnitude (m)

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

beam displacement 2*dt

-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)

%%AME 521 Project Task2


clear;
clc;

Kengyu Lin USCID:9852103390

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,:))

title('beam displacement 4*dt')


xlabel('beam long (m)')
ylabel('magnitude (m)')
grid on
subplot(3,2,5)
plot(dx,Wb(6,:))
title('beam displacement 5*dt')
xlabel('beam long (m)')
ylabel('magnitude (m)')
grid on
subplot(3,2,6)
plot(dx,Wb(7,:))
title('beam displacement 6*dt')
xlabel('beam long (m)')
ylabel('magnitude (m)')
grid on
%========y1 y2 impulsive load
addyy2=1.2/2.5;
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);
if k==1500 %add impulsive load on y2' at x=L/2
Z(10,k+1)=Z(10,k+1)+addyy2;
end
z=Z(:,k+1);
T(1,k+1)=t;
k=k+1;
end

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]

B. Yang, AME 521 Lecture Notes 2016.

[2]

B. Yang, AME 521 homework solution 11 & 12.

[3]

H. P. Gavin, "Numerical integration in structural dynamics," 2016. [Online].


Available: http://people.duke.edu/~hpgavin/cee541/NumericalIntegration.pdf.
Accessed: Dec. 5, 2016.

[4]

"Appendix A numerical integration methods,". [Online]. Available:


https://theses.lib.vt.edu/theses/available/etd-10052004201201/unrestricted/07_Appendix.pdf. Accessed: Dec. 5, 2016.

Das könnte Ihnen auch gefallen