4 Pages

lab5

Course: PHY 307, Fall 2008
School: Syracuse
Rating:
 
 
 
 
 

Word Count: 1487

Document Preview

5 Lab - Chaotic Dynamics Thursday 28 September, 2006 - Due: Thursday 05 October The aim of this lab is to explore some aspects of chaotic dynamics. First, we have another look at the Pendulum example presented in lecture. Then, we will study the Logistic Map, a simple but quite illustrative example of a chaotic dynamical system. As always, please include in your writeup any sections of Python code you write. 1...

Register Now

Unformatted Document Excerpt

Coursehero >> New York >> Syracuse >> PHY 307

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
5 Lab - Chaotic Dynamics Thursday 28 September, 2006 - Due: Thursday 05 October The aim of this lab is to explore some aspects of chaotic dynamics. First, we have another look at the Pendulum example presented in lecture. Then, we will study the Logistic Map, a simple but quite illustrative example of a chaotic dynamical system. As always, please include in your writeup any sections of Python code you write. 1 Visualizing the Motion of a Pendulum First, let us revisit the model of a more realistic pendulum, under the influence of gravitation, of damping, and of a periodic driving force. Although the pendulum swings in a plane, the situation essentially reduces to a "one-dimensional problem" since the pivot point is fixed and the pendulum's length l is constant. In fancier terms, since there is "one degree of freedom", we have one "configuration variable", the "angular position" . (If you specify , we know how the pendulum is oriented.) So, as was said in lecture, this is [almost] mathematically identical to the 1D-problem we studied earlier: d g d = - sin () - k + F sin (D t) dt l dt d = dt The first equation relates the "angular acceleration" (the time-derivative of the "angular velocity" ) to the gravitational, damping, and driving forces. The second equation expresses the "angular velocity" as thee time-derivative of the angular position. I said "almost" above because the 2-periodicity associated with the "angular position". We'll see this treated in the code below. So, we can reuse the earlier code... either by renaming a bunch of variables, or by keeping the names, but changing the physical interpretation of those variables. To minimize the changes we'd have to make, let's keep the names... but let's make comments to remind us of what we did. Refer to lab5 2pendula.py , which is a commented version of the code shown in class. The key interpretation to keep in mind is that the variable pos.x represents the pendulum's angular position . Execute lab5 2pendula.py . Recall from lecture that we are plotting as functions of time the differences in angular position and angular velocity between two pendula with nearly identical initial conditions. With various choices of the driving force amplitude F (say, F = 0.5, F = 1.2, and F = 1.35), we saw plots of the differences. It might be nice to see a more realistic visualization of the motions of each pendulum. That's what you are going to do. () Create a visualization of each pendulum. (We'll help you with this below.) We want our VPython display back on. So, replace scene.visible=0 with scene=display(visible=1, x=0, y=400, width=400, height=400, autoscale=0, range=3) Since we have just turned on the display with its visible=1 parameter, we need to hide the spheres ball1 and ball2 with their own visible=0 . (Realize that we need them to exist since they represent angular positions for us. However, we don't want to display them.) Now, let's visualize in Pendulum 1. Before the while loop, insert box ( pos =(0 ,0 ,0) , axis =(0 ,0 ,1) , length =0.5 , width =0.5 , height =0.5) theta1 = ball1 . x pendulum1 = sphere ( pos = vector ( sin ( theta1 ) , - cos ( theta1 ) , -.25) , radius =.2 , color = color . red ) rod1 = curve ( pos =[ vector (0 ,0 , -.25) , pendulum1 . pos ] , color = pendulum1 . color ) force1 = arrow ( axis = vector (0 ,0 ,0) , color = pendulum1 . color ) For clarity, we use a new variable theta1 to remind us that we really are dealing with an angular position. Now, we draw a red small-radius sphere called pendulum1 that will travel on a circle of radius l = 1, sitting in the plane z = -0.25. The trig functions were chosen so that " = 0" is downward and is positive in the counterclockwise direction from our viewpoint. A radius called rod1 is drawn from the center of the circle to pendulum1 . Finally, we set up an arrow called force1 that will be drawn later. Now, inside the while loop, near the end of the block, we need to update the positions and directions with the values we just computed in the while loop. theta1 = ball1 . x pendulum1 . pos = vector ( sin ( theta1 ) , - cos ( theta1 ) , -.25) rod1 . pos [1]= pendulum1 . pos force1 . pos = pendulum1 . pos force1 . axis =( a1_initial . x + a1_final . x )*0.5* vector ( cos ( theta1 ) , sin ( theta1 ) ,0) Note that rod1.pos[1] [the second element, with index "1", in that curve's pos array] is set to the current position of the pendulum1. The first element, with index "0", holds the fixed center of the pendulum's circle. Note that, in force1.axis , the signed-size the of net tangential force on the pendulum is given by (a1 initial.x+a1 final.x)*0.5 , and the forward direction is given by a unit vector that is tangent to the circle. Define the corresponding elements theta2 , pendulum2 , rod2 , and force2 for the second pendulum, a green pendulum traveling on a circle on the plane z = +0.25. Within the while loop, you must include the corresponding update statements. (Q1) Include your completed Python program and a screen capture when the two pendula have diverged, which indicates "a sensitivity to initial conditions". 2 The Logistic Map xn+1 = 4r xn (1 - xn ) with 0 xi 1 and 0 < r 1. We are going to consider the following dynamical model This could be thought of like the integrator methods (Euler, etc.) that we have used, with dt = 1. According to Wikipedia, this model was introduced by the mathematician P.F. Verhulst (1838) in the context of "population dynamics" and popularized by the biologist R. May (1976). The constant "4" is chosen out of convenience. [When x0 starts within [0, 1], it turns out that the subsequent xn 's stay within [0, 1] as long as 4r was chosen within (0, 4], or more conveniently, r was chosen within (0, 1].] Let's study the behavior of this model. Open lab5 logistic a.py and run it. This program features an example of "formatted printing". info is a string that will have two values from a "tuple" [in this case, an ordered pair] of values substituted into a format string. %8.6f means "in 8 character spaces, display the value as floating-point value with 6 decimal places" Keeping r fixed at 0.20000, observe the behavior of the system for at least FOUR (4) choices of the starting value of x in the open range (0, 1). Make use of the graph and of the numbers printed in the shell window. Briefly describe what you observe. Repeat for r = 0.10000. With r to 0.30000, observe the behavior of the system for at least FOUR (4) choices of x in the open range (0, 1). Briefly describe what you observe. What is the x-value (call it x ) that each sequence appears to converge to? Open lab5 logistic varying x.py . Here, we've used a for -loop over a Python-list of starting x -values in order to take out the tedium of changing the starting values of x . Note how we indented the entire block that is to be executed for each x . (Q2) (Q3) (Q4) Use this program to complete this table: r x 0.3 0.4 0.5 When the table is complete, summarize what you observed. 0.6 0.7 0.8 (At home) Can you determine a formula for x in terms of r using the values for 0.3 r 0.7? Hint: for these r's, try to approximate x as a ratio of two integers. In order to better understand what is happening for r = 0.8, return to lab5 logistic a.py and m...

Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Syracuse - PHY - 307
Lab 7 - PercolationThursday 12 October, 2006 - Due: Thursday 19 October The aim of this lab is (1) to get you familiar with the computational implementation of a lattice and (2) to become familiar with some of the concepts in percolation. As for the
Syracuse - PHY - 307
Lab 6 - Fractal DimensionThursday 05 October, 2006 - Due: Thursday 12 October We will take a closer look (pun intended) at the self-similar Sierpinski Triangle. Then, youll modify the parameters of the dynamical model to obtain a dierent fractal. Fi
Syracuse - PHY - 307
Homework 6Due: Thursday 12 October In this homework you will investigate another discrete time nonlinear dynamics the Henon map. It is similar to the Sierpinski map as it involves two dynamical variables x and y. The update equation is xn+1 = yn +
Syracuse - PHY - 307
Lab 3 - Modeling the Solar System (part I)Thursday 14 September, 2006 - Due: Thursday 21 September The aim of this lab is to get you started with the construction of a solar system, using some of the ideas that you have already been introduced to. I
Syracuse - PHY - 307
Homework 3Due: Thursday 21 September 1. In Lab3 you constructed a table showing the error in the energy of a harmonic oscillator as a function of the time step dt for the Euler algorithm. In lecture 3 we discussed an improved algorithm the leapfrog
Syracuse - PHY - 307
Homework 21. Cut/paste the code for the projectile problem discussed in class (note: that listing is not quite complete: you will need to look at earlier codes to see how to access the 3D environment and how to set the scaling and range). 2. Modify
Syracuse - PHY - 307
Lec2 - mechanics and simple simulation Newtons laws, Euler method 1D and 2D examples: projectiles, harmonic motion, damping Simulation code and graphics More on functions1Newtons lawsOne particle, one dimension: dx = v dt dv = a = F/m dt
Syracuse - PHY - 307
Homework 11. Tabulate the values of the symmetric dierence approximation to the derivative for the functions f = sin x at x = 0.1 and f = x2 for x = 2 using step sizes h = 0.1, 0.01, 0.001, 0.0001. You may simply edit the Python program given in cla
Syracuse - PHY - 307
Homework 10Due: Thursday 9 November Choose a topic for your class project. Hand in the title of your topic together with a brief (one paragraph) description of what you intend to do. Please see me if you would like help choosing a topic.1
Syracuse - PHY - 307
Homework 4Due: Thursday 28 September For this homework you will use your codes solar.py and integrator.py from lab4 to investigate the motion of a object near a black hole (or any object with a strong gravitational field). In this case the leading c
Syracuse - PHY - 307
Lec10 Self-organized critical phenomena Earthquakes, sand piles1Self-similarity and criticalityWe have so far seen several examples of systems which exhibit power law behavior eg. Fractal dimensions. Number of cells needed to cover points o
Syracuse - PHY - 307
Lec11 Earthquakes a more realistic model1Recap Last week we discussed a very simplified model for understanding the statistics of Earthquakes how many Earthquakes occur of a certain magnitude. Saw that the dynamics led to self-organized cri
Syracuse - PHY - 307
Mercury's Orbital PrecessionBy Gavin HartnettEllipses Planetary Orbits are ellipses Earlier lab simplified these orbits to circles planet moves faster near the sun Perihelion-closest point to sun Aphelion-farthest Two foci-Sun is located at
Syracuse - PHY - 307
Newton's Cradle in Actionor The Mechanics of a ToyThe Physics A Newton's Cradle generally consists of: two or more massive (spherical) bodies whose motions are physically restricted to circular paths; and an equal number of pendula fixed at one e
Syracuse - PHY - 307
The Transition to the Jamming ClusterWhat is a jamming cluster? The point at which a percolating network of forces &quot;solidifies&quot;. The jamming cluster is most likely to occur in a system made of many smaller pieces of matter (like sand). When a sy
Syracuse - PHY - 307
List of project topics: 1. Precession of Mercurys perihelion due to General Relativity. An extension of an earlier homework problem. To the usual inverse square gravitational force add a term r4 . Compute the rate of rotation of the resulting ellipt
Syracuse - PHY - 307
Lec4 Many particles - Newtonian gravity Solar system simulations1Inverse law Newtons Law of Universal Gravitation: Between two bodies with (gravitational) masses Ma and Mb distance r apart there is a force of attraction acting along their r
Syracuse - PHY - 307
Lab 4 - Modeling the Solar System (part II)Thursday 21 September, 2006 - Due: Thursday 28 September The aim of this lab is to continue development of the solar system model we started in lab3. In this lab we continue with our discussion in lecture b
Syracuse - PHY - 212
Lecture 5.1Copyright 2008 Pearson Education, Inc., publishing as Pearson Addison-Wesley.Review of Last LectureElectric FluxCopyright 2008 Pearson Education, Inc., publishing as Pearson Addison-Wesley.Conductors in Electrostatic Equilibrium
Syracuse - PHY - 212
Syracuse - PHY - 212
Phy212 - Spring 2007 Mid Term Exam 3 (100pts + 20pts extra credits) April 5, 2007 Name_Don Bunk: Steluta Dinca: Renata Jora: 10:35am, 2:15pm, 8:25am, 11:40am, 12:45pm, 9:30am, 5:15pm 3:45pm 10:35amPlease write your name on the line above and circl
Syracuse - PHY - 212
PRS RF Student Clicker/RemoteTwo line display for indicating response and status of receiptPRS rfScroll KeysSend/EnterBackspace Setup KeyAlpha, Numeric and T/F Keys Diagnostics include Battery level %AAA batteries used to keep future cost
Syracuse - PHY - 212
AnnouncementA new lab session for phy222 is open nowM011 Wednesday 6:00-8:00 PM Class # 34159Copyright 2008 Pearson Education, Inc., publishing as Pearson Addison-Wesley.Review of Last Lecture: Charge Model1. Objects can be charged by rubbing
Syracuse - PHY - 212
Phy212 - Spring 2007 Mid Term Exam 1 (100pts) Name_Don Bunk: 10:35am, 11:40am, 5:15pm Steluta Dinca: 10:35am, 12:45pm, 3:45pm Renata Jora: 8:25am, 9:30am, 2:15pmPlease write your name on the line above and circle your workshop section (both TA an
Syracuse - PHY - 212
Syracuse - PHY - 212
!&quot;#$%#! &amp;'()*+! &quot;#$%&amp;!'(%!)&amp;*+',-!+)(%.%+!*+!)#,/'!-(*.0%+1!,-./0*-1)+2 !! ! 3'*4)+! 506!2(%!-(*.0%!3!&quot;4515!/6!%7%.'+!*!8#.-%! &quot;3!#/!9 #/!9!&quot;4515!/6!'#!'(%!.,0(':!*/$!'(%!-(*.0%!9!%7%.'+! ! *!8#.-%! &quot;9!#/!3 !#/!3!'#!'(%!&amp;%8'1!;+,/0!6#&lt;&amp;#=&gt;?+!&amp;*@:!
Syracuse - PHY - 212
Syracuse - PHY - 212
Consider the arrangement of two positive charges shown in the figure. Give your answers below in terms of Q, a, and universal constants. Choose a coordinate system and indicate the direction of any vector with respect to this coordinate system.A a
Syracuse - PHY - 212
Syracuse - PHY - 212
Syracuse - PHY - 212
Syracuse - PHY - 212
Syracuse - PHY - 212
Syracuse - PHY - 212
Syracuse - PHY - 212
Syracuse - PHY - 212
Syracuse - PHY - 212
Phy212 - Spring 2007 Mid Term Exam 2 (100pts) Name_Don Bunk: Steluta Dinca: Renata Jora: 10:35am, 2:15pm, 8:25am, 11:40am, 12:45pm, 9:30am, 5:15pm 3:45pm 10:35amPlease write your name on the line above and circle your workshop section (both TA and
Syracuse - PHY - 211
Welcome back to Physics 211Todays agenda: Midterm #1 Thursday 9/25 Finish Chapter 2!Physics 211 Fall 2008Lecture 03-2Construct a Velocity Graph from a Motion Diagram Demo Stand still, walk away slowly at constant speed for 2 s, stand still
Syracuse - PHY - 211
Welcome back to Physics 211Today's agenda: Work and kinetic energy Scalar product of vectors Finish circular motion .Physics 211 Fall 2005Lecture 07-11Reminder etc Tutorial HW5 due wed. (N's 2nd and 3rd laws) MPHW4 available noon Fr
Syracuse - PHY - 211
Welcome back to Physics 211Today's agenda: Ch. 12 Torque Rotational energy Rolling Angular momentum FHW15 11, 13, 29, 44, 45, 63, 64, 69, 70, 71 Final Exam Monday 12/8/2008 10:15 12:15 StolkinPhysics 211 Fall 2008 Lecture 15-2 1Rotations about
Syracuse - PHY - 211
Welcome to Physics 211!(General Physics I)Physics 211 Fall 2002Lecture 01-11SU PHY211 Course staff:General Physics IFall 2002 Lecturer: Prof. Simon Catterall Workshop instructors: Joshua Dalrymple Steluta Dinca Renate Jora Jyothi
Syracuse - PHY - 211
Welcome back to Physics 211Todays agenda: Rotational Dynamics Kinetic Energy Angular MomentumPhysics 211 Fall 2005Lecture 11-21Reminder Exam 3 in class Thursday, November 17 elastic energy, linear momentum, collisions, center of mass, e
Syracuse - PHY - 101
OutlineMotionPHY 101 Lecture #2: MotionProf. Peter R. Saulson saulson@physics.syr.eduhttp:/physics.syr.edu/courses/PHY101/ Off. Hrs: Tue 9:30 11:30, Physics 263-4PHY 101 Lecture #2 Motion 1How to measure it Position Velocity AccelerationMec
Syracuse - PHY - 101
PHY 101 Lecture #3: MotionPHY 101 Lecture #3Motion1OutlineMotionHow to measure it Position Velocity AccelerationPHY 101 Lecture #3Motion2Motion of massive bodiesMatter in motion: the most fundamental situation described in physics
Syracuse - PHY - 344
Advanced Physics Laboratory Experiment 4January 2005MEASUREMENT OF THE MUON LIFETIME PURPOSE Learn about cosmic rays Understand the concept of a particles lifetime Apply statistical analyses to a real problem1)IntroductionInterstellar par
Syracuse - PHY - 344
January 2007Nuclear Magnetic Resonance DRAFTPhy 462Introduction: Nuclear magnetic resonance (NMR) is an important experimental technique in many scientific disciplines. In the presence of an external static magnetic field, nuclear spins will a
Syracuse - PHY - 222
V.DC CIRCUITS= = = = = = = = = = = = = = = = = = =f05.01INTRODUCTION DC stands for &quot;direct-current&quot;. A direct current stays the same in magnitude and does not change its direction. Ohm's Law and the rules for effective resistance of resistors c
Syracuse - AST - 104
Name: Partner: Partner:Lab 2: Finding Objects in the SkyThis lab uses a Field Guide to help you to answer questions like: Where is your Piece of Sky (POS)? What will the sky look like tonight? Is (such and such an object) above the horizon right
Syracuse - CLIN - 24
Video Rodeo Movie StorebyChi-Shia LinAdvance Database Oracle David Dischiave Fall 2005Business Problems and SolutionsThe owner of the Video Rodeo Movie Rental Store recently expanded the size and locations of store. Due to the extension, t
Syracuse - SKIM - 35
Group Topic: ( Economy and P2P F ile Sharing )Team Leader: ( Jae Hong Park) Name email Phones Roles Peer EvaluationK im, SylviaJuyounkim87@Hotmail.com 395-1470Web Design &amp; Secondary Information Search. Article Secondary Data Researching Web De
Syracuse - PPSN - 2004
Self-Organizing Lightweight Agents for Large-Scale Real-Time Systems SchedulingDerek Messie and Jae C. OhDepartment of Electrical Engineering and Computer Science Syracuse University, Syracuse, NY 13244, USA dsmessie@syr.edu, jcoh@ecs.syr.eduAbst
Syracuse - PPSN - 2004
Emergent Search in Large Distributed SystemsSergio Camorlinga1, and Ken Barker21Computer Science Department, University of Manitoba, Winnipeg MB, R3T 2N2 Canada sergio_camorlinga@sbrc.ca 2 Computer Science Department, University of Calgary, Calga
Syracuse - PPSN - 2004
Evolving Small-World Automata for the Majority ProblemMarco Tomassini, Mario Giacobini, and Christian DarabosInformation Systems Department, University of Lausanne, Switzerland {marco.tomassini, mario.giacobini, christian.darabos}@unil.chAbstract
Syracuse - PPSN - 2004
The Conflict between Emergent Behaviours and Predictability in Distributed ComputingRogrio de LemosComputing Laboratory - University of Kent, UKMotivation Process and data representation Artificial immune systems Architectural exception handling
Syracuse - MAR - 356
MAR 356Marketing ResearchModule 3Introduction Module 3 starts with the different methods for describing the characteristics of a population. In describing a population the different types of descriptive data are explained as well as how they are
Syracuse - MAR - 356
MAR 356Marketing ResearchModule 13Introduction Before a company launches a product, service or promotion, they might want to test the waters on how consumers will react to a product. Companies are interested in what customers like, dislike and wh
Syracuse - MAR - 356
MAR 356Marketing ResearchModule 5Introduction Module 5 starts to examine the specifics of survey design and construction. The module beings by outlining the steps in questionnaire design. Surveys can be used to collect different types of informat
Syracuse - MAR - 356
MAR 356Marketing ResearchModule 14Introduction Perceptual mapping is a tool that helps market researchers visually represent customers perceptions of products, attributes, brands, promotions or services. Perceptual maps usually involve two scales
Syracuse - MAR - 356
MAR 356Marketing ResearchModule 4Introduction Module 4 focuses on the collection of primary data (i.e. data that you as the research collect from consumers). The specific method we focus on is survey research including the factors to consider in
Syracuse - IDE - 600
Day 07/07/08 (Both)Module 1Content What is Web 2.0? Readings (tentative access via class wiki) O'Reilly - What is the Web 2.0? Seely Brown - Minds on Fire Web 2.0: Helping Reinvent Education Web 2.0: New Tools for Distance Learning Cre
Syracuse - MAR - 356
MAR 356Marketing ResearchModule 10Introduction In Module 9 we explored the different methods for summarizing and describing our data. But what if we are interested in the relationship between two variables? If we change one variable (x) does anot