Question #29526

i need formula for my collision
simulation program.In that i am using vector concept to detect the collision and the path after collision.But i cannot able to trace the path after collision.

Expert's answer

I need a formula for my collision simulation program. In that I am using vector concept to detect the collision and the path after collision. But I'm not able to trace the path after collision.

If you are simulating the central perfectly elastic collision of two bodies, then according to the law of conservation of momentum we can write m1ν01+m2ν02=m1ν1+m2ν2m_{1} \cdot \vec{\nu}_{01} + m_{2} \cdot \vec{\nu}_{02} = m_{1} \cdot \vec{\nu}_{1} + m_{2} \cdot \vec{\nu}_{2} (it should be written in scalar form with corresponding signs). According to the law of conservation of energy we can write an equation m1ν0122+m2ν0222=m1ν122+m2ν222\frac{m_{1} \cdot \nu_{01}^{2}}{2} + \frac{m_{2} \cdot \nu_{02}^{2}}{2} = \frac{m_{1} \cdot \nu_{1}^{2}}{2} + \frac{m_{2} \cdot \nu_{2}^{2}}{2} (it can be written in scalar form only).

Then, m1(ν01ν1)=m2(ν2ν02),m1(ν012ν12)=m2(ν22ν022)m_{1}\cdot (\vec{\nu}_{01} - \vec{\nu}_{1}) = m_{2}\cdot (\vec{\nu}_{2} - \vec{\nu}_{02}),m_{1}\cdot (\nu_{01}^{2} - \nu_{1}^{2}) = m_{2}\cdot (\nu_{2}^{2} - \nu_{02}^{2})

We can omit the vector signs in the first equation when considering two cases:

1) If both bodies are moving in the positive direction before the collision with ν01>ν02>0\nu_{01} > \nu_{02} > 0 , then the law of conservation of momentum in the scalar form will be: m1(ν01ν1)=m2(ν2ν02)m_1 \cdot (\nu_{01} - \nu_1) = m_2 \cdot (\nu_2 - \nu_{02})

Then we can divide the above equations: m1(v012v12)m1(v01v1)=m2(v22v022)m2(v2v02),v01+v1=v2+v02\frac{m_1 \cdot (v_{01}^2 - v_1^2)}{m_1 \cdot (v_{01} - v_1)} = \frac{m_2 \cdot (v_2^2 - v_{02}^2)}{m_2 \cdot (v_2 - v_{02})}, v_{01} + v_1 = v_2 + v_{02} .

Solution of the obtained system of equations {m1(v01v1)=m2(v2v02)v01+v1=v2+v02\left\{ \begin{array}{l}m_{1}\cdot (v_{01} - v_{1}) = m_{2}\cdot (v_{2} - v_{02})\\ v_{01} + v_{1} = v_{2} + v_{02} \end{array} \right. will be:

v1=m1m2m1+m2v01+2m2m1+m2v02,v2=m2m1m1+m2v02+2m1m1+m2v01v_{1} = \frac{m_{1} - m_{2}}{m_{1} + m_{2}} \cdot v_{01} + \frac{2m_{2}}{m_{1} + m_{2}} \cdot v_{02}, v_{2} = \frac{m_{2} - m_{1}}{m_{1} + m_{2}} \cdot v_{02} + \frac{2m_{1}}{m_{1} + m_{2}} v_{01} , you can calculate the values of velocities after the collision. If the value is positive, then the body moves in positive direction and vice versa.

2) If the bodies are in the counter movement before the collision, ν01>0\nu_{01} > 0 , ν02<0\nu_{02} < 0 , then the law of conservation of momentum in the scalar form will be: m1(ν01ν1)=m2(ν2+ν02)m_1 \cdot (\nu_{01} - \nu_1) = m_2 \cdot (\nu_2 + \nu_{02}) ,


m1(v012v12)m1(v01v1)=m2(v22v022)m2(v2+v02),v01+v1=v2v02,{m1(v01v1)=m2(v2+v02)v01+v1=v2v02\frac {m _ {1} \cdot (v _ {0 1} ^ {2} - v _ {1} ^ {2})}{m _ {1} \cdot (v _ {0 1} - v _ {1})} = \frac {m _ {2} \cdot (v _ {2} ^ {2} - v _ {0 2} ^ {2})}{m _ {2} \cdot (v _ {2} + v _ {0 2})}, v _ {0 1} + v _ {1} = v _ {2} - v _ {0 2}, \left\{ \begin{array}{l} m _ {1} \cdot (v _ {0 1} - v _ {1}) = m _ {2} \cdot (v _ {2} + v _ {0 2}) \\ v _ {0 1} + v _ {1} = v _ {2} - v _ {0 2} \end{array} \right.

v1=m1m2m1+m2v012m2m1+m2v02,v2=m1m2m1+m2v02+2m1m1+m2v01v_{1} = \frac{m_{1} - m_{2}}{m_{1} + m_{2}}\cdot v_{01} - \frac{2m_{2}}{m_{1} + m_{2}}\cdot v_{02}, v_{2} = \frac{m_{1} - m_{2}}{m_{1} + m_{2}}\cdot v_{02} + \frac{2m_{1}}{m_{1} + m_{2}} v_{01} , you can calculate the values of velocities after the collision. If the value is positive, then the body moves in positive direction and vice versa.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS