P1) The motion of a damped spring-mass system is described by the following ordinary differential equation: m d²x dx +c +kx=0 dt² dt m = 20 kg where x = displacement from equilibrium position (m), t = time (s), c = damping coefficient (N⚫s/m). The damping coefficient, c, takes on three values of 5 (underdamped), 40 (critically damped), and 200 (overdamped). The spring constant is 20 N/m. The initial velocity is zero, and the initial displacement is x = 1 m. Solve this equation using the numerical method we have learned in class over the period of time from 0 to 15 s. Plot the displacement versus time for the three cases of the damping coefficient on the same plot. m

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
Question

Please code in Python

P1) The motion of a damped spring-mass system is described by the following ordinary differential
equation:
m
d²x dx
+c +kx=0
dt²
dt
m = 20 kg
where x = displacement from equilibrium position (m), t = time (s), c = damping coefficient (N⚫s/m). The
damping coefficient, c, takes on three values of 5 (underdamped), 40 (critically damped), and 200
(overdamped). The spring constant is 20 N/m. The initial velocity is zero, and the initial displacement is
x = 1 m. Solve this equation using the numerical method we have learned in class over the period of time
from 0 to 15 s. Plot the displacement versus time for the three cases of the damping coefficient on the
same plot.
m
Transcribed Image Text:P1) The motion of a damped spring-mass system is described by the following ordinary differential equation: m d²x dx +c +kx=0 dt² dt m = 20 kg where x = displacement from equilibrium position (m), t = time (s), c = damping coefficient (N⚫s/m). The damping coefficient, c, takes on three values of 5 (underdamped), 40 (critically damped), and 200 (overdamped). The spring constant is 20 N/m. The initial velocity is zero, and the initial displacement is x = 1 m. Solve this equation using the numerical method we have learned in class over the period of time from 0 to 15 s. Plot the displacement versus time for the three cases of the damping coefficient on the same plot. m
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY