Professional Documents
Culture Documents
f ( x )=sin2 ( x2 )
Numerical Integration (30 Points)
A circular shaft has a diameter d (m) that varies with the axial position x (m) according to
2
0.02(1+ x )
d= 0≤x ≤3
ex
An axial load P of 30 kN is applied to one end of the shaft, whose modulus of elasticity E is 200 GPa.
The axial elongation of the shaft is Δ x (m) and is given by:
3
P 1 π 2
Δ x = ∫ dx A= d
E 0 A 4
2
d x 1 −k 1 k2
2
= x 1+ ( x 2−x 1 )
dt m1 m2
2
d x2 k2 k3
2
=
m2
( x 1−x 2 ) + ( x 3−x 2 )
m2
dt
2
d x3 k3
= (x −x )
dt
3
m3 2 3
Using 4th Order Runge-Kutta Method, integrate the system of differential equations governing the free-
vibration of the three-story shear building model shown. Simulate the dynamics of this structure from
t=0 to t=20 seconds. Plot the time vs displacement and time vs velocity of each floor. For the initial
conditions, the initial displacements @ t=0 are all zero and the initial velocity of the ground floor (
d x 1 /dt ) should be set equal to the last two digits of your id number divided by 10. (For example, ID
number = 20210028, last two digits = 28, initial velocity of ground floor = 2.8 m/s. If the last two digits of
your ID number are both zero, i.e., 00, use the value of 10 m/s)