Computer Model of Spring-Mass System. Q1: Can a computer model of a mass-spring system, based on the finite-time form of the momentum principle

Similar documents
Computer Model of Spring-Mass System, Part 3 of Springs Lab

1 Newton s 2nd and 3rd Laws

Modeling the Motion of a Projectile in Air

Calculating and displaying the magnetic field of a single moving charged particle

VPython Class 2: Functions, Fields, and the dreaded ˆr

Calculations to predict motion or move objects (done repetitively in a loop)

Energy Whiteboard Problems

Changes in Energy and Momentum


Your Second Physics Simulation: A Mass on a Spring

Summary of Chapters 1-3. Equations of motion for a uniformly accelerating object. Quiz to follow

Summary of Chapters 1-3. Equations of motion for a uniformly acclerating object. Quiz to follow

Introduction. Pre-Lab Questions: Physics 1CL PERIODIC MOTION - PART II Spring 2009

Introduction. Pre-Lab Questions: Physics 1CL PERIODIC MOTION - PART II Fall 2009

AP Physics C 2015 Summer Assignment

Simple Harmonic Oscillator Challenge Problems

DEVIL CHAPTER 6 TEST REVIEW

Overview In chapter 16 you learned how to calculate the Electric field from continuous distributions of charge; you follow four basic steps.

2013 Purdue University 1

Representations of Motion in One Dimension: Speeding up and slowing down with constant acceleration

Lab 4: Gauss Gun Conservation of Energy

This assignment is worth 20 points. Each part is worth 1 point, except for the last problem, in which each part is worth half a point.

You will return this handout to the instructor at the end of the lab period. Experimental verification of Ampere s Law.

Chapter 13. Simple Harmonic Motion

EXPERIMENT 6: COLLISIONS

AP Physics C Summer Assignment Kinematics

Name: Section #: Date: The Pendulum

Lab/Demo 5 Periodic Motion and Momentum PHYS 1800

CME Conservation of Mechanical Energy revised May 25, 2017

How to work out really complicated motion. Iteration and Problem Solving Strategies. Let s go. Vertical spring-mass.

EXPERIMENT 7: ANGULAR KINEMATICS AND TORQUE (V_3)

End-of-Chapter Exercises

Name Lesson 7. Homework Work and Energy Problem Solving Outcomes

Union College Winter 2013

2. How will we adjust our fitting procedure to compensate for fact that the acceleration differs depending on the direction of motion?

Matter & Interactions I Fall 2016

1. In part (a) of the figure, an air track cart attached to a spring rests on the track at the position x equilibrium and the spring is relaxed.

The Spring-Mass Oscillator

Conservation of Momentum

Work, energy, power, and conservation of energy

PHY 221 Lab 9 Work and Energy

Name: Lab Partner: Section:

Static and Kinetic Friction

Speed of waves. Apparatus: Long spring, meter stick, spring scale, stopwatch (or cell phone stopwatch)

AP Physics Free Response Practice Oscillations

Measuring Impulse and Momentum Change in 1 Dimension

LAB 3: WORK AND ENERGY

Good Vibes: Introduction to Oscillations

Chapter 4. Forces and Newton s Laws of Motion

Physics 180A Test Points

Lab 11 Simple Harmonic Motion A study of the kind of motion that results from the force applied to an object by a spring

Dynamics. Newton s First Two Laws of Motion. A Core Learning Goals Activity for Science and Mathematics

Question 8.1 Sign of the Energy II

(A) 10 m (B) 20 m (C) 25 m (D) 30 m (E) 40 m

LABORATORY IV OSCILLATIONS

AP PHYSICS 1. Energy 2016 EDITION

5. A car moves with a constant speed in a clockwise direction around a circular path of radius r, as represented in the diagram above.

When you throw a ball, increasing the speed of your hand increases the speed of the ball. Does the same apply to a wave pulse?

Lesson 8: Work and Energy

Forces and Newton s Second Law

Lab 2 Worksheet. Problems. Problem 1: Geometry and Linear Equations

Oscillations. Oscillations and Simple Harmonic Motion

Jumping Up. PY205m. apply the Energy Principle to the point particle system of the jumper, and

2: SIMPLE HARMONIC MOTION

Physics for Scientists and Engineers 4th Edition, 2017

