MA/CS 375 Fall 20021 MA/CS 375 Fall 2002 Lecture 12.

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

The Beginning of Modern Astronomy
Gravitation Ch 5: Thornton & Marion. Introduction Newton, 1666 Published in Principia, 1687 (needed to develop calculus to prove his assumptions) Newton’s.
Introduction.
WEIGHT The weight of a body is the Weight (a quantity) is different from mass (a quantity). The weight of a body varies with its location near the Earth.
Survey of the Universe Tom Burbine
Distance The length an object actually travels. How far you go. Scalar Displacement The change in position of an object. Length between start and finish.
Chapter 4 Making Sense of the Universe: Understanding Motion, Energy, and Gravity.
Chapter 13: Kinetics of a Particle: Force and Acceleration.
Chapter 4 Making Sense of the Universe: Understanding Motion, Energy, and Gravity.
How Newton Unified the Motions of the Moon, Sun, and Apples.
How Do You Describe Force and the Laws of Motion? Newton’s Laws of Motion They describe the relationship between a body and the forces acting upon it,
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 13.
Circular Motion; Gravitation
Part 4 Newton’s Second Law of Motion Newton’s Second Law Acceleration is the rate at which your velocity (speed with direction) changes.
Gravity & orbits. Isaac Newton ( ) developed a mathematical model of Gravity which predicted the elliptical orbits proposed by Kepler Semi-major.
Newton’s Law of Universal Gravitation
Physics Chapter 9 - Gravity
Kinetic Energy, Work, Power, and Potential Energy
Chapter 9 Numerical Integration Flow Charts, Loop Structures Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ISAAC NEWTON’S PHYSICS PRINCIPLES. WHAT NEWTON DID When it comes to science, Isaac Newton is most famous for his creation of the THREE LAWS OF MOTION.
Mechanics Unit 5: Motion and Forces 5.6 Motion in one Dimension - Speed and Velocity, Acceleration...
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 31.
Apples and Planets PTYS Feb List of Symbols F, force a, acceleration (not semi-major axis in this lecture) v, velocity M, mass of Sun m,
Gravitation. Gravitational Force and Field Newton proposed that a force of attraction exists between any two masses. This force law applies to point masses.
Acceleration is the rate of change of velocity. Acceleration is a vector.
Laws of Motion Forces: chapter st Law An object at rest remains at rest and an object in motion maintains its velocity unless it experiences an.
MOTION & FORCES VOCABULARY MOTION The process of continual change in the physical position of an object (distance) relative to reference point ; With.
Advanced Computer Graphics Rigid Body Simulation Spring 2002 Professor Brogan.
Introduction to Physical Science Monday, Wednesday, Thursday Tom Burbine
Chapter 6 Gravitation and Newton’s Synthesis HW5: Chapt 6: Pb. 11, Pb. 24, Pb. 25 and Chapt. 7: Pb 6, Pb.11, Pb. 16, Pb.19, Pb. 21 –Due Friday, Oct. 9.
Proportionality between the velocity V and radius r
Topic 6: Fields and Forces 6.1 Gravitational force and field.
Topic 6: Fields and Forces 6.1 Gravitational force and field.
Circular Motion. If the object is changing directions, there must be acceleration. This means there is an force causing the acceleration. Since the.
CHAPTER 5. Uniform circular motion is the motion of an object traveling at a constant speed on a circular path. If T (period) is the time it takes for.
A New Era of Science Mathematics as a tool for understanding physics.
Universal Law of Gravitation. So because of Newton’s 3 rd law every body in the universe exerts a force of attraction on every other body. This is Newton’s.
1 Two of Newton’s Law of Motions 1) In the absence of any forces applied, an object at rest will stay at rest, and a body moving at a constant velocity.
What is the centripetal force acting on a 2000 kilogram airplane if it turns with a radius of 1000 meters while moving at 300 meters per second? a c =
Celestial Mechanics I Introduction Kepler’s Laws.
Physics In Motion 1-D Kinematics Aristotle’s Notion of Motion  All objects will remain at rest unless an external force is acted upon them. If an.
Newton's Law of Universal Gravity Gravity is the force of nature that attracts one mass to another mass. Gravity holds you on the Earth, causes apples.
General Physics I Lecturer: Rashadat Gadmaliyev Lecture 4: Dynamics; Force, Newton’s Laws.
Dynamics. The laws and causes of motion were first properly formulated in the book _________ by ____________ ___________ in the year __________. These.
PHY 151: Lecture Mass 5.4 Newton’s Second Law 5.5 Gravitational Force and Weight 5.6 Newton’s Third Law.
Basic Mechanics. Units Velocity and Acceleration Speed: Time rate of change of position. Velocity: Speed in a specific direction. Velocity is specified.
Newton’s Law of Gravitation Definition of Newton’s Law of Gravitation: The gravitational force between two bodies is directly proportional to the product.
Introduction.
Newton’s law of Universal Gravitation
Example problem: Halley’s comet has an orbital period of 76 years and its furthest distance from the Sun is 35.3 AU. How close does Halley’s comet come.
s= mt+constant where m=Ds/Dt i.e., speed
Newton’s Law of Gravity
CE 102 Statics Chapter 1 Introduction.
Introduction.
Newton’s Laws of Motion
Chapter 1 - General Principles
Introduction.
UNIT 3 gravitation.
Isaac Newton ( ) Newton’s Laws of Motion
Introduction.
Introduction.
Universal Gravitation
Forces.
Universal Gravitation
Newton’s Law of Universal Gravitation
Introduction.
Universal Gravitation
Newton’s Law of Universal Gravitation
Presentation transcript:

MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 12

MA/CS 375 Fall Office Hours My office hours –Rm 435, Humanities, Tuesdays from 1:30pm to 3:00pm –Rm 435, Humanities, Thursdays from 1:30pm to 3:00pm Tom Hunt is the TA for this class. His lab hours are now as follow –SCSI 1004, Tuesdays from 3:30 until 4:45 –SCSI 1004, Wednesdays from 12:00 until 12:50 –Hum 346 on Wednesdays from 2:30-3:30

MA/CS 375 Fall This Lecture Solving Ordinary Differential Equations (ODE’s) Accuracy Stability Forward Euler time integrator Runge Kutta time integrators Newton’s Equations

MA/CS 375 Fall Ordinary Differential Equation Example: t is a variable for time u is a function dependent on t given u at t = 0 given that for all t the slope of us is –u what is the value of u at t=T

MA/CS 375 Fall Ordinary Differential Equation Example: we should know from intro calculus that: then obviously:

MA/CS 375 Fall Just in Case You Forgot How… ok if u!=0 ok if u>0 integrate in time Fundamental theorem of calculus

MA/CS 375 Fall Family of Solutions u(0)=4 curve u(0)=-4 curve t u(t)

MA/CS 375 Fall Forward Euler Numerical Scheme There are many ways to figure this out on the computer. Simplest first. We discretize the derivative by

MA/CS 375 Fall Forward Euler Numerical Scheme Numerical scheme: Discrete scheme: where:

MA/CS 375 Fall Stability of Forward Euler Numerical Scheme Discrete scheme: The solution at the n’th time step is then:

MA/CS 375 Fall Stability of Forward Euler Numerical Scheme The solution at the n’th time step is then: Notice that if then |u n | is going to get very large very quickly !!. This is clearly not what we want for an approximate solution to an exponentially decaying exact solution.

MA/CS 375 Fall Stable Approximations 0<dt<1 dt dt=0.5 dt=0.25 dt=0.125

MA/CS 375 Fall Stable But Oscillatory Approximations 1<=dt<2 dt=1.25 dt=1.5

MA/CS 375 Fall Unstable (i.e. Bad) Approximations 2<dt dt=4.5 dt=3 dt=2.5

MA/CS 375 Fall Summary of dt Stability 0 < dt <1 stable and convergent since as dt  0 the solution approached the actual solution. 1 <= dt < 2 bounded but not cool. 2 <= dt exponentially growing, unstable and definitely not cool.

MA/CS 375 Fall Accuracy of the Forward Euler Scheme Next lecture

