Physically Based Modeling CS Notes Spring 1997 Particle Collision and Contact

Similar documents
26 Impulse and Momentum

Donald Fussell. October 28, Computer Science Department The University of Texas at Austin. Point Masses and Force Fields.

ma x = -bv x + F rod.

BALLISTIC PENDULUM. EXPERIMENT: Measuring the Projectile Speed Consider a steel ball of mass

Chapter 5, Conceptual Questions

Physics 140 D100 Midterm Exam 2 Solutions 2017 Nov 10

CHAPTER 1 MOTION & MOMENTUM

HORIZONTAL MOTION WITH RESISTANCE

XI PHYSICS M. AFFAN KHAN LECTURER PHYSICS, AKHSS, K.

Q5 We know that a mass at the end of a spring when displaced will perform simple m harmonic oscillations with a period given by T = 2!

15 Newton s Laws #2: Kinds of Forces, Creating Free Body Diagrams

Ph 20.3 Numerical Solution of Ordinary Differential Equations

Department of Physics Preliminary Exam January 3 6, 2006

Work, Energy and Momentum

Some Perspective. Forces and Newton s Laws

NB1140: Physics 1A - Classical mechanics and Thermodynamics Problem set 2 - Forces and energy Week 2: November 2016

UNIT HOMEWORK MOMENTUM ANSWER KEY

F = 0. x o F = -k x o v = 0 F = 0. F = k x o v = 0 F = 0. x = 0 F = 0. F = -k x 1. PHYSICS 151 Notes for Online Lecture 2.4.

In the session you will be divided into groups and perform four separate experiments:

Name Period. What force did your partner s exert on yours? Write your answer in the blank below:

For a situation involving gravity near earth s surface, a = g = jg. Show. that for that case v 2 = v 0 2 g(y y 0 ).

Elastic Force: A Force Balance: Elastic & Gravitational Force: Force Example: Determining Spring Constant. Some Other Forces

Chapter 7. Impulse and Momentum

USEFUL HINTS FOR SOLVING PHYSICS OLYMPIAD PROBLEMS. By: Ian Blokland, Augustana Campus, University of Alberta

U V. r In Uniform Field the Potential Difference is V Ed

m potential kinetic forms of energy.

Tactics Box 2.1 Interpreting Position-versus-Time Graphs

Lesson 24: Newton's Second Law (Motion)

One Dimensional Collisions

Note-A-Rific: Mechanical

I. Understand get a conceptual grasp of the problem

Page 1. Physics 131: Lecture 16. Today s Agenda. Collisions. Elastic Collision

Physics 2210 Fall smartphysics 20 Conservation of Angular Momentum 21 Simple Harmonic Motion 11/23/2015

Chapter 7 Impulse and Momentum. So far we considered only constant force/s BUT There are many situations when the force on an object is not constant

Lecture #8-3 Oscillations, Simple Harmonic Motion

Force and dynamics with a spring, analytic approach

OSCILLATIONS AND WAVES

Dimensions and Units

The Lagrangian Method vs. other methods (COMPARATIVE EXAMPLE)

Ocean 420 Physical Processes in the Ocean Project 1: Hydrostatic Balance, Advection and Diffusion Answers

Honors Lab 4.5 Freefall, Apparent Weight, and Friction

27 Oscillations: Introduction, Mass on a Spring

2. What two units of measurement are necessary for describing speed? Ans. Distance and time.

2. Which of the following best describes the relationship between force and potential energy?

Momentum, p. Crash! Collisions (L8) Momentum is conserved. Football provides many collision examples to think about!

Energy and Momentum: The Ballistic Pendulum

An Approximate Model for the Theoretical Prediction of the Velocity Increase in the Intermediate Ballistics Period

We last left off by talking about how the area under a force vs. time curve is impulse.

Momentum, p = m v. Collisions and Work(L8) Crash! Momentum and Collisions. Conservation of Momentum. elastic collisions

Chapter 1: Basics of Vibrations for Simple Mechanical Systems

8.1 Force Laws Hooke s Law

Analysis of Impulsive Natural Phenomena through Finite Difference Methods A MATLAB Computational Project-Based Learning

