Model Equations
The relationship between time and position gives:
(1) r_{ij} = r_i - r_j = (r^0_i + u_i(t-t_0)) - (r^0_j + u_j(t-t_0)) $ $= (r^x_{ij}, r^y_{ij}, r^z_{ij})
where is the vector position of the particle and $ u_i$ is the vector velocity.
Note: html to make bold typeface for vectors in math mode is unknown to this author. Sorry.
At the time of contact, , we have ,
(2) \sigma^2_{ij} = (r^c_{ij})^2 = \{(r^0_i + u_it^c_{ij}) - (r^0_j + u_jt^c_{ij})\}^2 $ $\equiv \{(r_{ij} + u_{ij}t^c_{ij})\}^2 = \{r_{ij} \bullet r_{ij} + 2t^c_{ij}r_{ij} \bullet u_{ij} + u_{ij}(t^c_{ij})^2\}
Where
The relation leads to a quadratic equation for the ij collision time, .
Where :
$(6) u_{ij}^2 = (u_i - u_j)^2 $
discriminant. Note that in m/s is a large number while is very small.
<table width="75%">
<tr>
<td width="25%" align="center">

<td width="25%" align="center">

<td width="25%" align="center">

</tr>
<tr>
<td width="25%" align="center">
$b_{ij} > 0$(forget about it)
<td width="25%" align="center">
$D_{ij} < 0$(forget about it)
<td width="25%" align="center">
$D_{ij} > 0$(schedule it)
</tr>
</table>
At the time of the collision, the velocities of the particles change according to,
<table width="100%">
<tr>
<td width="80%" align="left">
We can derive this formula by assuming that particle *j* is stationary (reference frame) and particle *i* is moving on the *x*-axis with equal mass. The *j*-direction after collision is given by the line of action $r^c_{ij}$, since that is all *j* feels about momentum change. Conservation of momentum means that $u^f_i + u^f_j = u^i_i$ with the geometric interpretation of a sum of vectors in the form of a triangle. Conservation of energy gives $(u^f_i)^2 + (u^f_j)^2 = (u^i_i)^2$. The Pythagorean theorem applied to the conservation of energy means that this triangle must be a right triangle. Therefore, we can rotate the coordinate system such that $y = u^f_i; x = u^f_i; u^f_i = u^i_i cos \theta; u^f_j = u^i_i sine\theta$
<td width="20%" align="center">

</tr>
</table>
Note that and must be updated to the point of collision before computing the velocity changes.