MA/CS 375 Fall Application: Newtonian Motion

MA/CS 375 Fall Two of Newton’s Law of Motions 1) In the absence of forces, an object ("body") at rest will stay at rest, and a body moving at a constant velocity in straight line continues doing so indefinitely. 2) When a force is applied to an object, it accelerates. The acceleration a is in the direction of the force and proportional to its strength, and is also inversely proportional to the mass (m) being moved. In suitable units: F = ma with both F and a vectors in the same direction (denoted here in bold face).

MA/CS 375 Fall Newton’s Law of Gravitation Gravitational force: an attractive force that exists between all objects with mass; an object with mass attracts another object with mass; the magnitude of the force is directly proportional to the masses of the two objects and inversely proportional to the square of the distance between the two objects.

MA/CS 375 Fall Real Application You can blame Newton for this: Consider an object with mass m t = time m = mass of object F = force on object a = acceleration object x = location of object v = velocity of object

MA/CS 375 Fall Two Gravitating Particle Masses m1m1 m2m2 Each particle has a scalar mass quantitiy

MA/CS 375 Fall Particle Positions x1x1 x2x2 (0,0) Each particle has a vector position

MA/CS 375 Fall Particle Velocities v1v1 v2v2 Each particle has a vector velocity

MA/CS 375 Fall Particle Accelerations a1a1 a2a2 Each particle has a vector acceleration

MA/CS 375 Fall Definition of ||.|| 2 In the following we will use the following notation: Formally the function ||x|| 2 known as the Euclidean norm of x. It returns the length of the vector x

MA/CS 375 Fall Two-body Newtonian Gravitation Two objects of mass M 1 and M 2 exert a gravitational force on each other: where G is the gravitational constant. Force exerted by mass 2 on 1: Force exerted by mass 1 on 2:

MA/CS 375 Fall Newtonian Gravitation Newton’s second law (rate of change of momentum = force on body) :

MA/CS 375 Fall Newtonian Gravitation Acceleration:

MA/CS 375 Fall Newtonian Gravitation Using velocity:

MA/CS 375 Fall N-Body Newtonian Gravitation For particle n out of N The force on each particle is a sum of the gravitational force between each other particle

MA/CS 375 Fall N-Body Newtonian Gravitation Simulation Goal: to find out where all the objects are after a time T We need to specify the initial velocity and positions of the objects. Next we need a numerical scheme to advance the equations in time. Can use forward Euler…. as a first approach.

MA/CS 375 Fall Numerical Scheme For m=1 to FinalTime/dt For n=1 to number of objects End For n=1 to number of objects End

MA/CS 375 Fall planets1.m Matlab script I have written a planets1.m script. The quantities in the file are in units of –kg (kilograms -- mass) –m (meters – length) –s (seconds – time) It evolves the planet positions in time according to Newton’s law of gravitation. It uses Euler-Forward to discretize the motion. All planets are lined up at y=0 at t=0 All planets are set to travel in the y-direction at t=0

MA/CS 375 Fall Parameters Object masses: Mean distances from sun:

MA/CS 375 Fall Initial velocities of objects:

MA/CS 375 Fall Set dt: Time loop: Calculate acceleration: Advance X,Y,VX,VY Plot the first four planets and the sun end Time loop

MA/CS 375 Fall Mercury Venus Earth

MA/CS 375 Fall Mercury Venus Earth Mercury has nearly completed its orbit. Data shows 88 days. Run for 3 more days and the simulation agrees!!!. Sun

MA/CS 375 Fall Team Exercise Get the planets1.m file from the web site This scripts includes: –the mass of all planets and the sun –their mean distance from the sun –the mean velocity of the planets. Run the script, see how the planets run! Add a comet to the system (increase Nsphere etc.) Start the comet out near Jupiter with an initial velocity heading in system. Add a moon near the earth. Extra credit if you can make the comet loop the sun and hit a planet

MA/CS 375 Fall Next Lecture More accurate schemes More complicated ODEs Variable time step and embedded methods used to make sure errors are within a tolerance.