# EJSS One Dimension Collision JS Model

## One Dimension Collision JS Model

 http://weelookang.blogspot.sg/2013/09/one-dimension-collision-js-model.html One Dimension Collision JS Model author: lookang Online: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_Momentum1D01/Momentum1D01_Simulation.html Download: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_Momentum1D01.zip

 http://weelookang.blogspot.sg/2013/09/one-dimension-collision-js-model.html One Dimension Collision JS Model author: lookang Online: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_Momentum1D01/Momentum1D01_Simulation.html Download: https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_Momentum1D01.zip

The motion of a body of mass m and velocity v is described by a vector quantity known as momentum p where

p=mv

When objects collide, whether trains, cars, billiard balls, shopping carts, or your foot and the sidewalk, the results can be complicated. Yet even in the most chaotic of collisions, as long as there are no net external forces acting on the colliding objects, one principle always holds and provides an excellent tool for understanding the collision. That principle is called the conservation of linear momentum which states that

The total momentum of a system remains constant provided that no external resultant force acts on the system.

For two bodies colliding linearly, it is written mathematically as a vector equation

Total initial momentum = total final momentum

m1u1+m2u2=m1v1+m2v2

If external forces (such as friction) are ignored, the total momentum of two carts prior to a collision (left side of equation) is the same as the total momentum of the carts after the collision (right side of equation).

Collisions can be generally classified into these categories:

• perfectly inelastic, e= 0
• inelastic, e is a value from 0 to 1
• perfectly elastic, e=1

There is also a concept of kinetic energy of a moving body is stated mathematically by the following equation:

KE1=12m1v21

## Main Simulation View

The simulation has 2 collision carts on friction-less floor.
Sliders
Explore the sliders allows varying the variables .

•  mass of cart ONE, mass_1,  m1  in kg
•  initial velocity of cart ONE,  u1 in m/s
•  mass of cart TWO, mass_2,  m2  in kg
•  initial velocity of cart TWO, u2  in m/s

Allows for selecting what kind of collision is simulated.

A Perfectly elastic collision is defined as one in which both conservation of momentum and conservation of kinetic energy are observed
A Perfectly Inelastic collision is defined as one in which conservation of momentum is observed but the colliding carts stick together after collision with kinetic energy loss

## Checkboxes

Shows the Contact Force versus Time graph

## Buttons

Play
Step Back
Reset
have their usual meaning.

A more powerful version of this simulation is available here
is available on the NTNU website http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=831.0
or here
 collision cart http://weelookang.blogspot.sg/2013/03/collision-carts-real-and-ideal-combined.html https://dl.dropbox.com/u/44365627/lookangEJSworkspace/export/ejs_Momentum1DForceModel04.jar author: lookang, paco and engrg1 worksheets by (lead) AJC: https://www.dropbox.com/s/5obo5awn3w3zrgr/CollsionCartsAJC.zip (lead) RVHS: https://www.dropbox.com/s/8bq51hqa1jsjcvn/CollsionCartsRVHS.zip IJC https://www.dropbox.com/s/ztwc4pkvtc7ho50/CollisoncartsIJC.zip SRJC: https://www.dropbox.com/s/m4yrerc97fgesn2/CollisioncartsSRJC.zip YJC: https://www.dropbox.com/s/uguy3ewndj0pqxr/CollisionCartsYJC2013.zip

Shout our thanks to the Ejs community namely, Francisco Esquembre , Fu-Kwun Hwang and Wolfgang Christian for their professional learning community support.

Posted by
Labels: ejss Java NEWTONIAN MECHANICS