NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
July 25, 2014, 02:15:10 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Wisdom consists of the anticipation of consequences. ..."Norman Cousins(1913-1990, American author)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Ejs Open Source Roller Coaster Physics Model Java Applet  (Read 19185 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
on: April 15, 2009, 11:07:54 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

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=873

my 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 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!


* rollercoaster.PNG (34.98 KB, 1024x768 - viewed 130 times.)

*** 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
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #1 on: April 15, 2009, 11:38:05 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

this is a very good applet that is from
http://www.compadre.org/OSP/items/detail.cfm?ID=8228
Access Rights:     Free access
License:   This material is released under the GNU General Public License Version 3.
Rights Holder:   Michael Gallis
Record Cloner:   Cloned from ComPADRE Item 8227 October 27, 2008 by Wolfgang Christian
Record Updated:   Feb 25, 2009 by David Winch

Suppose it will help others in the other forums like this one
http://iresearch.edumall.sg/cos/o.x?ptid=80&c=/iresearch/forum&func=showthread&t=223
acceleration along a curved ramp
« Last Edit: December 08, 2009, 09:57:01 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #2 on: April 15, 2009, 12:50:00 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

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.html
15 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.html
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


Feedback are welcome!
credits to Michael Gallis and Wolfgang Christian.
I only remixed it, i did not make this! Smiley
« Last Edit: June 15, 2011, 03:44:57 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #3 on: April 27, 2009, 11:19:14 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

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 Grin


 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
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #4 on: April 27, 2009, 06:22:17 pm » posted from:Taipei,T\'ai-pei,Taiwan

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
Code:
_reset();
to
Code:
_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
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #5 on: April 28, 2009, 08:33:56 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

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
Code:
_reset();
to
Code:
_reset();
_view.presets_combo.setSelectedIndex(0);

World best tips, so simple and elegant advise. Thanks Prof Hwang Grin


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 Wink
« Last Edit: April 28, 2009, 08:35:28 am by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #6 on: May 02, 2009, 06:39:34 pm » posted from:Singapore,,Singapore

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 Cheesy
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #7 on: May 04, 2009, 08:27:22 am » posted from:SINGAPORE,SINGAPORE,SINGAPORE

i deleted the old jar,

uploaded a new one but it is not showing up. Huh

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
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #8 on: May 05, 2009, 08:47:03 pm » posted from:Singapore,,Singapore

bug!
seems to be ok shows everything but


* bug01.PNG (103.74 KB, 1280x800 - viewed 114 times.)

* bug02.PNG (99.14 KB, 1280x800 - viewed 101 times.)

* bug03.PNG (111.62 KB, 1280x800 - viewed 102 times.)
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #9 on: May 05, 2009, 09:10:16 pm » posted from:Taipei,T\'ai-pei,Taiwan

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
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #10 on: May 05, 2009, 09:29:24 pm » posted from:Singapore,,Singapore

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 Shocked
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #11 on: May 05, 2009, 10:06:02 pm » posted from:Taipei,T\'ai-pei,Taiwan

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
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #12 on: May 05, 2009, 10:27:57 pm » posted from:Singapore,,Singapore

maybe u r rite, i did subscribe to a lower HOME Broad Band plan of 8MBps instead of the 12MBps recently

http://www.starhub.com/portal/site/Online/menuitem.935dac8c897c3fb7eaaf3b608324a5a0/?vgnextoid=333928043c6ef010VgnVCM100000464114acRCRD



maybe it is distance dependent.


* speed01.PNG (6.38 KB, 481x85 - viewed 94 times.)
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3053



WWW
«
Embed this message
Reply #13 on: May 05, 2009, 11:05:03 pm » posted from:Taipei,T\'ai-pei,Taiwan

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
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #14 on: June 14, 2011, 04:41:31 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

strange it doesn't web load.

going to remove some of the controls to test
Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1728


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #15 on: June 15, 2011, 03:45:49 pm » posted from:Singapore,,Singapore

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!


* Screen shot 2011-06-15 at PM 05.12.08.png (62.56 KB, 1172x761 - viewed 153 times.)
« Last Edit: June 15, 2011, 03:49:13 pm by lookang » Logged
Pages: [1]   Go Up
  Print  
Wisdom consists of the anticipation of consequences. ..."Norman Cousins(1913-1990, American author)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Ejs Open Source Bar Magnet Model java applet
Simulations from other web sites
ahmedelshfie 2 5138 Last post April 26, 2010, 07:48:35 pm
by ahmedelshfie
Ejs Open Source 2D Collision Model java applet
Collaborative Community of EJS
lookang 1 6614 Last post May 19, 2011, 10:56:16 pm
by lookang
Ejs Open Source Rocket Physics Java Applet Model
Collaborative Community of EJS
lookang 1 2760 Last post April 29, 2013, 02:34:40 pm
by lookang
Young Double and Multi Slits Java Applet Ejs Open Source Physics Computer Model
Collaborative Community of EJS
lookang 1 2199 Last post July 02, 2013, 09:34:00 pm
by lookang
Double Slit Wave-Particle Duality Model Open Source Physics Java Applet
Collaborative Community of EJS
lookang 1 2827 Last post July 05, 2013, 09:25:03 am
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