NTNUJAVA Virtual Physics LaboratoryEnjoy the fun of physics with simulations! Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
April 21, 2021, 09:10:11 am

"Vision, mission and action." ...Wisdom

 Pages: [1]   Go Down
 Author Topic: Ejs open source java applet 1D collision force model  (Read 9255 times) 0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Moderator
Hero Member

Offline

Posts: 1796

http://weelookang.blogspot.com

 « Embed this message on: March 15, 2012, 09:34:17 am »

Ejs open source java applet 1D collision force model by Fu-Kwun Hwang
a remix here is by lookang

reference:
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=193.0
thanks to Fu-Kwun Hwang for this awesome model

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
• 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!
 Ejs_open_source_java_applet_1D_collision_force_model_.png (74.14 KB, 1280x994 - viewed 586 times.) Logged
lookang
Moderator
Hero Member

Offline

Posts: 1796

http://weelookang.blogspot.com

 « Embed this message Reply #1 on: March 15, 2012, 09:37:51 am »

changes:

add force equations which is already provided by F1= getA(x1,x2,m1) and F2 = getA(x2,x1,m2)
by Fu Kwun: // awesome codes
public double getA (double xa,double xb,double m) {
if(Math.abs(xa-xb)  if(xa  else return k*(L-(xa-xb))/m;
}
return 0.;
}
 Logged
babyparty
Newbie

Offline

Posts: 1

 « Embed this message Reply #2 on: March 17, 2012, 06:12:20 pm »

Thanks...for...sharing...
 « Last Edit: March 17, 2012, 07:35:06 pm by lookang » Logged
engrg1
Jr. Member

Offline

Posts: 69

 « Embed this message Reply #3 on: March 23, 2012, 10:34:47 pm »

Hi, all.
Thanks to Prof Huang and Loo Kang for the codes.
I have edited the codes so that you can show a range of collision type (0: elastic to 1 perfectly inelastic)
Have used the equation provided by Ojalvo and Cohen, 1977). You can find the formula @ http://www.brachengineering.com/publications/SAE%202003-01-0491.pdf (Pg 3)

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
• 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!
 Logged
engrg1
Jr. Member

Offline

Posts: 69

 « Embed this message Reply #4 on: March 24, 2012, 09:41:41 am »

Hi, all.

There is some mistake in the formula in the earlier post. I have corrected in this version.

It seems that I can't get a perfect value of final velocity based on the coefficient of restitution. I suspect this is due to the modelling equation.

Thank to Prof Hwang and Loo Kang again for the codes.

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
• 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!
 « Last Edit: March 24, 2012, 11:30:38 am by engrg1 » Logged
engrg1
Jr. Member

Offline

Posts: 69

 « Embed this message Reply #5 on: March 25, 2012, 10:46:30 pm »

Have modified my previous version with more features (from Loo Kang's initial 1-d collision cart)
I am still searching for some better equation to model the impact force.
Best to run the applet full screen

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
• 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!
 « Last Edit: March 25, 2012, 10:52:55 pm by engrg1 » Logged
engrg1
Jr. Member

Offline

Posts: 69

 « Embed this message Reply #6 on: March 26, 2012, 08:30:45 am »

Just realize that this equation is rather correct. The calculation of coefficient of restitution is accurate. I have the wrong idea in the previous post as the e that is displayed is to 1 d.p.  The actual e is very close to the given e.

Sorry for the mistake..
 Logged
lookang
Moderator
Hero Member

Offline

Posts: 1796

http://weelookang.blogspot.com

 « Embed this message Reply #7 on: March 26, 2012, 09:34:54 am »

simply awesome remix

i not sure why it lag
 Logged
engrg1
Jr. Member

Offline

Posts: 69

 « Embed this message Reply #8 on: March 26, 2012, 01:36:57 pm »

just need to set the frame rate to 100. It should work fine.
 Logged
 Pages: [1]   Go Up
"Vision, mission and action." ...Wisdom