lookang
|
 |
«
Embed this message
on: April 15, 2009, 11:07:54 am » |
|
 This applet simulates motion along a constrained path, such as a roller coaster would take (assuming it has safety wheels to keep it on the track in “up-side-down” situations, of course). The simulation offers a chance to explore a number of concepts associated with roller coaster physics, including conservation of energy, reaction forces and motion in a vertical plane. There are a number of example tracks which can be accessed via the drop down menu on the bottom right. The speed of the simulation can be modified by changing the calculation time step dt. recommended dt = 0.01 for accuracy results, dt = 0.05 is faster but may have computational error. http://www.compadre.org/OSP/document/ServeFile.cfm?ID=8228&DocID=873my source with the other files for the graphics are attached as the 2nd attachment, cos download the source file alone is not able to recreate the graphics of the roller coaster so use the zip for remixing, saved it into your EJS source folder Michael Gallis is the original creator, i only remixed it, refined it and fixed some bugs in the drop down menu 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 listPress 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!
 
|
*** There are 1 more attached files. You need to login to acces it!
|
« Last Edit: June 15, 2011, 03:41:32 pm by lookang »
|
Logged
|
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #2 on: April 15, 2009, 12:50:00 pm » |
|
 I remixed just now to include timer 1. t = t + dt; // because students want to verify that a curved track, time is shorter and straight track time is longer. 2. change color scheme to suit blue=displacement , magneta=velocity, red=acceleration no particular reason, just consistent with my other applets i guess. 3. added sliders and numbers to be display like TE PE KE v instead of just bars 4. added the graphical panels on the right to aid visualization of velocity & energy vs time 5. change back to the evolution differentiation page with Runge Kutta 4th solver method ( to reduce carry forward errors under euler solver method ) instead of the incremental evolution page 6. added drag force to the equation d(coaster_sv)/dt = sdd(coaster_s,coaster_sv) -b/m*coaster_sv // http://www.myphysicslab.com/RollerSimple.html15 june 2010 7 remove the PE KE and TE from main panel and made bars display on the left which made the display nicer i thought 8 width = 600 http://sgeducation.blogspot.com/2010/06/ejs-open-source-roller-coaster-physics.html15 june 2011 added circular loop to the drop down menu remove stuff to debug a web deploy problem that is fixed i think after removing the closest =true in some sliders. revert to older ODE that has codes to account for KE+PE = TE conserved Feedback are welcome! credits to Michael Gallis and Wolfgang Christian. I only remixed it, i did not make this!
|
|
« Last Edit: June 15, 2011, 03:44:57 pm by lookang »
|
Logged
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #3 on: April 27, 2009, 11:19:14 am » |
|
 from mrg3@psu.edu Michael R. Gallis roller_coaster_dynamics.pdf My thoughts: this is getting very collaborative like 21st century interconnected world. Greeting! by the way everyone, i am stuck trying to rectify programming "bug", trying to make the applet remember the presets_combo drop down list. I notice the list does not change after the reset button is pressed meaning i want to show the correct "option" dynamically. My latest xml is here if you want to help remix  YouTube. Was stuck at Portland airport from 11pm to 4am, decided to use the time to make some promotional video on the applets shared during 2010 AAPT Summer Meeting in Portland, Oregon
|
*** There are 2 more attached files. You need to login to acces it!
|
« Last Edit: July 26, 2010, 09:20:04 pm by lookang »
|
Logged
|
|
|
|
Fu-Kwun Hwang
|
 |
«
Embed this message
Reply #4 on: April 27, 2009, 06:22:17 pm » |
|
 Add _view.presets_combo.setSelectedIndex(0); to your initialization page should fix the problem. Sorry! it is not working. There is another problem! What you should do is add _view.presets_combo.setSelectedIndex(0); in action property for reset button change the reset button from _reset();
