Docsity

experiment 1 mass spring damper system, Summaries of Control Systems

Toggle sidebar
bg1
Experiment No. 1: Free and Forced Response of a
Mass–Spring–Damper System Using MATLAB/Simulink
1. Aim
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.
2. Objectives
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.001tN/m and study its effect.
3. Software Required
MATLAB with Simulink.
4. System Parameters
Parameter Symbol Value
Mass m1 kg
Damping coefficient B0.5 N·s/m
Initial spring constant K(0) 0.75 N/m
Time-varying spring constant K(t) 0.75 e−0.001tN/m
Force input F(t) 1 N step (when applied)
5. Theory
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)
pf3
pf4
pf5

Partial preview of the text

Download experiment 1 mass spring damper system and more Summaries Control Systems in PDF only on Docsity!

Experiment No. 1: Free and Forced Response of a

Mass–Spring–Damper System Using MATLAB/Simulink

1. Aim

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.

2. Objectives

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

3. Software Required

MATLAB with Simulink.

4. System Parameters

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)

5. Theory

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

  1. 75 1

= 0.866 rad/s. (5)

The damping ratio is

ζ =

B

Km

0. 75 × 1

Since 0 < ζ < 1, the system is underdamped and exhibits oscillations whose amplitude decreases due to damping.

6. Part A — Free Response

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.

7. Part B — Forced Response

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 =

F

K

= 1.333 m. (9)

Thus, an underdamped transient is expected before the displacement settles at approximately 1 .333 m.

8. Part C — Step Force Applied at 75 s

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.

  1. Construct the differential-equation model using a Sum block, gain 1/m and two cascaded Integrator blocks.
  2. Connect velocity through Gain B = 0.5 to a negative input of the Sum block.
  3. For the constant-spring case, connect displacement through Gain K = 0.75 to the other negative input.
  4. For free response, set F (t) = 0, x(0) = 1 m and ˙x(0) = 0; run the model and record x(t).
  5. For forced response, set both initial conditions to zero and apply a 1 N Step input; observe x(t).
  6. Change the Step time to 75 s to obtain the delayed forced response.
  7. For time-varying stiffness, generate K(t) with Clock → − 0. 001 → exp → 0 .75 and multiply it by x(t).
  8. Run the time-varying model for 300 s or longer; 1000 s gives a clearer stiffness variation.
  9. Compare free, forced, delayed-step and time-varying-stiffness responses.

12. Recommended Simulation Settings

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

13. Observation Table

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

14. Result and Discussion

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.

15. Precautions

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