Description: Conceptual: A bullet embeds in a stationary, frictionless block: type of collision? what is conserved? v_final?

2.003 Engineering Dynamics Problem Set 2 Solutions

NUMERICAL MODELLING OF THE TYRE/ROAD CONTACT

Relativity and Astrophysics Lecture 25 Terry Herter. Momenergy Momentum-energy 4-vector Magnitude & components Invariance Low velocity limit

PhysicsAndMathsTutor.com

1 Brownian motion and the Langevin equation

Momentum. February 15, Table of Contents. Momentum Defined. Momentum Defined. p =mv. SI Unit for Momentum. Momentum is a Vector Quantity.

Chapter 7. Impulse and Momentum

1. The property of matter that causes an object to resist changes in its state of motion is called:

CHAPTER 7 TEST REVIEW -- MARKSCHEME

16.333: Lecture # 7. Approximate Longitudinal Dynamics Models

5.1 m is therefore the maximum height of the ball above the window. This is 25.1 m above the ground. (b)

Support Vector Machines MIT Course Notes Cynthia Rudin

Part A Here, the velocity is at an angle of 45 degrees to the x-axis toward the z-axis. The velocity is then given in component form as.

Figure 1: Equivalent electric (RC) circuit of a neurons membrane

T m. Fapplied. Thur Oct 29. ω = 2πf f = (ω/2π) T = 1/f. k m. ω =

Today s s topics are: Collisions and Momentum Conservation. Momentum Conservation

Physics 11 HW #7 Solutions

Momentum. Conservation of Linear Momentum. Slide 1 / 140 Slide 2 / 140. Slide 3 / 140. Slide 4 / 140. Slide 6 / 140. Slide 5 / 140.

CHAPTER 15: Vibratory Motion

Question 1. [14 Marks]

Reading from Young & Freedman: For this topic, read the introduction to chapter 25 and sections 25.1 to 25.3 & 25.6.

8.012 Physics I: Classical Mechanics Fall 2008

Flipping Physics Lecture Notes: Free Response Question #1 - AP Physics Exam Solutions

2 Q 10. Likewise, in case of multiple particles, the corresponding density in 2 must be averaged over all

Chapter 7 Impulse and Momentum. So far we considered only constant force/s BUT There are many situations when the force on an object is not constant

y scalar component x scalar component A. 770 m 250 m file://c:\users\joe\desktop\physics 2A\PLC Assignments - F10\2a_PLC7\index.

Name Class Date. two objects depends on the masses of the objects.

UNIVERSITY OF SASKATCHEWAN Department of Physics and Engineering Physics

Take-Home Midterm Exam #2, Part A

Announcement. Grader s name: Qian Qi. Office number: Phys Office hours: Thursday 4:00-5:00pm in Room 134

= 1.49 m/s m. 2 kg. 2 kg

Impulsive Control of a Mechanical Oscillator with Friction

lecture 37: Linear Multistep Methods: Absolute Stability, Part I lecture 38: Linear Multistep Methods: Absolute Stability, Part II

the static friction is replaced by kinetic friction. There is a net force F net = F push f k in the direction of F push.

BioTechnology. BioTechnology. An Indian Journal FULL PAPER KEYWORDS ABSTRACT

Module #1: Units and Vectors Revisited. Introduction. Units Revisited EXAMPLE 1.1. A sample of iron has a mass of mg. How many kg is that?

Kinetic Theory of Gases: Elementary Ideas

PS 11 GeneralPhysics I for the Life Sciences

Definition of Work, The basics

Problem Set 2. Chapter 1 Numerical:

Physics 218 Exam 3 Fall 2010, Sections

Lecture 16: Scattering States and the Step Potential. 1 The Step Potential 1. 4 Wavepackets in the step potential 6

Chapter 10 Atmospheric Forces & Winds

A body of unknown mass is attached to an ideal spring with force constant 123 N/m. It is found to vibrate with a frequency of

Physics 18 Spring 2011 Homework 3 - Solutions Wednesday February 2, 2011

Projectile Motion with Air Resistance (Numerical Modeling, Euler s Method)

