Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ îðèãèíàëüíîãî äîêóìåíòà : http://www.mso.anu.edu.au/pfrancis/phys1101/Lectures/L08/Lecture08.pdf
Äàòà èçìåíåíèÿ: Tue Mar 8 13:54:48 2011
Äàòà èíäåêñèðîâàíèÿ: Tue Oct 2 14:21:27 2012
Êîäèðîâêà:

Ïîèñêîâûå ñëîâà: massive stars
Iteration
The general way to solve force/momentum problems

Tuesday, 8 March 2011


Course Reps

Tuesday, 8 March 2011


Forces and Motion

·

Before proceeding, we need to make sure we have a good understanding of forces and motion.

Tuesday, 8 March 2011


Clicker Question
A ball is thrown up into the air. Which of the following is a correct description of the forces acting on it?
1. A steadily decreasing upward force from the moment it leaves my hand until it reaches its highest point; on the way down there is a steadily increasing downward force of gravity. An almost constant downward force of gravity along with an upward force that steadily decreases until the ball reaches its highest point; on the way down there is only an almost constant downward force of gravity. An almost constant downward force of gravity only.

2.

3.

Tuesday, 8 March 2011


Answer
· ·

A constant downward force only. If you gave one of the other answers, you're probably confusing momentum with force.

Tuesday, 8 March 2011


Clicker Question
·
Which graph is an accurate one for a ball thrown upwards into the air?

Tuesday, 8 March 2011


The green line

·

The velocity changes at a constant rate

Tuesday, 8 March 2011


I throw a ball up into the air.
· Measure positive distance upwards. · Sketch graphs of:
­ Position vs. time ­ Velocity vs. time ­ Acceleration vs. time

Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Each graph is the gradient of the previous one

Tuesday, 8 March 2011


Slope is positive here

and negative here

Tuesday, 8 March 2011


So the value is positive here

And the slope is uniformly negative throughout

and negative here
Tuesday, 8 March 2011


So the value here is uniformly negative throughout

Tuesday, 8 March 2011


You can also go backwards
·
Integrate the curve to find the change in the next one

Tuesday, 8 March 2011


Start with acceleration

Area between zero and given time gives you the change in velocity up to this point.

Tuesday, 8 March 2011


Area up to here is positive, so the object has moved a net positive distance

And the slope is uniformly negative throughout

and negative here
Tuesday, 8 March 2011


+

-

But total area to here is zero, so it's back where it started in position
Tuesday, 8 March 2011


What was I doing here?
Acceleration!

0!

1!

2!

3!

4!

5!

6!

7!

8!

9!

10!

Time!
Tuesday, 8 March 2011


Walking into a wall...

·

Start at rest, accelerate for a bit, walk at a constant speed, then abruptly decelerate when I hit the wall.

Tuesday, 8 March 2011


What does real-world acceleration look like?
· I used the accelerometer on my iPhone to record my acceleration while driving one day (using the Accelgraph app).

Tuesday, 8 March 2011


0.30

0.23

Acceleration (g)

0.15

0.08

0

-0.08

-0.15 123456789 111315171921232527293133353739414345474951535557596163656769717375777981838587899193959799 101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698 100 Time

What was I doing?

Tuesday, 8 March 2011


0.30

0.23

Acceleration (g)

0.15

0.08

0

-0.08

-0.15 123456789 111315171921232527293133353739414345474951535557596163656769717375777981838587899193959799 101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698 100 Time

Sketch what graphs of velocity and position vs time would look like.
Tuesday, 8 March 2011


7.0000

5.2500

Velocity m/s

3.5000

1.7500

0 123456789 111315171921232527293133353739414345474951535557596163656769717375777981838587899193959799 101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698 Time

Tuesday, 8 March 2011


80.0000

60.0000

Distance (m)

40.0000

20.0000

0 123456789 111315171921232527293133353739414345474951535557596163656769717375777981838587899193959799 101214161820222426283032343638404244464850525456586062646668707274767880828486889092949698 Time

Tuesday, 8 March 2011


Question 6a
· A cart of a roller-coaster rolls down the track shown below. As the cart rolls beyond the point shown, what happens to its speed and acceleration in the direction of motion? 1. Both decrease 2. The speed decreases but the acceleration increases 3. Both remain constant 4. The speed increases, but the acceleration decreases 5. Both increase 6. Other

Tuesday, 8 March 2011


Still going downhill
· So in the absence of friction it will always keep speeding up. · But - the slope is getting gentler. · So the forward component of the gravitational force is getting smaller. · So the acceleration is decreasing.

Tuesday, 8 March 2011


And now
· ·

Given some complicated varying force, how can we work out the position? The answer is "Iteration"

Tuesday, 8 March 2011


Iteration
Solving problems step by tiny step...

Tuesday, 8 March 2011


Iteration
· Iteration means the act of repeating a process usually with the aim of approaching a desired goal or target or result. Each repetition of the process is also called an "iteration", and the results of one iteration are used as the starting point for the next iteration.