Old Exam. Question Chapter 7 072

Phys122A-Lecture 2 Electric Field

Lab 14 - Simple Harmonic Motion and Oscillations on an Incline

EXAM 3 MECHANICS 40% of the final grade

Molecular Motion and Gas Laws

Name (please print): UW ID# score last first

Conservation of Momentum

PRELAB IMPULSE AND MOMENTUM

Center of Mass. Evaluation copy

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Physics Department. Physics 8.01 Fall Term 2006

PHY 123 Lab 9 Simple Harmonic Motion

Physics 4A Lab: Simple Harmonic Motion

A Question about free-body diagrams

Momentum & Collisions

B3 Relating Launch Speed and Range

AP1 WEP. Answer: E. The final velocities of the balls are given by v = 2gh.

PHYSICS 218 FINAL EXAM Fall, 2005 Sections

LAB 2 - ONE DIMENSIONAL MOTION

AP Physics C. Momentum. Free Response Problems

AP PHYSICS 1 UNIT 4 / FINAL 1 PRACTICE TEST

LAB PHYSICS MIDTERM EXAMINATION STUDY GUIDE

Energy Problem Solving Techniques.

Work and Energy Experiments

AP Physics 2 - Summer Assignment

PHY 221 Lab 5 Diverse Forces, Springs and Friction

Answer the following questions. Please, SHOW ALL YOUR WORK:

Charged objects in Conducting Fluids

Recall: Gravitational Potential Energy

Old Exams Questions Ch. 8 T072 Q2.: Q5. Q7.

Physics 1020 Experiment 5. Momentum

PHY 221 Lab 8. Momentum and Collisions: Conservation of momentum and kinetic energy

Circular Orbits for m << M; a planet and Star

Lab 13: Temperature and Thermodynamics

PHYSICS 221 SPRING EXAM 2: March 30, 2017; 8:15pm 10:15pm

School Date. Dynamics Freefall, Apparent Weight, and Friction (Honors)

Transcription:

QUESTIONS: Parts I, II (this week s activity): Computer Model of Spring-Mass System Q1: Can a computer model of a mass-spring system, based on the finite-time form of the momentum principle and using your measured data on the mass and spring you used in a previous experiment, accurately predict the oscillation period you measured in your experiment? Q2: What initial conditions must you specify in your program in order to get your virtual massspring system to oscillate in all three dimensions, instead of just staying in one plane? Parts III, IV (future activities): Q3: How does energy flow within the system? Δp = p f p i = F net Δt Q4: What modifications to the model can predict the effect of air resistance? If you are comfortable plunging into this project with only the preceding questions (and your previous experience) to guide you, go ahead. (Note that you will still need to be able to answer checkpoint questions.) Otherwise, turn the page and use this handout for guidance. 1

Planning (on paper) Work with your group to write out answers to the following questions on a whiteboard. 1. Force (freebody) diagram The picture at right shows a snapshot of a mass oscillating on a spring at a particular instant. The mass is moving at this instant. Consider the mass to be the system. 1.a List objects interacting with the system. 1.b Draw a freebody diagram showing all significant forces acting on the system at the instant shown in the picture. 2. Outline the iterative calculation to be done in the program Your program will have several sections. On your whiteboard, indicate what will need to be in each section. Don t write actual code just show what goes in each section. ## constants ## create objects ## initial values ## calculation loop -- calculations which must be repeated over and over For example, here is an outline for the spacecraft-earth program you wrote: ## constants G mass of spacecraft, mass of Earth ## create objects spacecraft, Earth (spheres) ## initial values momentum of spacecraft (a vector, calculated from mass and velocity) ## calculation loop (calculations that are repeated over and over) # calculate vector r (and magnitude and unit vector rhat) # calculate gravitational force on spacecraft by Earth # apply momentum principle; update momentum of spacecraft # update position of cart In the mass-spring program what quantities must be recalculated at each step? Compare your outline to that of another group. Did you leave anything out? 2