What is the instantaneous acceleration (2nd derivative of time) of the field? Sol. The Euler-Lagrange equations quickly yield:

Transcription:

Physically Based Modeling CS 15-863 Notes Spring 1997 Particle Collision and Contact 1 Collisions with Springs Suppose we wanted to ipleent a particle siulator with a floor : a solid horizontal plane which particles could bounce off of, or lie on. Assuing all the particles started out above the floor, they d all have to stay there for the rest of the siulation. How could we go about ipleenting this? Clearly, there are two probles. We need to detect when particles are near the floor, and when they are, we need to do soething to stop the fro passing through the floor. One obvious thing to do is to ipose a vertical spring force of ky(t) whenever the y-coordinate y(t) of the particle is less than zero. (We ll suppose the floor is siply the line y = 0.) If we ake k large enough, than we can prevent the particle fro oving too far beneath the floor. The proble is, that by aking k large, we set ourselves up for stiff ODE s, as entioned in earlier notes. Also, no atter what value of k you pick, I can always choose a heavy enough particle (or a particle oving downwards with a high enough velocity) so that the upwards ky(t) spring-force isn t strong enough to stop the particle fro oving substantially below the line y = 0. Of course, we could odify the spring force to copletely stop the particle fro oving below the floor, no atter what we throw at it. Suppose the spring force is e 1 ky(t) 2 ky(t). Then as y(t) 1 decreases towards zero, the spring force becoes strong quickly; in fact, it is ipossible for the particle to ever attain y(t) = 0 given this spring force. Note that in this case we have action at a distance : the spring force acts even before y(t) becoes negative. By aking k large though, we can ake the force fall off for positive values of y(t) quickly. Of course, this is a pretty stiff force function; ky(t) is a walk in the park in coparison... 2 Ipulses For both the linear springs and the exponential springs, as we increase k we cause the particle s velocity to change ore quickly. If we view our floor as an ipenetrable obstacle, we should just take this process to the liit, and let the particle undergo an instantaneous change in velocity. As an exaple, suppose we have a particle of ass and velocity v 0 (a vector). Lets apply a force F to the particle for a period of tie t. We ll assue that F points directly opposite to v 0, and that no other forces act on the particle. The particle s velocity v 1 tie t later is v 1 = t 0 F/dt+v 0 = F t +v 0 Suppose we want the force F to copletely cancel the initial velocity v 0 after tie t. Setting 1

v 1 to zero and solving, we get F = v 0 t (again under the assuption that F is directly opposite v 0 ). Clearly, to stop the particle instantaneously (that is, with t = 0) requires an infinite force. We can stop the particle arbitrarily quickly, by aking F suitably strong, but we can t stop the particle instantaneously with a force F. Instead, we ll define a new quantity called an ipulse. Lets iagine applying a force F over shorter and shorter tie intervals t. As tshrinks, F grows. Suppose that F grows without bound as t goes to zero, such that li t 0 F = in such a way that li F t t 0 converges to soe finite value J. The quantity J defined in such a way iscalled anipulse. Like force, ipulse is a vector quantity. Ipulse has the diensions of force ties tie, or equivalently, ass ties velocity. What is ipulse good for? Iagine that li t 0 F t = J = v 0 ; that is, no atter what t we choose, we pick F so that F t = v 0. Then as t goes to zero, we have v 1 = li t 0 t 0 F t F/dt+v 0 = li t 0 + v 0 = J/ + v 0 = 0. In the liit then, we have ade v 1 zero instantaneously. The idea of an ipulse is that when applied to a particle, it produces an instantaneous change of velocity. Unlike force, an ipulse is applied only for a zero-length period of tie. If we define the oentu P of a particle with ass and velocity v as P = v, then applying an ipulse J (of arbitrary direction) changes the oentu to P + J, and the velocity fro P/ to (P + J)/. Note that any other finite forces (e.g. gravity, wind) are ignored when an ipulse is applied, because the effects of these finite forces on the velocity go to zero as t goes to zero. By defining ipulses, we can abstractly consider the idea of an instantaneous change of velocity, by ignoring the continuous change of velocity that occurs over an arbitrarily sall tie interval t. 3 Collisions with Planes Lets apply the concept of an ipulse to let our particles bounce off an arbitrary plane. First, we need to worry about detecting collisions between a particle and a plane. Consider a particle with position x(t) in space, and a plane with a unit noral ˆn. The noral ˆn is chosen so that ˆn points towards the legal side of the plane. (For the case of the floor, ˆn points straight up.) Let q 0 be any point on the plane. Then the plane is defined as the set of points p such that ˆn ( p q 0 ) = 0. Our particle is on the legal side of the plane as long as ˆn (x(t) q 0 )>0. When ˆn (x(t) q 0 ) = 0, the particle has collided with the plane (figure 1). Deterining exactly when the particle has collided is in general a hard proble. Our approach will be as follows: whenever we find the particle is on the illegal side of the plane, we ll displace it in the ˆn direction so its exactly on the plane. Then we ll apply an ipulse to it to kick it away fro the wall. The correct way to do collision detection is explained in section 3.3. 2

