NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
March 01, 2021, 09:29:04 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
There is a better way to do it; find it. ..."Thomas Edison(1847-1931, American inventor, 1093 patients)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
Author Topic: Ejs Open Source 2D Collision Model java applet  (Read 13117 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
Hero Member
Offline Offline

Posts: 1796


Embed this message
on: May 19, 2011, 10:53:06 pm » posted from:Singapore,,Singapore

Ejs Open Source 2D Collision Model java applet by Fu-Kwun Hwang, edited by Wolfgang Christian and Robert Mohr
very slightly edited by lookang


Embed a running copy of this simulation

Embed a running copy link(show simulation in a popuped window)
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
  • Please feel free to post your ideas about how to use the simulation for better teaching and learning.
  • Post questions to be asked to help students to think, to explore.
  • Upload worksheets as attached files to share with more users.
Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!

Elastic Collision writeup by Wolfgang Christian and Robert Mohr http://www.compadre.org/osp/items/detail.cfm?ID=8373
The EJS Elastic Collision model allows the user to simulate a two-dimensional elastic collision. The user can modify the mass, position and velocity of each disk using the sliders. Both disks are also draggable and the center of mass is shown a a cross in the simulation.
A checkbox option allows the user to pause the simulation when a collision occurs. The pale blue arrows show the momenta of the disks immediately before the collision and the dark blue arrows show the momenta after the collision. The red arrows show impulse (change in momentum) of each disk caused by the collision. Note that the impulse vectors are equal and opposite and that the impulse direction is parallel to the line connecting the disk centers.
Newtonian mechanics predicts that for an isolated system total momentum is always conserved and total energy is conserved if the particles do not have hidden degrees of freedom such as spin or heat capacity. Collisions that conserve energy are said to be totally elastic because the balls bounce off of each other.
Conservation laws play a fundamental role in physics and most physicists would argue that they are more fundamental then Newton's Laws. In the Elastic Collision model, conservation of energy and momentum are used to compute the trajectories of two balls aced on by a strong but brief collision force. The hard disk (impulse) approximation assumes that the interaction acts instantaneously along a line connecting the particle centers when the the particles come into contact. Because the particles do not interact except for this brief instant, we need only consider kinetic energy when computing the total energy of the system.
Etotal = (1/2) m1 v12 + (1/2) m2 v22
The total momentum of the system is easy to compute and is the sum of the momentum of the two particles.
ptotal = m1 v1 + m2 v2
The bold typeface indicates that momentum and velocity are vectors so the above equation becomes to two equations when written component form.
Giancoli Physics: Principles with Applications sixth edition, 175-181.
The Elastic Collision model was created by Fu-Kwun Hwang using the Easy Java Simulations (EJS) modeling tool. It was adapted to EJS version 4.1 by Wolfgang Christian and Robert Mohr at Davidson College. You can examine and modify the model for this simulation if you have Ejs installed by right-clicking within the simulation frame and selecting "Open Ejs Model" from the pop-up menu. Information about EJS is available at: and in the OSP ComPADRE collection .

Explanation by Fu-Kwun Hwang http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=120.msg3541#msg3541
You need to understand conservation of momentum and conservation of energy.
The velocity of two objecs after collision (V1',V2')can be calculated from velocity before collisions (V1,V2) and mass of two objects (m1,m2).

V1'= (m1-m2)*V1/(m1+m2) + 2*m2*V2/(m1+m2)= (m1V1+m2V2)/(m1+m2)+(V2-V1)*m2/(m1+m2)=Vcm+(V2-V1)*m2/(m1+m2);


Where Vcm=(m1V1+m2V2)/(m1+m2);
Before the collision, the velocity of m1 relative to Vcm is
compare it with the second term in V1'

For collision 2D, the trick is to transform it into collision 1D problem:
In the direction of red arows, and another direction normal to red arrows (i.e. direction of green arrows).
If friction is not considered (which will cause both balls to rotate due to friction force),
Then green arrow velocity is not changed after the collision because there is no force in that direction.
And collision in red arrow direction is 1D collision problem, so you can use the above equation.
However, you need to calculate the component of velocity in red arrow direction. (This you need to understand the meaning of inner product -- mathematic operation).

* 2Delasticcollision.png (39.57 KB, 728x616 - viewed 1478 times.)
« Last Edit: May 20, 2011, 10:03:22 am by lookang » Logged
Hero Member
Offline Offline

Posts: 1796


Embed this message
Reply #1 on: May 19, 2011, 10:56:16 pm » posted from:Singapore,,Singapore

text bigger
values for sense making of conservation of momentum along the direction
text "drag mass to move"
text "2 Dimensional Elastic Collision Model"

trying to read the codes to understand the different implementation codes

to do:
add values for perpendicular and parallel to tangent of collision for appreciation of COM
« Last Edit: May 19, 2011, 10:57:53 pm by lookang » Logged
Pages: [1]   Go Up
There is a better way to do it; find it. ..."Thomas Edison(1847-1931, American inventor, 1093 patients)"
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Ejs open source java applet 1D collision carts Elastic and Inelastic Collision « 1 2 3 »
Collaborative Community of EJS
lookang 78 104405 Last post January 16, 2018, 05:00:07 pm
by ufabet
Ejs Open Source Ripple Tank Interference Model java applet
Collaborative Community of EJS
lookang 26 51551 Last post February 21, 2019, 09:01:29 am
by lookang
Ejs Open Source Reaction Time Measurement Traffic Light Model Java Applet
Collaborative Community of EJS
lookang 6 16228 Last post December 17, 2018, 10:36:41 am
by lookang
Ejs open source java applet 1D collision force model
Collaborative Community of EJS
lookang 8 9199 Last post March 26, 2012, 01:36:57 pm
by engrg1
Ejs open source java applet 1D collision carts with realistic collision
Collaborative Community of EJS
lookang 4 12835 Last post February 19, 2013, 01:05:56 pm
by lookang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.07 seconds with 23 queries.since 2011/06/15