Tuesday, 8 March 2011


You can do some amazing things with iteration...

Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Movie taken from
· http://www.astro.ex.ac.uk/people/mbate/ Cluster/cluster3d.html

34
Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Tuesday, 8 March 2011


Basic idea
· Turn a big problem that we can't solve into lots and lots of small problems that we can solve. In this case · The big problem - calculate how something moves under the influence of ever-changing forces. · The small problem - calculate how the position and speed of an object changes over a very short time.

Tuesday, 8 March 2011


What makes it possible
· Over a short time, you can use some sort of solvable approximation to the true motion of an object. · If the time interval is short enough, even a crude approximation can be quite good enough.

Tuesday, 8 March 2011


1. Start off with a known position and velocity. 2. Use this position and velocity to work out where you will be a short time later (pretending the velocity is not changing) 3. Use the force to work out the acceleration 4. Use the acceleration to work out what the velocity will be a short time later (pretending the acceleration isn't changing). 5. Back to 1.

Tuesday, 8 March 2011


Distance update equation
· If your speed v is approximately constant, what is the equation for how far you go, x, in a time t?
1. 2. 3. 4. 5. 6. 7. 8. 9. x = x v x = x t x = v t x = v/t x = t/v x = v - t x = t - v None of the above Not enough information given.

Tuesday, 8 March 2011


Velocity update change
· If your acceleration a is approximately constant, what is the equation for how much your speed will change, v, in a time t?
1. v = x v/t 2. v = a t 3. v = a/t 4. v = t/a 5. v = a - t 6. v = t - a 7. None of the above 8. Not enough information given.

Tuesday, 8 March 2011


You just use the definition of velocity and acceleration
· Velocity is how far you go in a given time. So if you have time t, you multiply this by the velocity to find out how far you've gone x. · Acceleration is how much your speed increases in a given time. So if you have time t, you multiply this by the acceleration to find out how much your speed has increased v.

Tuesday, 8 March 2011


This is our approximation
· We assume that the object moves at its initial speed throughout the short time interval. · We assume that at the end of the interval its speed abruptly changes by the acceleration at the beginning of the time interval times the length of the time interval.

Tuesday, 8 March 2011


This method assumes that the velocity and acceleration don't change much in a timestep.
· Is this valid? · Depends on the length of each timestep - t

Tuesday, 8 March 2011


One time step...
At time t · Position = x · Velocity = v At time t+t · Position = x+x = x + v t · Velocity = v + v = v + a t

And we also need an equation for the force - for example, the following equation is for a weight on the end of a spring.

F = mg - kx

Tuesday, 8 March 2011


Simplest possible...
· This approximation (speed throughout timestep equal to initial speed, speed at end of time-step equal to initial speed plus initial acceleration times time) is known as "Euler 's Method". · You can use more complicated approximations which have the benefit of being more accurate but take more computer time to evaluate - for example:

Tuesday, 8 March 2011


Use constant acceleration formula...
· Instead of updating x with x + v t · Update it with x + v t + 1/2 a t2 · Still not perfectly accurate (as acceleration changes during a timestep) but probably better. · But for the moment - let's try Euler 's method (the simplest) and see where it gets us...

Tuesday, 8 March 2011


Let's try it.
· Before you start the iteration, you need to know:
­ The starting time, position and velocity ­ An equation for the force

· Let's do an example using a vertical spring-mass system

F = mg - kx
Tuesday, 8 March 2011

Let's have a mass of 0.1kg, k=5 N/m, and start at time 0, position x=0 and velocity v=0.


Keep track of some variables
· Next step - decide which variables you need to keep track of. · In this case, it will be:
­ Time t ­ Position x ­ Velocity v

· We will choose to have x increasing downwards, so a positive force is a downwards one
Tuesday, 8 March 2011


Iteration Equations
· We need to write down the equations we will use in every time step, to update the variables we are tracking (t, x and v). · These equations tell us what the value of each of these variables will be at the end of each time-step.

Tuesday, 8 March 2011


· For time: t+t · For position: x+vt · For velocity: v+at
­ We get a from the force equation -

F = mg - kx = ma
k a= g- x m

- So...

- Substituting this in, for velocity:

k v + g - m

x t

Tuesday, 8 March 2011


So at each time-step, we replace
· Time t with t+t · Position x with x+vt · Velocity v with v + g - k x t
m
These are our iteration equations.

Tuesday, 8 March 2011


One last decision before we start
· We need to choose the time-step t. · If we choose it too large, the velocity and acceleration will change too much during each time-step, making our calculation inaccurate. · If we choose it too small, we will have to compute a vast number of time steps, which is slow. · I'll come back to how you make the choice for the moment, let's pick t = 0.1 seconds.
Tuesday, 8 March 2011


Let's go
· Start off with t=0, x=0, v=0 · Apply our equations:
­ New value of t is t + t = 0+0.1 = 0.1 ­ New value of x is x + v t = 0+0â0.1 = 0 ­ New value of v is

k 5 v + g - x t = 0 + 9.8 - 0 â 0.1 = 0.98 m 0.1

Tuesday, 8 March 2011


So after 0.1 seconds...
· According to our method, the position hasn't changed (still zero) but the velocity has increased to 0.98 m/s. · Now do this again, using these new numbers as the starting parameters..

Tuesday, 8 March 2011


Second iteration
· Start off with t=0.1, x=0, v=0.98 · Apply our equations:
­ New value of t is t + t = 0.1+0.1 = 0.2 ­ New value of x is x + v t = 0+0.98â0.1 = 0.098 ­ New value of v is

k v + g - m

5 x t = 0.98 + 9.8 - 0.1

0 â 0.1 = 1.96

Tuesday, 8 March 2011


Third iteration
· Start off with t=0.2, x=0.098, v=1.96 · Apply our equations:
­ New value of t is t + t = 0.2+0.1 = 0.3 ­ New value of x is x + v t = 0.098+1.96â0.1 = 0.294 ­ New value of v is

k v + g - m
Tuesday, 8 March 2011

5 x t = 1.96 + 9.8 - 0.098 â 0.1 = 2.45 0.1


Fourth iteration
· Start off with t=0.3, x=0.294, v=2.45 · Apply our equations:
­ New value of t is t + t = 0.3+0.1 = 0.4 ­ New value of x is x + v t = 0.294+2.45â0.1 = 0.539 ­ New value of v is

k 5 v + g - x t = 2.45 + 9.8 - 0.294 â 0.1 = 1.96 m 0.1
Tuesday, 8 March 2011


And so on...
· Do the calculations for each step, and then use the results as the input for the next step. · That's what iteration means! · What results do we get?

Tuesday, 8 March 2011


Results for first few iterations (steps)
t 0 0.1 0.2 0.3 0.4 0.5 x 0 0 0.098 0.294 0.539 0.735 v 0 0.98 1.96 2.45 1.96 0.245

Tuesday, 8 March 2011


A graph of the first twenty interations...

Tuesday, 8 March 2011


Good and bad
· If you remember - the correct solution is an oscillation. · Our iteration has correctly produced an oscillation. · But it has the amplitude steadily increasing - which is wrong. · Springs don't do that!
Tuesday, 8 March 2011


Our time step was too big.
· The approximation (that the speed and velocity are approximately constant within each timestep) wasn't good enough. · If we make our timestep smaller... (say 0.01 sec)... · We have to do a lot more steps...

Tuesday, 8 March 2011


But it gets better...

Tuesday, 8 March 2011


And if we make our time step smaller still - say 0.001 sec...

Tuesday, 8 March 2011


Really rather good...
· But I needed to do 2000 steps (iterations) to get the last plot. · Which would have been very tedious and error-prone had I not used a computer... · Luckily we have computers and doing those 2000 steps took less than 0.1 sec...

Tuesday, 8 March 2011


So even this crude approximation...
· It pretty good with small timesteps. · And with the speed of modern computers, small timesteps are not much of a problem. · Using a better (more complicated) approximation to the motion in each timestep will mean that you can get away with bigger timesteps. · But each timestep needs more calculations to evaluate - so overall you may not be better off.

Tuesday, 8 March 2011


But it's painful

· ·

So do it by computer! Example python program

Tuesday, 8 March 2011


Let's try an example
· A spaceship near a black hole...

x
Tuesday, 8 March 2011


What forces apply?
· In this case there is only one - the gravitational force. · Being in space there is no friction or drag, so...

GMm F= 2 x
x
Tuesday, 8 March 2011

Where M is the mass of the black hole and m the mass of the spaceship.


What variables will we track?
· Time, position (x) and velocity (v) as before. · For one-dimensional problems it will always be these. · In 3D, you will need to track vector position and vector velocity (i.e the three components of each) so you will be tracking 7 numbers.

Tuesday, 8 March 2011


Iteration equations
· For time: t + t (as before) · For position: x+ v t (as before) · But what about for velocity?

GMm F= 2 x

Write it down... What will the velocity be at the end of a time-step? x increases away from the black hole. Velocity is (as always) rate of change of x.

Tuesday, 8 March 2011


The answer...
· Gravity works to decrease the (outwards) velocity

GM v - 2 t x

Tuesday, 8 March 2011


Let's chose some values
· Mass of the black hole = 1031 kg · Starting distance = 1,000,000 km · Starting speed = 2000 km/s away (You've been blasting away from it as hard as you could - but now your fuel has run out... Is your speed great enough to escape?)

Tuesday, 8 March 2011


Python simulation

Tuesday, 8 March 2011


Summary
· Divide up your problem into little tiny steps. · Write down an approximate set of equations for each step · Plug numbers into these formulae over and over again - taking the output from one step as the input to the next.

Tuesday, 8 March 2011