Question

Solve it with matlab

25.16 The motion of a damped spring-mass system (Fig. P25.16) is described by the following ordinary differential equation: d

1 0
Add a comment Improve this question Transcribed image text
Answer #1

program logic :

  • Inorder to solve this 2nd order ODE , we have to form a state space first.
  • The state space form can be obtained using the function odeToVectorField()
  • Then, pass this state space to an ODE solve with the given initial conditions.
  • using the obtained solution, plot the graph

program;

syms x(t)

sol1 = motiondamp(5);

sol2 = motiondamp(40);

sol3 = motiondamp(200);

fplot(@(x)deval(sol1,x,1),[0, 15]);

hold on

fplot(@(x)deval(sol2,x,1),[0, 15]);

fplot(@(x)deval(sol3,x,1),[0, 15]);

xlabel("t")

ylabel("x")

legend("c=5","c=40","c=200")

grid on

hold off

function sol = motiondamp(c)

m = 20;

k = 20;

x0 = 1;

v0 = 0;

syms x(t)

ss = odeToVectorField(m*diff(x,2)+c*diff(x)+k*x==0);

M = matlabFunction(ss,'vars',{'t','Y'});

sol = ode45(M,[0 15],[v0 x0]);

end

plot:

0.8 C=5 C=40 c=200 0.6 0.4 0.2 X -0.2 -0.4 5 10 15 t

Add a comment
Know the answer?
Add Answer to:
Solve it with matlab 25.16 The motion of a damped spring-mass system (Fig. P25.16) is described...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I want matlab code. 585 i1 FIGURE P22.15 22.15 The motion of a damped spring-mass system (Fig. P22.15) is de...

    I want matlab code. 585 i1 FIGURE P22.15 22.15 The motion of a damped spring-mass system (Fig. P22.15) is described by the following ordinary differ- ential equation: dx dx in dt2 dt where x displacement from equilibrium position (m), t time (s), m 20-kg mass, and c the damping coefficient (N s/m). The damping coefficient c takes on three values of 5 (underdamped), 40 (critically damped), and 200 (over- damped). The spring constant k-20 N/m. The initial ve- locity is...

  • SOLVE NUMERICALLY USING EULERS METHOD

    The motion of a damped spring-mass system (Fig. P25.16)  is described by the following ordinary differential equation: m d2x dt2 1 c dx dt 1 kx 5 0 where x 5 displacement from equilibrium position (m), t 5 time  (s), m 5 20-kg mass, and c 5 the damping coeffi cient (N ? s/m).  The damping coeffi cient c takes on three values of 5 (underdamped), 40 (critically damped), and 200 (overdamped). The  spring constant k 5 20 N/m. The...

  • A spring-mass-dashpot system for the motion of a block of mass m kg is shown in...

    A spring-mass-dashpot system for the motion of a block of mass m kg is shown in Fig. II-2. The block is moved to the right of the equilibrium position and is released from rest (time t = 0) when its displacement, x = XO. Using the notations given in Fig. II-2,4 (1) Draw the free body diagram of the block - (2) Write the equation of motion of the block- If the initial displacement of the block to the right...

  • A spring-mass-dashpot system for the motion of a block of mass m kg is shown in...

    A spring-mass-dashpot system for the motion of a block of mass m kg is shown in Fig. II-2. The block is moved to the right of the equilibrium position and is released from rest (time t = 0) when its displacement, x = XO. Using the notations given in Fig. II-2,4 (1) Draw the free body diagram of the block - (2) Write the equation of motion of the block- If the initial displacement of the block to the right...

  • A damped osillator has a mass (m = 2.00kg), a spring (k = 10.0N/m), and a...

    A damped osillator has a mass (m = 2.00kg), a spring (k = 10.0N/m), and a damping coefficient b = 0.102kg/s. undamped angular frequency of the system is 2.24rad/s. If the initial amplitude is 0.250m, How many periods of motion are necessary for the amplitude to be reduced to 3/4 it initial value? is this system underdamped, critically damped, or overdamped

  • Answer last four questions 1. A spring-mass-damper system has mass of 150 kg, stiffness of 1500...

    Answer last four questions 1. A spring-mass-damper system has mass of 150 kg, stiffness of 1500 N/m and damping coefficient of 200 kg/s. i) Calculate the undamped natural frequency ii) Calculate the damping ratio iii) Calculate the damped natural frequency iv) Is the system overdamped, underdamped or critically damped? v) Does the solution oscillate? The system above is given an initial velocity of 10 mm/s and an initial displacement of -5 mm. vi) Calculate the form of the response and...

  • solve by matlab The damping system has a single degree of freedom as follows: dx2 dx...

    solve by matlab The damping system has a single degree of freedom as follows: dx2 dx mo++ kx = F(t) dt dt The second ordinary differential equation can be divided to two 1sorder differential equation as: dx dx F C k xí -X2 -X1 dt dt m m m = x2 ,x'z m N F = 10, m = 5 kg k = 40, and the damping constant = 0.1 The initial conditions are [00] and the time interval is...

  • 2 with spring stiffness k 1000 N/m, Consider a mass-spring-damper system shown in Figure mass m...

    2 with spring stiffness k 1000 N/m, Consider a mass-spring-damper system shown in Figure mass m = 10 kg, and damping constant c-150 N-s/m. If the initial displacement is xo-o and the initial velocity is 10 m/s (1) Find the damping ratio. (2) Is the system underdamped or overdamped? Why? (3) Calculate the damped natural frequency (4) Determine the free vibration response of the system.

  • 4. (20 points) A mass pring system has a mass of kg, a damping constant of...

    4. (20 points) A mass pring system has a mass of kg, a damping constant of kg/sec and a spring constant of 15 kg/sec2. There is no external force. The system is started in motion at y 4 meters with an initial velocity of 3 m/s in the downward direction. a) Find the differential equation and the initial conditions that describe the motion of this system. b) Solve the resulting initial value problem. c) Is the spring system overdamped, underdamped...

  • A second order mechanical system of a mass connected to a spring and a damper is subjected to a s...

    A second order mechanical system of a mass connected to a spring and a damper is subjected to a sinusoidal input force mi+ci +kx- Asin(ot) The mass is m-5 kg, the damping constant is c = 1 N-sec/m, the spring stiffness is 2 N/m, and the amplitude of the input force is A- 3 N. For this system give explicit numerical values for the damping factor un-damped natural frequency on a. and the A second order mechanical system of a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT