Question: This is a metlab question for a dynamics class. Please help? Thank you Q3. Solving dynamics (differential) equations with a computer: Euler's method. Say, a
This is a metlab question for a dynamics class. Please help? Thank you
Q3. Solving dynamics (differential) equations with a computer: Euler's method. Say, a particle of mass m is moving in a line and its position is denoted x, velocity v, and acceleration a. Its acceleration is given by the following equation: Q=-- - You are told that the initial position 20 = lm and velocity vo = 1m/s, and constants m = 1 kg, and stiffness k = 1 N/m. a) Using Euler's method, compute and plot the position 2 versus t and velocity v versus t. Integrate for a duration of 30 seconds, and use time step At = 0.0001. Use drag or damping coefficient c=0.1 Ns/m. b) Do an animation of the motion. c) Now use damping coefficient c= 1 Ns/m and repeat part-a. How different is the motion? Comment on how the motion is different. d) What happens if you increase stiffness k to 4 N/m, but keeping c = 0.1 Ns/m? Plot and briefly comment on what happens. Hint: Note you've already been given the code for integrating the spring mass system with no damping/drag done in class (Web Feb 19). You just need to change it slightly to solve this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
