### Author Topic: Ejs open source java applet 1D collision carts Elastic and Inelastic Collision  (Read 107166 times)

#### lookang

• Moderator
• Hero Member
• Posts: 1772
• http://weelookang.blogspot.com
##### Re: Ejs open source java applet 1D collision carts Elastic and Inelastic Collision
« Reply #75 on: March 05, 2012, 11:09:59 pm »
work in progress

#### lookang

• Moderator
• Hero Member
• Posts: 1772
• http://weelookang.blogspot.com
##### Re: Ejs open source java applet 1D collision carts Elastic and Inelastic Collision
« Reply #76 on: March 09, 2012, 11:29:13 pm »
more request

The arrow length can be proportioned between the two velocities?
So if i want to key in v1 = 500 m/s, the space constraints wouldn't allow
>> it. So i wrote

done, it saturated

explosion:
>> M before explosion
>> U before explosion
>> Fraction of masses after explosion or m1 and m2
>>
>> To calculate:
>> Initial KE
>> Fraction of Final velocities
>> Fraction of Final KEs
>>
>> Formula:
>> MU = m1v1 + m2v2

not done, not sure if it is can be done

#### lookang

• Moderator
• Hero Member
• Posts: 1772
• http://weelookang.blogspot.com
##### Re: Ejs open source java applet 1D collision carts Elastic and Inelastic Collision
« Reply #77 on: March 13, 2012, 03:24:20 pm »
work in progress

teacher discussion.
1. The F-t and momentum-time graphs are not aligned. The end of the momentum change seems to be aligned with peak force
2. The velocity vector is incorrect. For e.g. 1 m/s is longer than 2 m/s.

1. consulting
2 fix bug of arrows and also added Math.abs() to force arrows always to the right

#### lookang

• Moderator
• Hero Member
• Posts: 1772
• http://weelookang.blogspot.com
##### Re: Ejs open source java applet 1D collision carts Elastic and Inelastic Collision
« Reply #78 on: March 26, 2012, 12:55:31 pm »
after discussion with teachers

1. velocity convention to be direction left is negative while always showing magnitude to be consistent with this particular schools teaching practice.
done

2. bug fixed for tmax for the graph to show the tmax consistently

3. some text changes as explain by teacher in accordance to text used in A level now.
perfectly elastic == elastic
partial inelastic == inelastic
perfectly inelastic == perfectly inelastic

4. spring model for collision will be release in a different model as i want to keep this version with event handler.
watch out for that
« Last Edit: March 26, 2012, 02:14:03 pm by lookang »

#### lookang

• Moderator
• Hero Member
• Posts: 1772
• http://weelookang.blogspot.com
##### Re: Ejs open source java applet 1D collision carts Elastic and Inelastic Collision
« Reply #79 on: March 26, 2012, 05:05:27 pm »
more changes
set x1 = - 0.25
set x2 =  0.25

the spring force collision model need a longer time to saturate to the ideal values.

enjoy!