q 0 p 2 v ( v N )ˆ n p 1 (illegal side) x(t) ˆ n Figure 1: The vector p 1 q 0 is opposite ˆn,so(p 1 q 0 ) ˆn<0andp 1 is on the illegal side of the plane. Siilarly, ( p 2 q 0 ) ˆn > 0. 3.1 Collision Response Our particle is in contact with the plane. What ipulse J should we apply to the particle to kick it off the wall? First, soe notation. Lets let the initial velocity, before application of J, bev. Lets let the velocity after application of J be v +. Define the noral speed v N before the collision (figure 1) by and the noral speed v N after the collision by v N =ˆn v v + N =ˆn v +. Note that v and v + are vectors while v N and v+ N are scalars. To deterine J, we use an epirical law for collisions. The law states that a collision can be described intersof acoefficient of restitution denoted by ɛ, where 0 ɛ 1. The law relates the initial noral speed to the final noral speed by v + N = ɛv N. (1) If ɛ = 1, then the noral speed is copletely reversed, and we have in effect a superball. Ifɛ = 0, the collision is copletely dead, in that the particle won t bounce away fro the wall. We can use this law to deterine J as follows. Assue that there is no friction between the particle and the wall. Then the direction of J is parallel to ˆn, and should be in the sae direction. 3

That is, we can write J = jˆnfor soe scalar j. Our intuition is that j should be a positive nuber. To copute j, we express v + N in ters of j and use equation (1). We have where is the particle s ass. Then v + = v + J = v + j ˆn v + N =ˆn v + =ˆn v +jˆn ˆn since ˆn ˆn = 1. Using equation (1), we get =v N + j which we can solve to obtain v + N = v N + j = ɛv N j = (1+ɛ)v N. Note that since we presuably started with v N being negative (since the particle had velocity partly opposite ˆn) weget j>0 as expected. If we want to add a frictional coponent, we can use a (siplified) version of Coulob s friction law. For any ipulse of strength j in the ˆn direction, there will also be an ipulse tangent to the plane of strength µj,whereµis the coefficient of friction. Reasonable values for µ would be in the range zero to perhaps 1. The direction of this tangential ipulse is directly opposite the coponent 3 of v in the plane. The coponent of v tangent to the plane is Thus, to add friction, let the total ipulse be v v N ˆn. j ˆn µj v v N ˆn v v N ˆn. (Don t try this if v has no tangential coponent.) 3.2 Particle/Plane Contact Suppose that we set ɛ to zero, so that after the collision, v + N was zero. Then the particle would be resting on the plane. In this case, we will have to apply a force to stop the particle fro being pushed through the plane. Suppose that the net force acting on the particle is F ext. The force F ext would include gravity forces, drag fro velocity, and any inter-particle forces such as springs. We need to stop the particle 4

