Question

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 initial velocity is zero, and the  initial displacement x 5 1 m. Solve this equation using a numerical  method over the time period 0 # t # 15 s. Plot the displacement  versus time for each of the three values of the damping coeffi cient  on the same curve.


SOLVE NUMERICALLY USING EULERS METHOD

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

Solution:

It is required solve the equation of motion of spring-mass system using numerical method for the three damping conditions andTo solve the required problem, write the following code in the editor window of the Matlab to implement RK4 method and save i16 - 17 18 - 19 20 21 22 if nargin<4, error(at least 4 input arguments required), end $checking number of input arguments ielse 32 33 34 35 - 36 37 - 38 39 - I 40 41 42 t = tspan; end tt = ti; y(1,:) = y0; np = 1; tp (np) = tt; yp (np, :) = y(1,:);51 - 52 53 - 54 55 - 56 - k4 = dydt (tt+hh, vend,varargin{:}); phi = (kl+2* (k2+k3) +k4)/6; y(i+1, :) y(i,:) + phi*hh; tt =1 2 - 3- The codes are explained in the codes itself. The sentences starting with % is the explanation of the codes written jIt is to be noted that the above function calls the function dydt, which is equation of motion for the spring mass system. WrNow, call the function prob22150) by typing the following command in the command window of the Matlab: fx >> prob2215 The outThe plot generated as an output is shown below: Displacements for mass-spring system 0.8 00 0.6 0.4 0.2 x (m) 0 -0.2 -0.4 -0.


answered by: ANURANJAN SARSAM
Add a comment
Know the answer?
Add Answer to:
SOLVE NUMERICALLY USING EULERS METHOD
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
  • Solve it with matlab 25.16 The motion of a damped spring-mass system (Fig. P25.16) is described...

    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’x dx ++ kx = 0 m dr 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 (under- damped), 40 (critically damped), and 200 (overdamped). The spring constant k = 20 N/m....

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

  • plz print your result -1 points МУ Not A mass weighing 3V 10 N stretches a spring 2 m. The mass is attached to a dashpot device that offers a damping force numerically equal to β (B > 0) times the...

    plz print your result -1 points МУ Not A mass weighing 3V 10 N stretches a spring 2 m. The mass is attached to a dashpot device that offers a damping force numerically equal to β (B > 0) times the instantaneous velocity Determine the values of the damping constant B so that the subsequent motion is overdamped, critically damped, and underdamped. (If an answer is an interval, use interval notation. Use g 9.8 m/s2 for the acceleration due to...

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

  • 5. (20 points) A mass weighing 8 pounds stretches a spring 1.6 feet. The entire system...

    5. (20 points) A mass weighing 8 pounds stretches a spring 1.6 feet. The entire system is placed in a medium that offers a damping force numerically equivalent to twice the instantaneous velocity. The mass is initially released from a point 1/2 foot above the equilibrium point with a downward velocity of 5 ft/sec. (a) (6 points) Write the differential equation for the mass/spring system and identify the initial conditions. 7 5. (b) (12 points) Solve the IVP in part...

  • 5. (20 points) A mass weighing 8 pounds stretches a spring 1.6 fort. The entire system...

    5. (20 points) A mass weighing 8 pounds stretches a spring 1.6 fort. The entire system is placed in a medium that offers a damping force numerically equivalent to twice the instantaneous velocity. The mass is initially released from a point 1/2 foot above the equilibrium point with a downward velocity of 5 sec (a) (6 points) Write the differential equation for the mass spring system and identify the initial conditions 7 5. (b) (12 points) Solve the IVP in...

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

  • A mass weighing 4 pounds stretches a spring 6 inches. At time t = 0, the...

    A mass weighing 4 pounds stretches a spring 6 inches. At time t = 0, the weight is then struck to set it into motion with an initial velocity of 2 ft/sec, directed downward. Determine the equations of motion for the position and the velocity of the weight. Find the amplitude, period, and frequency of the position (displacement). A 4-lb weight stretches a spring 1 ft. If the weight moves in a medium where the magnitude of the damping force...

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