NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Collaborative Community of EJS => Topic started by: LeeTl on February 18, 2009, 04:00:07 am



Title: Understanding momentum and its relation to newton 2nd law (constant force)
Post by: LeeTl on February 18, 2009, 04:00:07 am
This applet allows learner to learn that momentum as a quantity to compare motion of different bodies. It also allows both a qualitative and quantitative understanding why Newton's 2nd law is defined by means of the change in momentum.


Title: Re: Understanding momentum and its relation to newton 2nd law (constant force)
Post by: lookang on February 18, 2009, 07:41:46 am
ah.......ic....

there is a script that generate automatically a picture file in the FIRST attachment.

so u need to remove both the jar file and png attachment

save/post


this time upload the png first

save/post again!! test it, the script is sometimes buggy i think

then the other files like the xml and jar as distribution.

if you got problem then look at my examples!


Title: Re: Understanding momentum and its relation to newton 2nd law (constant force)
Post by: lookang on February 18, 2009, 08:01:38 am
This applet allows learner to learn that momentum as a quantity to compare motion of different bodies. It also allows both a qualitative and quantitative understanding why Newton's 2nd law is defined by means of the change in momentum.


since F  α  d(m*v)/dt

so the graph of (m*v) versus t , the gradient is F.

perhaps you want to show with dynamics arrows the meaning of this F in relation to the (m*v) in both the simulation view and the graph view, to allow easy association of the meaning of Newton's 2nd law is defined by proportional to the change in momentum with respect to time.


good effort LeeTl, keep up the good work :)


Title: Re: Understanding momentum and its relation to newton 2nd law (constant force)
Post by: LeeTl on February 19, 2009, 04:10:08 am
Hi LooKang, how do I upload the simulation like what you had done? You mention some scripts etc?


Title: Re: Understanding momentum and its relation to newton 2nd law (constant force)
Post by: Fu-Kwun Hwang on February 19, 2009, 07:16:48 am
Dear all EJS users:

I am going to add code so that it will be easier for you to upload EJS simulations.


Title: Re: Understanding momentum and its relation to newton 2nd law (constant force)
Post by: lookang on February 19, 2009, 08:33:15 am
Hi LooKang, how do I upload the simulation like what you had done? You mention some scripts etc?

How to explain?

Youtube! this week i make video


you click "Quote" and you can see how/what i embeded the applet in web.

Expert mode instruction
1. in EJS recompile for web implementation
2. select self contained jar for MAC OSX, last time i know common library MAC OSX cannot view
3. upload files your server
4. open the web applet using firefox and look at the source
5. copy the applet codes
6. in your post in this forum, paste it, i usually post in the first post
7. copy the web address of your web applet
8. paste it into the codebase="." into something like codebase=http://home.phy.ntnu.edu.tw/~lookang/EJS_4.1_090208/"
9. remove all the spaces in the applet codes
10. post
11. may need to modify post to get rid of the invisible spaces/blanks
12. post


Is the sample viewable as codes? the code tag in this forum is not working properly.
i post in my forum u go see.
http://66.7.205.91/~lookangc/index.php?topic=936.msg1903#msg1903

Code:
<applet code="Collision1Dwee01_pkg.Collision1Dwee01Applet.class" codebase="http://home.phy.ntnu.edu.tw/~lookang/EJS_4.1_090208/" archive="common.jar,Collision1Dwee01.jar"name="Collision1Dwee01"  id="Collision1Dwee01"width="790" height="630"><param name="draggable" value="true"></applet>

P.S. from Fu-Kwun
You forgot to replace > and < with &gt; and &lt;


Title: Re: Understanding momentum and its relation to newton 2nd law (constant force)
Post by: lookang on February 19, 2009, 08:42:32 am
Dear all EJS users:

I am going to add code so that it will be easier for you to upload EJS simulations.


please make it super cool like yours

with creative commons license
with download as standalone options
with all the cool stuff :)


Title: New upload options for EJS users
Post by: Fu-Kwun Hwang on February 19, 2009, 01:38:51 pm
Dear EJS users:

 You will find Upload EJS Simulation check box next to Spell Check button.
If it is checked, a new input area will appear. Following the steps to upload EJS Simulation (EJS jar file).
Select ejs_XXXX.jar from file folder (The format has to be exact the same. XXX will be extracted from file name and show up in the following line)
Enter width and height into text field
Enter class name into text field (it might look like users.ntnu.fkh.collision_pkg.collision.class )
You can find the above information under workspace/output/users/YourworkingFolder/XXX_Simulation.html

You still need to post a valid message and the uploaded simulation will be shown at the end.
I did not add upload xml option, because it can be added as attached file.