fro accelerating opposite ˆn. To do this, we add a contact force F c that acts on the particle. Again, lets start with the frictionless case, where F c acts in the ˆn direction. So we can write F c = f c ˆn for soe scalar f c. To constrain the particle s acceleration, we can write ˆn ẍ(t) = 0 (2) which prevents the particle fro accelerating in the ˆn direction. The total force on the particle is F ext + F c,so ẍ(t)= F ext + F c Substituting into equation (2) yields = F ext + f c ˆn. so that ˆn Fext + f c ˆn = ˆn F ext + f c = 0 f c = ˆn F ext. (3) Now, if F ext is opposite ˆn, then f c is positive. That is, we require an outwards force to prevent the particle fro being pushed opposite ˆn. However, if F ext was along ˆn, lifting the particle off the plane in the positive ˆn direction, f c would have to be negative to stop the particle fro leaving the surface. If you want your planes to be sticky, you solve for f c using equation (3), and use whatever answer you get. But if you want the particle to release fro the surface, you will want to set f c to zero if equation (3) yields a negative value of f c. Finally, if you want to add friction, its about the sae as before (using a siplified odel of friction that is). If the particle is sliding along the plane, you add in a tangential force that is directly opposite to the velocity, with a agnitude of µ f c. (However, if the particle has no sliding velocity, things are a bit trickier. In this case, what you want to do is to copute a tangential force such that the coponent of ẍ(t) in the plane is zero. The strength of that force should not exceed µ f c ;ifit does, you should chop the agnitude down to be µ f c. Clear?) 3.3 Collision Detection In general, coputing exactly when a particle collides with a plane is difficult. Here we ll explain the right way to ipleent collision detection, though the displaceent ethod will do for this course. Again, iagine a particle dropping towards the floor. Suppose we consider the particle at ties t 0, t 0 + t, t 0 + 2 t etc. and suppose the tie of collision, t c, at which the particle actually strikes the floor, lies between t 0 and t 0 + t. Ideally, we d like to run our siulator up to tie t c, change the velocity of the particle (to ake it bounce off the floor), and then restart the siulator. If you re using an ODE ethod other than Euler s ethod, this is essential because the ODE solver doesn t realize that the otion equations are discontinuous at t c. (Yes, discontinuous the particle s position is continuous over tie, but its velocity is not at t c, and the velocity is a variable of the ODE.) 5

t 0 t c t 0 + t (interpenetration detected) Figure 2: At tie t 0 + t, the particle is found to lie below the floor. Thus, the actual tie of collision t c lies between the tie of the last known legal position, t 0,andt 0 + t. So in ters of ODE solution, we view this as solving up to tie t c, and then restarting at tie t c with a new initial velocity. The big proble of course is finding t c. At tie t 0, we find that the particle lies above the floor, but at the next tie step, t 0 + t, we find the particle is beneath the floor, which eans that interpenetration has occurred. If we re going to stop and restart the siulator at tie t c, we ll need to copute t c. All we know so far is that t c lies between t 0 and t 0 + t. In general, solving for t c exactly is difficult, so we solve for t c nuerically, to within a certain tolerance. A siple way of deterining t c is to use a nuerical ethod called bisection. If at tie t 0 + t we detect inter-penetration, we infor the ODE solver that we wish to restart back at tie t 0, and siulate forward to tie t 0 + t/2. If the siulator reaches t 0 + t/2 without encountering inter-penetration, we know the collision tie t c lies between t 0 + t/2andt 0 + t.otherwise,t c is less than t 0 + t/2, and we try to siulate fro t 0 to t 0 + t/4. Eventually, the tie of collision t c is coputed to within soe suitable nuerical tolerance. The accuracy with which t c is found depends on the collision detection routines. The collision detection routines have soe paraeter ɛ. We decide that our coputation of t c is good enough when the particle inter-penetrates the floor by no ore than ɛ, and is less than ɛ above the floor. At this point we declare that the particle is in contact with the floor (figure 3). How to actually ipleent all of this depends on how you interact with your ODE routines. One ight use exception handling code to signal the ODE of various events (collisions, interpenetration), or pass soe sort of essages to the ODE solver. 6

t 0 ε ε t c found (within tolerance) t 0 + t (interpenetration detected) Figure 3: When the particle is found to be within soe tolerance ɛ of contacting the floor, then t c is considered to have been coputed to within sufficient accuracy. 7