Collision balls

Theory

The abrupt change to the path of a moving body (or bodies) due to its interaction with other body (or bodies) is called collision. The magnitude and direction of the velocity of the colliding bodies may change in a collision. The force involved in collision may be large, but it acts only for a very short time. We come across many examples of collision daily. The coins of a carom game colliding with one another or collision between two automobiles in a road accident etc. are examples of collision. The Conservation Laws applied here are:

  1. Law of conservation of linear momentum: Total linear momentum of a system of particle is conserved if no external force acts on the system. i.e., total linear momentum before collision is equal to total linear momentum after collision, if no external force acts on the system.
  2. Law of conservation of energy: Energy can neither be created nor destroyed. But can be converted from one form to other.

Types of collision:

  1. Elastic collision: Collisions in which both momentum and kinetic energy of the system are conserved are called elastic collisions. The collision between subatomic particles is generally elastic. The collision between two steel or glass balls is nearly elastic. In elastic collisions, the forces involved during interaction are of conservative in nature.
  2. Inelastic collision: Collisions in which momentum of the system is conserved but not the kinetic energy are called inelastic collisions. Most collision in everyday life is inelastic.

Centre of mass of a system of particles: Every physical system has associated with a certain point whose motion characterises that of the system as a whole. When the system moves under an external force then this point moves in the same way as a single particle would move under the same external force. This point is called centre of mass of the system. The motion of the system can be described in terms of the motion of its centre of mass.

Formulas used:

Elastic and Inelastic Collision in Two Dimensions:

Here for the determination of the 'impact angle', the hard sphere model which obviously would only be an approximation for charged particles (strictly speaking the Rutherford scattering formula would have to be used for this). Apart from this, the solution below is a completely general and exact description of a 2D collision event (and in any case it provides exact conservation of momentum and energy). The relationship between the velocities of masses m1 and m2 before the collision (unprimed) and after the collision (primed) is given by the conservation equations for momentum and energy:

m1vx,1=m1vx,1+m2Δvx,2..............(1)m_{1}v_{x,1}=m_{1}v_{x,1'}+m_{2}\Delta v_{x,2'}..............(1) m1vy,1=m1vy,1+m2Δvx,2tan(θ)............(2)m_{1}v_{y,1}=m_{1}v_{y,1'}+m_{2}\Delta v_{x,2'}\tan (\theta)............(2) m12(vx,12+vy,12)=m12(vx,12)+m22Δvx,22(1+tan(2θ)).....(3)\frac{m_{1}}{2}(v_{x,12}+v_{y,12})=\frac{m_{1}}{2}(v_{x,1'2})+\frac{m_{2}}{2}\Delta v_{x,2'2}(1+\tan (2\theta)).....(3)

For the sake of simplicity it has been assumed here that mass 2 is initially resting i.e. vx,2=0, vy,2=0 and vx,2=Δvx,2v_{x,2'}=\Delta v_{x,2'} (this does not affect the general validity of the final result as the assumption will be dropped again later by referring the velocities to mass 2 explicitly). The angle θ\theta¸ in Eq.(2) (and (3)) is the angle of the final velocity vector of ball 2 with the x-axis. This will be determined separately later from the geometry of the collision (alternatively, one can also treat θ\theta¸ as a free parameter). Solving now Eq.(1) for vx,1v_{x,1'} and Eq.(2) for vy,1v_{y,1'} yields

vx,1=vx,1m2m1Δvx,2........(4)v_{x,1'}=v_{x,1}-\frac{m_{2}}{m_{1}}\Delta v_{x,2'}........(4) vy,1=vy,1m2m1Δvx,2tan(θ)............(5)v_{y,1'}=v_{y,1}-\frac{m_{2}}{m_{1}}\Delta v_{x,2'}\tan (\theta)............(5)

Inserting (4) and (5) into Eq.(3) results in a quadratic equation for Δvx,2\Delta v_{x,2'} which (after some lengthy but straightforward algebraic manipulations) yields the solution:

Δvx,2=2[vx,1+tan(θ)vy,1][(1+tan2θ])(1+m2m1)]........(6)\Delta v_{x,2'}=\frac{2[v_{x,1}+\tan (\theta)v_{y,1}]}{[(1+\tan^{2}\theta])(1+\frac{m_{2}}{m_{1}})]}........(6)

Refering now the initial velocities explicitly to ball 2 and noting that the angle θ\theta¸ is the sum of the relative velocity angle between ball 1 and 2

Yv=arctan[(vy,1vy,2)(vx,1vx,2)]..........(7)Yv=\arctan \left[ \frac{(v_{y,1}-v_{y,2})}{(v_{x,1}-v_{x,2})} \right]..........(7)

and the impact angle θ\theta (see below); one can finally write

Δvx,2=2[vx,1vy,2+a.(vy,1vy,2)][(1+a2)(1+m2m1)]......(8)\Delta v_{x,2'}=\frac{2[v_{x,1}-v_{y,2}+a.(v_{y,1}-v_{y,2})]}{[(1+a^{2})(1+\frac{m_{2}}{m_{1}})]}......(8)

where

a=tan(θ)=tan(Yv+α)..................(9)a=\tan (\theta)=\tan (Yv+\alpha)..................(9)

The 'impact angle' θ\theta can vary between 900-90^{0} and +900+90^{0} (or π2\frac{-\pi}{2} and π2\frac{\pi}{2} when using radians) (000^{0} corresponds to a head-on- and the extreme values to a grazing collision). (in most treatments of collision problems, the center-of -mass scattering angle θ\theta is used, which relates to θ\theta through θ=(πθ)/2;however,as\theta=(\pi-\theta)/2; however, as \thetaisindependentofthereferenceframe,itisamuchbetterchoicehere).Theactualvalueof is independent of the reference frame, it is a much better choice here). The actual value of\thetadependsontheexactcoordinatesoftheparticles,soifthelatterarenotknown,onehastotreat depends on the exact coordinates of the particles, so if the latter are not known, one has to treat \thetaasafreeparameterandgenerateitforinstancethrougharandomnumbergenerator.(otherwiseseebelowforthedeterminationof as a free parameter and generate it for instance through a random number generator. (otherwise see below for the determination of \theta$). From Eqs.(2),(4),(5),(8),and (9) the velocity components after the collision are therefore:

vx,2=vx,2+Δvx,2...............(10)v_{x,2'}=v_{x,2}+\Delta v_{x,2'}...............(10) vy,2=vy,2+a.Δvx,2...............(11)v_{y,2'}=v_{y,2}+a.\Delta v_{x,2'}...............(11) vx,1=vx,1m2m1Δvx,2...............(12)v_{x,1'}=v_{x,1}-\frac{m_{2}}{m_{1}}\Delta v_{x,2'}...............(12) vy,1=vy,1a.m2m1Δvx,2...............(13)v_{y,1'}=v_{y,1}-a.\frac{m_{2}}{m_{1}}\Delta v_{x,2'}...............(13)

The 'impact angle' α\alpha in Eq.(9) can be determined from the collision geometry as shown in the illustration below:

Figure 1

Geometry of 2D collision

If the coordinates of the balls (with radius r1r_{1} and r2r_{2} ) are x1,y1 and x2,y2, α\alpha is given by

α=arcsin[d.sin(Yx,yYv)(r1+r2)]................(14)\alpha=\arcsin\left[ \frac{d.\sin(Y_{x,y}-Y_{v})}{(r_{1}+r_{2})}\right]................(14)

Where

d=(x2x1)2+(y2y1)2.............(15)d=\sqrt{(x2-x1)^{2}+(y2-y1)^{2}}.............(15)

Yx,y=arcsin[(y2y1)(x2x1)].................(16)Y_{x,y}=\arcsin\left[ \frac{(y2-y1)}{(x2-x1)} \right].................(16)

This will give a value for α\alpha as long as the absolute value of d.sin(Yx,yYv)(r1+r2)d.sin (Y_{x,y}-Y_{v})\le (r_{1}+r_{2}) (otherwise the arcsin- function above is not defined, in which case the balls would not collide anyway). Note that one also has to exclude the case where Yx,yY_{x,y} and YvY_{v} differ by more then π/2\pi/2 and less than 1.5π1.5*\pi as then the balls would move away from each other. If one is tracking the balls for further collisions, it is also necessary to update the coordinates in addition to the velocities. This is achieved as follows: using the law of cosines for the collision triangle and solving the corresponding quadratic equation for the distance which ball 1 travels to the collision point, one obtains the time that elapses from the original coordinates to the collision as

t=dcos(Yx,yYv)±(r1+r2)2[d.sin(Yx,yYv)]2(vx,1vx,2)2+(vy,1vy)2.........(17)t=\frac{d\cdot \cos(Y_{x,y}-Y_{v})\pm \sqrt{(r_{1}+r_{2})^{2}-[d.\sin(Y_{x,y}-Y_{v})]^{2}}}{\sqrt{(v_{x,1}-v_{x,2})^{2}+(v_{y,1}-v_{y})^{2}}}.........(17)

Before the first square root, the minus sign holds if cos(Yx,yYv)>0\cos(Y_{x,y} - Y_{v}) > 0 and the plus sign otherwise. Note again that a valid solution requires dsin(Yx,yYv)(r1+r2)d \cdot \sin(Y_{x,y} - Y_{v})| \le (r_1 + r_2) (otherwise the balls would not collide). The new coordinates (the position of the center of the balls at the moment of collision) are therefore;

x1=x1+vx,1.t...................(18)x_{1}'=x_{1}+v_{x,1}.t...................(18)

y1=y1+vy,1.t...................(19)y_{1}'=y_{1}+v_{y,1}.t...................(19)

x2=x2+vx,2.t...................(20)x_{2}'=x_{2}+v_{x,2}.t...................(20)

y2=y2+vy,2.t...................(21)y_{2}'=y_{2}+v_{y,2}.t...................(21)

Generalization to Inelastic Collisions:

The generalization of the above formulae to inelastic collisions is ultimately simple: we just have to refer the velocity components (Eq.(10)-(13)) to the center of mass reference frame, apply the restitution coefficient to these, and add again the center of mass (cmcm) velocity to return to the lab frame, i.e. with,

vx,cm=(m1.vx,1+m2.vx,2)(m1+m2).............(22)v_{x,cm}=\frac{(m1.v_{x,1}+m2.v_{x,2})}{(m1+m2)}.............(22)

vy,cm=(m1.vy,1+m2.vy,2)(m1+m2)...............(23)v_{y,cm}=\frac{(m1.v_{y,1}+m2.v_{y,2})}{(m1+m2)}...............(23)

We have,

vx,1=(vx,1vx,cm).R+vx,cm...............(24)v_{x,1}''=(v_{x,1}'-v_{x,cm}).R+v_{x,cm}...............(24)

vy,1=(vy,1vy,cm).R+vy,cm...............(25)v_{y,1}''=(v_{y,1}'-v_{y,cm}).R+v_{y,cm}...............(25)

vx,2=(vx,2vx,cm).R+vx,cm................(26)v_{x,2}''=(v_{x,2}'-v_{x,cm}).R+v_{x,cm}................(26)

vy,2=(vy,2vy,cm).R+vy,cm..............(27)v_{y,2}''=(v_{y,2}'-v_{y,cm}).R+v_{y,cm}..............(27)

where R is the restitution coefficient (=1 for a perfectly elastic collision; =0 for a perfectly inelastic collision (balls stick together after the collision).

Applications:

  1. It is used for mobile networking.
  2. Billard balls.
  3. Cryptosystems.
  4. Collision detection.