to _reset(); _view.presets_combo.setSelectedIndex(0);
You will find all the available functions when you type in _view.presets_combo.That is the way I found the above solution! By the way, you programming skill is getting better and better.
|
|
|
Logged
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #5 on: April 28, 2009, 08:33:56 am » |
|
 Add _view.presets_combo.setSelectedIndex(0); to your initialization page should fix the problem. Sorry! it is not working. There is another problem! What you should do is add _view.presets_combo.setSelectedIndex(0); in action property for reset button change the reset button from _reset();
to _reset(); _view.presets_combo.setSelectedIndex(0);
World best tips, so simple and elegant advise. Thanks Prof Hwang  You will find all the available functions when you type in _view.presets_combo. That is the way I found the above solution!
Yes! i just realized about this year of these special functions syntax, after tinkering with Christian Wolfgang's codes in the default Ejs installations examples. But i don't see any documentation on this on http://www.um.es/fem/EjsWiki/index.php/Main/HomePage. Maybe it is too new? By the way, you programming skill is getting better and better.
Nah, those codes are Michael's and Wolfgang's, i still beginner level! LOL 
|
|
« Last Edit: April 28, 2009, 08:35:28 am by lookang »
|
Logged
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #6 on: May 02, 2009, 06:39:34 pm » |
|
 i being uploading the latest version of the remix jar but it seems stuck at this version ejs_users_sgeducation_lookang_ejs_gallis_mech_RollerCoaster_RollerCoaster.jar could it be a bug? maybe the name string is too long? for your info 
|
|
|
Logged
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #7 on: May 04, 2009, 08:27:22 am » |
|
 i deleted the old jar, uploaded a new one but it is not showing up.  for your info
|
*** There are 1 more attached files. You need to login to acces it!
|
« Last Edit: May 04, 2009, 08:28:54 am by lookang »
|
Logged
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #8 on: May 05, 2009, 08:47:03 pm » |
|
 bug! seems to be ok shows everything but
|
|
|
Logged
|
|
|
|
Fu-Kwun Hwang
|
 |
«
Embed this message
Reply #9 on: May 05, 2009, 09:10:16 pm » |
|
 I might have found the problem. I was assuming that there is only one xml file in the jar file. However, you have several version xml files in the uploaded jar. The program did not know which one is the source and the program can not find the width,height and other parameter to generate the applet tag. I just modified so that it might be able to find out the correct one. Please tried it again!
|
|
|
Logged
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #10 on: May 05, 2009, 09:29:24 pm » |
|
 wonderful! it is working now. i don't remember Ejs to pack the xml work in process files, seems to be a new feature in Ejs April 2009 or so check box i didn't uncheck so it packs everything? by the way, upload to NTNU is super broadband, but downloading is crawling like 5 Kbs, did someone limit the download bandwidth? Just wondering
|
|
|
Logged
|
|
|
|
Fu-Kwun Hwang
|
 |
«
Embed this message
Reply #11 on: May 05, 2009, 10:06:02 pm » |
|
 I can download your jar file in less than 5 second when I am at home (with a woreless connection). Is it possible that it is something at your side which limit the bank width?
|
|
|
Logged
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #12 on: May 05, 2009, 10:27:57 pm » |
|
|
|
|
Logged
|
|
|
|
Fu-Kwun Hwang
|
 |
«
Embed this message
Reply #13 on: May 05, 2009, 11:05:03 pm » |
|
 I only have 3M at home. The main reason might be due to distance. You are much far away. However, I did not problem when I connected to most of the web sites at Europe or U.S. May be the connection between Taiwan and Singapore is not good enough.
|
|
|
Logged
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #14 on: June 14, 2011, 04:41:31 pm » |
|
 strange it doesn't web load. going to remove some of the controls to test
|
|
|
Logged
|
|
|
|
lookang
|
 |
«
Embed this message
Reply #15 on: June 15, 2011, 03:45:49 pm » |
|
 15 june 2011 added circular loop to the drop down menu remove stuff to debug a web deploy problem that is fixed i think after removing the closest =true in some sliders. revert to older ODE that has codes to account for KE+PE = TE conserved enjoy!
|
|
« Last Edit: June 15, 2011, 03:49:13 pm by lookang »
|
Logged
|
|
|
|
|