Lesson 11: Mass-Spring, Resonance and ode45

Similar documents
Lesson 14: Van der Pol Circuit and ode23s

LAB #6 The Swaying Building

MAT 275 Laboratory 6 Forced Equations and Resonance

Laboratory 10 Forced Equations and Resonance

Lesson 9: Predator-Prey and ode45

MAT 275 Laboratory 6 Forced Equations and Resonance

Chapter 14 Oscillations. Copyright 2009 Pearson Education, Inc.

Chapter 14 Oscillations

Lesson 13: Rapid Cooling and Euler-trapezoid

The Spring Pendulum. Nick Whitman. May 16, 2000

PHYSICS. Chapter 15 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT Pearson Education, Inc.

Chapter 14 Oscillations

11/17/10. Chapter 14. Oscillations. Chapter 14. Oscillations Topics: Simple Harmonic Motion. Simple Harmonic Motion

HOMEWORK ANSWERS. Lesson 4.1: Simple Harmonic Motion

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

Chapter 14 Oscillations. Copyright 2009 Pearson Education, Inc.

DON T PANIC! If you get stuck, take a deep breath and go on to the next question. Come back to the question you left if you have time at the end.

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

Lesson 15: Oregonator, Chemical Reactions and ode15s

Momentum and Impulse Challenge Problems Problem 1: Estimation

Solutions for homework 5

Simple Harmonic Motion and Damping

APPLICATIONS OF SECOND-ORDER DIFFERENTIAL EQUATIONS

6.1 Simulation of Simple Systems

MATH 100 Introduction to the Profession

MAT 275 Laboratory 4 MATLAB solvers for First-Order IVP

The roots are found with the following two statements. We have denoted the polynomial as p1, and the roots as roots_ p1.

Oscillations and Waves

Chapter 1: Introduction

Chapter 4: The State Space and Numerical Simulation

Second In-Class Exam Solutions Math 246, Professor David Levermore Thursday, 31 March 2011

Vector Fields and Solutions to Ordinary Differential Equations using MATLAB/Octave

Section 3.7: Mechanical and Electrical Vibrations

e jωt = cos(ωt) + jsin(ωt),

SIMPLE HARMONIC MOTION

F = ma, F R + F S = mx.

ECE382/ME482 Spring 2005 Homework 1 Solution February 10,

Computer lab for MAN460

MATH 251 Examination II July 28, Name: Student Number: Section:

Chapter 5 Design. D. J. Inman 1/51 Mechanical Engineering at Virginia Tech

Section Mass Spring Systems

MAT 275 Laboratory 7 Laplace Transform and the Symbolic Math Toolbox

Lesson 13: Rapid Cooling and Euler-trapezoid

Application of Second Order Linear ODEs: Mechanical Vibrations

Introduction to Dynamical Systems. Tuesday, September 9, 14

Using Matlab to integrate Ordinary Differential Equations (ODEs)

Problem Weight Score Total 100

International Journal of Emerging Technologies in Computational and Applied Sciences (IJETCAS)

Final Exam Concept Map

Computer Labs for. Differential Equations & Linear Algebra

2007 Problem Topic Comment 1 Kinematics Position-time equation Kinematics 7 2 Kinematics Velocity-time graph Dynamics 6 3 Kinematics Average velocity

A-level Physics (7407/7408)

Falling Mass and Improved Euler

CALIFORNIA INSTITUTE OF TECHNOLOGY Control and Dynamical Systems

Wheel and Axle. Author: Joseph Harrison. Research Ans Aerospace Engineering 1 Expert, Monash University

Numerical Methods with Matlab: Implementations and Applications. Gerald W. Recktenwald

Application 6.5B Period Doubling and Chaos in Mechanical Systems

ECE 3793 Matlab Project 3 Solution

Undamped Free Vibrations (Simple Harmonic Motion; SHM also called Simple Harmonic Oscillator)

Dynamic Modeling. For the mechanical translational system shown in Figure 1, determine a set of first order

DEVIL PHYSICS THE BADDEST CLASS ON CAMPUS IB PHYSICS

Damped & forced oscillators

MAE143A Signals & Systems - Homework 5, Winter 2013 due by the end of class Tuesday February 12, 2013.

Lecture 11. Scott Pauls 1 4/20/07. Dartmouth College. Math 23, Spring Scott Pauls. Last class. Today s material. Next class

2 Solving Ordinary Differential Equations Using MATLAB

Solutions. Chapter 5. Problem 5.1. Solution. Consider the driven, two-well Duffing s oscillator. which can be written in state variable form as

Final Exam Sample Problems, Math 246, Spring 2018

Second Order Systems

LABORATORY 10 Forced Equations and Resonance

Math 256: Applied Differential Equations: Final Review

BSc/MSci MidTerm Test

Answers and Hints to Review Questions for Test (a) Find the general solution to the linear system of differential equations Y = 2 ± 3i.

ECE382/ME482 Spring 2005 Homework 7 Solution April 17, K(s + 0.2) s 2 (s + 2)(s + 5) G(s) =

APPM 2460 CHAOTIC DYNAMICS

Northwestern CT Community College Course Syllabus. Course Title: CALCULUS-BASED PHYSICS I with Lab Course #: PHY 221

9.6 - Energy and the Simple Harmonic Oscillator *

Physics with Matlab and Mathematica Exercise #1 28 Aug 2012

Graded and supplementary homework, Math 2584, Section 4, Fall 2017

Using web-based Java pplane applet to graph solutions of systems of differential equations

1/9/2017. Newton s 2 nd Law of Motion, revisited

Manifesto on Numerical Integration of Equations of Motion Using Matlab

Week #9 : DEs with Non-Constant Coefficients, Laplace Resonance

PAP Physics Spring Exam Review

MATH2351 Introduction to Ordinary Differential Equations, Fall Hints to Week 07 Worksheet: Mechanical Vibrations

Lecture 4. Programming

Second Order Linear ODEs, Part II

Solutions. Chapter 1. Problem 1.1. Solution. Simulate free response of damped harmonic oscillator

Lab 01: Harmonic Motion I. Theory: Three experiments. The first we measure the oscillation of a spring, the second of a rubber band (non-linear).

Linear and Nonlinear Oscillators (Lecture 2)

Lab 1: Damped, Driven Harmonic Oscillator

Mathematical Models. MATH 365 Ordinary Differential Equations. J. Robert Buchanan. Spring Department of Mathematics

The dimensions of an object tend to change when forces are

Simulink Modeling Tutorial

Chapter 16: Oscillations

Solution: (a) Before opening the parachute, the differential equation is given by: dv dt. = v. v(0) = 0

Mathematical Models. MATH 365 Ordinary Differential Equations. J. Robert Buchanan. Fall Department of Mathematics

Lab 1: damped, driven harmonic oscillator

28. Pendulum phase portrait Draw the phase portrait for the pendulum (supported by an inextensible rod)

Chapter 5: Applications of Newton's Laws

Resonance and response

Transcription:

Lesson 11: Mass-Spring, Resonance and ode45 11.1 Applied Problem. Trucks and cars have springs and shock absorbers to make a comfortable and safe ride. Without good shock absorbers, the truck or car will continue to bounce upon hitting an object. In fact, if a series of objects are hit and the shock absorbers are not very good, then the amplitude of the bounce could even increase! The objective of this lesson is to study a second order differential equation, which is a simple model of this important topic. This will be converted into a system of first order differential equations so that the Matlab command ode45 can be used to study the solutions for different choices of spring and damping constants. 11.2 Differential Equation Model. A coupled mass-spring system with damping and external force is modeled by a single second order differential equation for the from the equilibrium position, y(t), m y'' + c y' + k y = f(t) and y() and y'() are given. The velocity is defined to be y'. This equation is derived from Newton's law of motion, which requires the sum of the forces to be equal to the mass s the acceleration. The forces are - c y' for damping, - k y for small deformations of the spring, and f(t) for external forces. In our problem f(t) could be a complicated expression of trig functions, and the exact solution will be difficult to find. Therefore, we are forced into considering higher order numerical methods with variable step sizes.

2 The above second order differential equation can be equivalently written as a coupled system of two differential equations for y 1 (t) = y(t) and y 2 (t) = y'(t). By definition the derivative of y 1 must be y 2. The derivative of y 2 is y'', which we can solve for via the second order differential equation. Thus, the equivalent coupled system is y 1 ' = y 2 with y 1 () = y() = the initial position and y 2 ' = (f(t) - c y 2 - k y 1 )/m with y 2 () = y'() = the initial velocity. Matlab's ode45 can be used to solve such systems. 11.3 Method of Solution. Consider the special case where there is no damping, c =, the external force is a trig function, f(t) = F cos(ωt), and the initial position and velocity are both zero. The reader should verify that the solution is y(t) = F /(k - m ω 2 ) (-cos ((k/m) 1/2 t) + cos(ωt)). If the frequency of the forcing term, ω, approaches the natural frequency of the coupled spring mass, (k/m) 1/2, then we can expect some resonance. In order to be more precise, note y(t) as a function of ω is of the form as ω approaches (k/m) 1/2. By using L'Hopital's rule we can show y(t) approaches, as ω approaches (k/m) 1/2, Y(t) = F /(2(km) 1/2 ) t sin((k/m) 1/2 t). This is also the solution of the spring-mass equation with f(t) = F cos(((k/m) 1/2 t). Thus the amplitude must increase until the system "breaks" or the model is no longer valid. We want to be able to approximate the solution for more general cases. What happens if there is a damping term, -c y, where c is small? Or, what happens for more complicated forcing terms?

3 11.4 Matlab Implementation. The single second order differential equation must be converted, as above, to a system of differential equations for the position, denoted by the symbol y(1), and for the velocity, denoted by the symbol y(2). The m-files for this system are called ypms.m and ms.m. In the calculation we used m = 1, c =, k = 1, f (t) = 1 cos(1 t) with initial position and velocity set equal to. In subsequent calculations we let c =.1 and 1. where the third line in the ypms.m must be changed to, for c =.1, ypms(2) = cos(1*t) - y(1) -.1*y(2); Note the amplitude is bounded for small c, but the amplitude increases as c get smaller. The amplitude of the resonating solution is F /(2(km) 1/2 ) t = 1/2 t. function ypms = ypms(t,y) ypms(1) = y(2); ypms(2) = cos(1*t) - y(1); ypms = [ypms(1) ypms(2)]'; % clear; t = ; tf = 1; y = [ ]; [t y] = ode45('ypms', [t tf],y); plot(t,y(:,1)) title( '') xlabel('') ylabel('') %plot(y(:,1),y(;,2));

4 5 4 3 2 1-1 -2-3 -4-5 Figure: m = 1, c =. and k = 1

5 1 8 6 4 2-2 -4-6 -8-1 Figure: m = 1, c =.1 and k = 1

6 1.8.6.4.2 -.2 -.4 -.6 -.8-1 Figure: m = 1, c = 1. and k = 1 11.5 Numerical Experiments. Another set of interesting experiments is to keep m = 1, c =., k = 1. and to vary ω in the external forcing term. In calculations below we have used ω =.9, 1.1 and 1.2. Note how the frequencies and amplitudes have changed.

7 15 1 5-5 -1-15 Figure: m = 1, c =., k =1 and ω =.9

8 1 8 6 4 2-2 -4-6 -8-1 Figure: m = 1, c =., k =1 and ω = 1.1

9 5 4 3 2 1-1 -2-3 -4-5 Figure: m = 1, c =., k =1 and ω = 1.2 11.6 Additional Calculations. Consider the mass-spring system with damping where f(t) = 2cos(t), m = 1, c =.1 and variable k = 1, 1-.S and 1+.S. (a). State the second order differential equation and the equivalent system of differential equations. (b). (c). Modify the ypms.m file. Insert your name and student number into the ms.m file. Execute the ms.m file for the three choices of k. (d). Print the ypms.m and ms.m files and the graphs.