



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




To model and study the free and forced responses of a mass–spring–damper system using MAT- LAB/Simulink, and to investigate the effect of a time-varying spring constant on the system response.
Develop the mathematical model of a mass–spring–damper system. Plot the free response for specified initial conditions. Plot the forced response for a 1 N step-force input. Apply the step force at t = 75 s and observe the delayed forced response. Implement a time-varying spring constant K(t) = 0. 75 e−^0.^001 t^ N/m and study its effect.
MATLAB with Simulink.
Parameter Symbol Value Mass m 1 kg Damping coefficient B 0 .5 N·s/m Initial spring constant K(0) 0 .75 N/m Time-varying spring constant K(t) 0. 75 e−^0.^001 t^ N/m Force input F (t) 1 N step (when applied)
For a translational mass–spring–damper system, application of Newton’s second law gives
m x¨(t) + B x˙(t) + K x(t) = F (t). (1)
For m = 1 kg, B = 0.5 N·s/m and constant K = 0.75 N/m, Eq. (1) becomes
¨x(t) + 0.5 ˙x(t) + 0. 75 x(t) = F (t). (2)
Therefore, the acceleration used in the Simulink integrator model is
¨x(t) = F (t) − 0 .5 ˙x(t) − 0. 75 x(t). (3)
For the constant-parameter system, the force-to-displacement transfer function is
X(s) F (s)
s^2 + 0. 5 s + 0. 75
The undamped natural frequency is
ωn =
r K m
r
= 0.866 rad/s. (5)
The damping ratio is
ζ =
Km
Since 0 < ζ < 1, the system is underdamped and exhibits oscillations whose amplitude decreases due to damping.
The free response is the response produced by stored energy in the system when the external input is zero. Set F (t) = 0, x(0) = 1 m, x˙(0) = 0 m/s. (7)
Use a Constant block of value 0 as the force input. Set the initial condition of the velocity integrator to 0 and that of the displacement integrator to 1. The expected response is a decaying oscillation approaching zero.
For the purely forced response, set both initial conditions to zero and apply a 1 N step force:
x(0) = 0, x˙(0) = 0, F (t) = 1 · u(t) N. (8)
For the constant spring case, the final displacement is obtained from static equilibrium:
xss =
= 1.333 m. (9)
Thus, an underdamped transient is expected before the displacement settles at approximately 1 .333 m.
Configure the Simulink Step block as follows: Step time = 75 s, Initial value = 0, Final value = 1. Thus
F (t) =
0 , t < 75 s 1 N, t ≥ 75 s.
A simulation stop time of about 300 s is suitable for clearly observing the response before and after application of the force.
Case Start time Stop time Solver Constant K: free/forced 0 s 20 s ode45, variable-step Step applied at 75 s 0 s 300 s ode45, variable-step Time-varying K(t) 0 s 300–1000 s ode45, variable-step
Case Input / IC Spring Expected observation Free response F = 0; x(0) = 1; x˙(0) = 0
K = 0. 75 Decaying oscillations to- ward zero Forced re- sponse
1 N step; zero ICs K = 0. 75 Oscillatory transient; set- tles near 1.333 m Delayed force 1 N step at 75 s K = 0. 75 Forced response starts at 75 s Time-varying stiffness
As selected 0. 75 e−^0.^001 t^ Oscillation frequency re- duces as K(t) decreases
The free and forced responses of the mass–spring–damper system were obtained successfully in MATLAB/Simulink. For constant K = 0.75 N/m, the damping ratio is approximately 0 .2887, confirming an underdamped system. The free response decays to zero due to energy dissipation by the damper. For a 1 N step force and zero initial conditions, the displacement exhibits an oscillatory transient and approaches 1.333 m for the constant-spring case. When the step is applied at 75 s, the effect of the external force is clearly separated in time. With K(t) = 0. 75 e−^0.^001 t, the stiffness and instantaneous natural frequency decrease continuously;
therefore the oscillatory behavior changes with time. This demonstrates the influence of a time-varying plant parameter on system dynamics.
Ensure the damping and spring feedback signals enter the Sum block with negative signs. Use a non-zero initial condition for observing a non-trivial free response. Use zero initial conditions when studying the purely forced response. Check the Step block amplitude and Step time carefully. Use consistent SI units. For time-varying stiffness, verify that the Product block computes K(t) x(t), not K(t) alone. Use a sufficiently long stop time to make the variation of K(t) visible.