Driven, damped, pendulum

Similar documents
I. THE PENDULUM. y 1 (t) = θ(t) (2) y 2 (t) = dθ(t) dt

Oscillatory Motion. Simple pendulum: linear Hooke s Law restoring force for small angular deviations. small angle approximation. Oscillatory solution

Oscillatory Motion. Simple pendulum: linear Hooke s Law restoring force for small angular deviations. Oscillatory solution

Computational Physics (6810): Session 8

Chaotic motion. Phys 420/580 Lecture 10

Damped Oscillation Solution

Project 3: Pendulum. Physics 2300 Spring 2018 Lab partner

Oscillations. Simple Harmonic Motion of a Mass on a Spring The equation of motion for a mass m is attached to a spring of constant k is

Physics 235 Chapter 4. Chapter 4 Non-Linear Oscillations and Chaos

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

Theoretical physics. Deterministic chaos in classical physics. Martin Scholtz

Mechanical Resonance and Chaos

Simulated Data Sets and a Demonstration of Central Limit Theorem

Linear and Nonlinear Oscillators (Lecture 2)

Chapter 13 Lecture. Essential University Physics Richard Wolfson 2 nd Edition. Oscillatory Motion Pearson Education, Inc.

PH 120 Project # 2: Pendulum and chaos

The Nonlinear Pendulum

MAS212 Assignment #2: The damped driven pendulum

Symmetries 2 - Rotations in Space

Lecture XXVI. Morris Swartz Dept. of Physics and Astronomy Johns Hopkins University November 5, 2003

Creating and Analyzing Chaotic Attractors Using Mathematica Presented at the 2013 MAA MathFest

Chaotic motion. Phys 750 Lecture 9

Appendix 3B MATLAB Functions for Modeling and Time-domain analysis

Lecture V : Oscillatory motion and spectral analysis

Chasing Chaos With a Magnetic Pendulum

Chapter 16: Oscillations

Chapter 14. Oscillations. Oscillations Introductory Terminology Simple Harmonic Motion:

From Last Time. Gravitational forces are apparent at a wide range of scales. Obeys

MAS212 Scientific Computing and Simulation

Dylan Zwick. Spring 2014

Lecture. Math Dylan Zwick. Spring Simple Mechanical Systems, and the Differential Equations

Nonlinear Oscillators: Free Response

Midterm EXAM PHYS 401 (Spring 2012), 03/20/12

Computational Physics (6810): Session 9

Vibrations and Waves MP205, Assignment 4 Solutions

LAST TIME: Simple Pendulum:

Forced Oscillations in a Linear System Problems

Chaotic Motion of the Double Pendulum

Mathematical Physics

Physics 106b: Lecture 7 25 January, 2018

Transitioning to Chaos in a Simple Mechanical Oscillator

Oscillatory Motion. Solutions of Selected Problems

Faculty of Computers and Information. Basic Science Department

Chapter 13: Oscillatory Motions

MAS212 Assignment #2: The damped driven pendulum

The Nonlinear Pendulum

Math Assignment 5

The distance of the object from the equilibrium position is m.

Laboratory Instruction-Record Pages

PREMED COURSE, 14/08/2015 OSCILLATIONS

arxiv:physics/ v3 [physics.ed-ph] 24 Jun 2003

Handout 6: Rotational motion and moment of inertia. Angular velocity and angular acceleration

Exercises Lecture 15

Computers, Lies and the Fishing Season

Oscillatory Motion SHM

Differential Equations: Homework 8

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

Nonlinear Dynamic Systems Homework 1

Chapter 14 Oscillations

Fundamentals Physics. Chapter 15 Oscillations

Math 240: Spring/Mass Systems II

P321(b), Assignement 1

Fourier Series. Green - underdamped

Lorenz Equations. Lab 1. The Lorenz System

The Magnetic Pendulum

Chapter 14 Oscillations. Copyright 2009 Pearson Education, Inc.

Energy and the Simple Harmonic Oscillator

Solving systems of first order equations with ode Systems of first order differential equations.

Contents. Contents. Contents

Oscillations. Oscillations and Simple Harmonic Motion

Chapter 15 - Oscillations

Control of a Chaotic Double Pendulum Using the OGY Method. Abstract

PreClass Notes: Chapter 13, Sections

Massachusetts Institute of Technology Physics 8.03 Fall 2004 Final Exam Thursday, December 16, 2004

Chapter 14. PowerPoint Lectures for University Physics, Thirteenth Edition Hugh D. Young and Roger A. Freedman. Lectures by Wayne Anderson

Rotational Number Approach to a Damped Pendulum under Parametric Forcing

Why are Discrete Maps Sufficient?

1 Pushing your Friend on a Swing

Parametric Resonance and Elastic Pendulums

IM4. Modul Mechanics. Coupled Pendulum

Period-One Rotating Solutions of Horizontally Excited Pendulum Based on Iterative Harmonic Balance

Rutgers University Department of Physics & Astronomy. 01:750:271 Honors Physics I Fall Lecture 20 JJ II. Home Page. Title Page.

Chapter 2: Complex numbers

PHYSICS 210 SOLUTION OF THE NONLINEAR PENDULUM EQUATION USING FDAS

Homework #5 Solutions

Physics Mechanics. Lecture 32 Oscillations II

Chapter 14 Periodic Motion

Vibrations Qualifying Exam Study Material

Rotational Motion. Rotational Motion. Rotational Motion


The Damped Pendulum. Physics 211 Lab 3 3/18/2016

University Physics 226N/231N Old Dominion University. Chapter 14: Oscillatory Motion

CHAOS -SOME BASIC CONCEPTS

Name: Lab Partner: Section: Simple harmonic motion will be examined in this experiment.

Superposition & Interference

Ordinary Differential Equations

I. Vectors and Geometry in Two and Three Dimensions

SEAKEEPING AND MANEUVERING Prof. Dr. S. Beji 2

2.010 Fall 2000 Solution of Homework Assignment 1

Chapter 14 Oscillations. Copyright 2009 Pearson Education, Inc.

Transcription:

Driven, damped, pendulum Note: The notation and graphs in this notebook parallel those in Chaotic Dynamics by Baker and Gollub. (There's a copy in the department office.) For the driven, damped, pendulum, Newton's second law gives d 2 θ = sin θ γ + A cos( t), dt 2 ω 2 0 where ω 0 is the natural frequency of the low amplitude, undamped, and undriven pendulum, and ω d is the frequency of the drive. Using dimensionless variables in which time is measured in units of ω 1 0, i.e., t = ω 0 t, this equation reduces to where, ω d ω d ω 0, and g A/ω 2 0. In these units the period is 2π. (This is b γ/ω 0 / d 2 θ dt 2 essentially the parametrization of Baker and Gollub.) From this point on I will drop the primes, but retain the understanding that these are nondimensional quantities. Before doing the numerical integration I will break this up into two coupled first order equations: dθ dt ω d dθ dt ω d t = sin θ b + g cos( ), dθ dt dω dt = ω = bω sin θ + g cos( ω d t) These equations will be entered in the function eqs()below. In [1]: import scipy as sp from scipy import integrate # not included in basic scipy import matplotlib.pyplot as plt # ML finds plots too big, thus the customizations: plt.rcparams['figure.figsize'] = (6,4.5) # Change default size of plots plt.rcparams['font.size'] = 14 # Change default fontsize for figur plt.rcparams['figure.autolayout'] = True # Adjusts for changes # Following is an Ipython magic command that puts figures in the notebook. # For figures in separate windows, remove this command. %matplotlib notebook Differential Equations http://localhost:8888/notebooks/class/ph310/chaotic_pendulum.ipynb 1/7

In [2]: # Function returning derivatives of the dependent quantities u[0] # and u[1], or more physically in this case, theta and omega. def eqs(u,t,b,c,om_d): th = u[0] om = u[1] return (om,-sp.sin(th) - b*om + c*sp.cos(om_d*t)) Example of period doubling See Golub and Baker Fig. 3.4b Parameters These parameters result in period doubling; see graphs below. In [3]: th0 = 0.1 # Initial theta om0 = 0 # Initial angular velocity u0 = sp.array([th0,om0])# Combine initial conditions in array b = 0.5 # Damping parameter g = 1.07 # Driving amplitude om_d = 2./3 # Driving frequency Pick times for output, and solve DEs: Note: odeintreturns an array: [[th_0 om_0], [th_1 om_1], [th_2 om_2],... ] To get single list for thand single list for omwe need the transpose of the returned array. (Could also keep return as a single array if that's more useful down the road.) In [4]: # NOTE: The time points t selected for the output are not the # points used for the numerical evalution. t = sp.linspace(0,50*2.*sp.pi,50*201) th, om = sp.integrate.odeint(eqs,u0,t,args=(b,g,om_d)).t http://localhost:8888/notebooks/class/ph310/chaotic_pendulum.ipynb 2/7

In [5]: plt.figure(1) plt.plot(t,om) plt.plot(t,th) plt.axhline(0) plt.title("example of period doubling",fontsize=14) plt.xlabel("$t$") plt.ylabel("$\\theta(t)$ and $\omega(t)$"); # No idea why I need \\theta Figure 1 http://localhost:8888/notebooks/class/ph310/chaotic_pendulum.ipynb 3/7

In [6]: plt.figure(2) plt.xlabel("$\\theta$") plt.ylabel("$\omega$") plt.title("phase space",fontsize=14) tplot = 9000 plt.plot(th[tplot:],om[tplot:]); Figure 2 Example of chaos Same parameters as above, except for drive amplitude g. See Golub and Baker Fig. 3.4c In [7]: th0 = 0.1 # Initial theta om0 = 0 # Initial angular velocity u0 = sp.array([th0,om0])# Combine initial conditions in array b = 0.5 # Damping parameter g = 1.15 # Driving amplitude om_d = 2./3 # Driving frequency t = sp.linspace(0,50*2.*sp.pi,50*201) # NOTE: The points selected # for plotting are not the # points used for the numerical evalu th, om = sp.integrate.odeint(eqs,u0,t,args=(b,g,om_d)).t http://localhost:8888/notebooks/class/ph310/chaotic_pendulum.ipynb 4/7

In [8]: plt.figure(3) plt.plot(t,om) plt.plot(t,th) plt.axhline(0) plt.title("chaotic motion",fontsize=14) plt.xlabel("$t$") plt.ylabel("$\\theta(t)$ and $\omega(t)$"); # No idea why I need \\theta Figure 3 http://localhost:8888/notebooks/class/ph310/chaotic_pendulum.ipynb 5/7

In [9]: plt.figure(4) plt.xlabel("$\\theta$") plt.ylabel("$\omega$") plt.title("phase space",fontsize=14) tplot = 1000 plt.plot(th[tplot:],om[tplot:]); Figure 4 Back to previous view Poincare Section Simply choose points for output of numerical integration (in the linspace()function) that are multiples of the drive period: t n 2π = n. ω d In [19]: http://localhost:8888/notebooks/class/ph310/chaotic_pendulum.ipynb 6/7

In [22]: th0 plt.figure(5) = 0.1 # Initial theta om0 plt.xlabel("$\\theta$") = 0 # Initial angular velocity u0 plt.ylabel("$\omega$") = sp.array([th0,om0])# Combine initial conditions in array b plt.title("poincare = 0.5 # Damping section",fontsize=14) parameter g plt.scatter(th%(2*sp.pi),om,s=0.1); = 1.15 # Driving amplitude om_d = 2./3 # Driving frequency t_d = 2*sp.pi/om_d Figure 5 t = sp.linspace(0,1000*t_d, 1001) # NOTE: The points selected # for plotting are not the # points used for the numerical evalu th, om = sp.integrate.odeint(eqs,u0,t,args=(b,g,om_d)).t In [ ]: http://localhost:8888/notebooks/class/ph310/chaotic_pendulum.ipynb 7/7