This action might not be possible to undo. Are you sure you want to continue?

Uploaded by jobkazi9725

0.0 (0)

A coupled mass-spring system with damping and external force is modeled by a single second order differential equation for the displacement from the equilibrium position, y(t), m y'' + c y' + k y = f(t) and y(0),y'(0) are given. m = mass c = damping constant k = spring constant y’ = y’(t) = velocity and y’’ = y’’(t) = acceleration.

The derivative of y2 is y''.k y1)/m with y2(0) = y'(0) = the initial velocity.c y2 . Thus. By definition the derivative of y1 must be y2. which we can solve for via the second order differential equation. the . equivalent coupled system is y1' = y2 with y1(0) = y(0) = the initial position and y2' = (f(t) .The above second order differential equation can be equivalently written as a coupled system of two differential equations for y1(t) = y(t) and y2(t) = y'(t).

If w does equal (k/m) 1/2. Consider the special case with no damping and a trig function for the external force c=0 f(t) = F0 cos(wt).Method of Solution. then the solution is y(t) = F0/(k . then the solution is Y(t) = F0/(2(km) 1/2) t sin((k/m) 1/2 t).m ω 2) (-cos ((k/m) 1/2t) + cos(ωt)). . If w does not equal (k/m) 1/2.

the amplitude of the sin function blows up! Even if this particular case is not precisely satisfied. . we will use numerical techniques.In the last case. the amplitude may become so large that the spring “breaks.” In these other cases the exact solution of the ODE may be difficult to find. and therefore. Matlab’s ode45 will be used so solve the system version of the ODE.

In the calculation we used m = 1. c = 0 .m and ms. In subsequent calculations we let c = .1. k = 1. Use the m-files ypms.m must be changed to. where the third line in the ypms.1 and 1..1*y(2).Matlab Implementation.m.y(1) . . ypms(2) = cos(1*t) . for c = . f (t) = 1 cos(1 t) with initial position and velocity set equal to 0.

[t0 tf]. your student number. [t y] = ode45('ypms'. lesson number clear.y(1). .y(.. tf = 100. ypms(2) = cos(1*t) .y) ypms(1) = y(2). y0 = [0 0]. t0 = 0. %your name.y0). lesson number') xlabel('time') ylabel('displacement') %plot(y(:.1).2)).y(:.1)) title( 'your name. plot(t.function ypms = ypms(t. your student number. ypms = [ypms(1) ypms(2)]'.

lesson number 50 40 30 20 displacement 10 0 -10 -20 -30 -40 -50 0 10 20 30 40 50 time 60 70 80 90 100 Figure: m = 1.your name. c = 0.0 and k = 1 . your student number.

1 and k = 1 . your student number. c = . lesson number 10 8 6 4 2 displacement 0 -2 -4 -6 -8 -10 0 10 20 30 40 50 time 60 70 80 90 100 Figure: m = 1.your name.

4 -0.8 -1 0 10 20 30 40 50 time 60 70 80 90 100 Figure: m = 1.your name. your student number. lesson number 1 0.6 0.4 displacement 0.8 0. and k = 1 .2 -0. c = 1.2 0 -0.6 -0.

Sign up to vote on this title

UsefulNot usefulAre you sure?

This action might not be possible to undo. Are you sure you want to continue?

We've moved you to where you read on your other device.

Get the full title to continue

Get the full title to continue reading from where you left off, or restart the preview.