3. Calculating the spring force as a vector Consider the diagrams at right. When the spring is stretched as shown on the far right, the force on the ball due to the spring is directed along the spring, toward the point where the spring is attached to the ceiling. L 0 The vector L We define a vector L pointing from the attachment point (spring.pos) to the center of the ball (ball.pos), as shown in the right diagram. What is the VPython statement you need to calculate the vector L? L L = The direction of L is given by the unit vector Lˆ (Lhat). What is the VPython statement you need to calculate the unit vector Lˆ? Lˆ = The stretch is a scalar value, which in this case is positive, since the length of the spring is currently longer than its relaxed length. s = L L 0 For positive values of s, the spring force is in the direction of spring is: Lˆ (toward the ceiling). So the force on the ball due to the Fspring = ( k s s)lˆ = k s ( L L 0 )Lˆ For negative values of s, the spring is compressed, and the spring force is in the direction of Lˆ s is a negative number, the same equation describes the spring force: (away from the ceiling). Since Fspring = ( k s s)lˆ = k s ( L L 0 )Lˆ 3. Program shell In WebAssign you will find the shell of a program to use for this project. You will need to add code to the shell to create a running program that allows you to answer the questions at the beginning of this handout. 3.1 Save the shell in your own My Documents folder under a new name. 3.2 READ the code in the shell. Run the program shell. Be prepared to explain what each line does. 3.3 Put the data from your lab measurements into the program (mass, spring constant, relaxed length.) (You recorded these in WebAssign for a previous lab.) Where is the origin in your display? What do pos and axis mean for a helix object? (You can consult the online reference manual, or experiment with your program to find out.) What property of the object named spring will you change to adjust the length of the spring to match the position of the ball? For the online reference manual, pull down the Help menu in IDLE, choose Visual, then choose Reference manual. 3

4.1 Write the necessary code in your program to calculate the force on the ball due to the spring. (Does this calculation go inside the loop or before the loop? Why?) 4.2 Use this force in your calculation of the net force on the ball (what other force must you include?) 4.3 Apply the momentum principle 4.4 Update the position of the ball 4.5 Update the spring (alter it so it extends from the ceiling to the ball) Run your program. Does its behavior look reasonable? Does the mass oscillate up and down? Compare your program to that of another group. 5. Using a graph to answer Question 1 (page 1): Have your program produce a graph of the y-coordinate of the ball s position vs. time. Use this graph to determine the period of the oscillating system in your computer model. Here are some reminders on how to do this: This statement at the beginning of your program imports the graphing module: from visual.graph import * In the ##objects section of your program, create a gcurve object, for plotting the position of your ball ygraph = gcurve(color=color.yellow) Inside the loop, after updating the momentum and position of the ball, and the time, add the following statement: ygraph.plot(pos=(t, ball.pos.y)) As you might expect, this plots a point on a graph at a location given by t on the horizontal axis, and the y component of the position of the ball on the vertical axis. 5. Questions to answer about the period (related to Question 1 on page 1): Why doesn t the graph cross zero? What is the period of the oscillations shown on the graph? (You will find it easier to read the period off the graph if you change the while t<60: statement to make the program quit after a small number of oscillations.) How does the period of your model system compare with the period you measured for your real system? What does the analytical solution for a spring-mass oscillator predict for the period? Should these numbers be the same? If they are not, why not? Make the mass 4 times bigger. What is the new period? Does this agree with theory? (Afterwards, reset the mass to its original value.) Make the spring stiffness 4 times bigger. What is the new period? Does this agree with theory? (Afterwards, reset the spring stiffness to its original value.) Make the amplitude twice as big. (How?) What is the new period? Does this agree with theory? (Afterwards, reset the amplitude to its original value.) Write down the answers to these questions, since you will need them later. After comparing your program to that of another group, show your running program to a TA. The recorder should submit the program in WebAssign. Continue to next page for Question 2. 4

Part II: Q2 (Question 2 on page 1): What initial conditions must you specify in your program in order to get your virtual mass-spring system to oscillate in all three dimensions, instead of just staying in one plane? Instructions: 1. Comment out the y vs. time graph and save a new copy of your program with a new name. Make the ball leave a trail, so you can track its motion. You need two statements (see your orbit program): trail = curve(color=ball.color) ## before the loop trail.append(pos=ball.pos) ## at the end of the loop, after the position update Find initial conditions that produce oscillations not confined to a single plane. Zoom and rotate to make sure the oscillations are not planar. After comparing your program to that of another group, show your running program to a TA to get credit for Part II. You do not need to turn in this second program to WebAssign.. 5