NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
September 23, 2018, 05:56:04 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"In theory, theory and practice are the same. In practice, they are not." ..."Albert Einstein (1879~1955, Mathematical physicist, Nobel Prize 1921-Physics)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Open Source Ejs Newton's First Law java applet  (Read 12082 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: 1787


http://weelookang.blogspot.com


WWW
«
Embed this message
on: November 25, 2008, 04:45:08 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

Open Source Ejs Newton's First Law java applet
Newton's First Law EJS applet by lookang

First law
   "A body continues to maintain its state of rest or of uniform motion unless acted upon by an external unbalanced force." This law is known as the law of inertia. http://en.wikipedia.org/wiki/Newton%27s_laws_of_motion


This has a lot of potential of students doing by modifying equations in EJS.
simple enough i hope!

PS: press "Enter" on the keyboard when keying in new values? The input field need to be white (registered by applet), if it is still yellow (unregistered), press "enter" on the keyboard

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!


* newtonfirstlaw.PNG (14.06 KB, 360x423 - viewed 515 times.)
« Last Edit: June 11, 2010, 04:16:45 pm by lookang » Logged
lookang
Moderator
Hero Member
*****
Offline Offline

Posts: 1787


http://weelookang.blogspot.com


WWW
«
Embed this message
Reply #1 on: November 25, 2008, 04:50:03 pm » posted from:SINGAPORE,SINGAPORE,SINGAPORE

adapted from F:\EasyJavaSimulation\EJS_4.1_081121\EJS_4.1\workspace\source\users\davidson\wochristian\newton_law

Newton's First Law
Lex I: Corpus omne perseverare in statu suo quiescendi vel movendi uniformiter in directum, nisi quatenus a viribus impressis cogitur statum illum mutare.  (Isaac Newton 1687)
In 1687 Isaac Newton wrote in the Principia Mathematica "An object at rest will remain at rest unless acted upon by an external and unbalanced force. An object in motion will remain in motion unless acted upon by an external and unbalanced force."  This law implies that it is possible to select a reference frame, called an inertial reference frame, in which a free particle moves without any change in velocity. The First Law is often simplified as follows: An object in motion will remain in motion unless acted upon by another force.
What  is interesting about this Ejs model is that dragging the on-screen ball or the arrow automatically change the model's variables.  Double click on the green arrow in the Launcher table of contents tree to run the First Law model.  You can drag the particle to set its position and you can drag the arrow to set the particle's velocity.
The Ejs implementation of Newton's first law is very simple.  The Evolution workpanel merely advances the position and time.
x = x + vx*dt;
y = y + vy*dt;
t = t + dt;
Note that the equals sign does not represent mathematical equality when used in Java code.  The equals sign is a replacement operation that says:  "Replace the value on the left hand side with the value of the expression on the right hand side."
References:
The First Laws model is  a designed to teach Ejs modeling.  Right click within the simulation to examine this model in the Ejs modeling and authoring tool.  See:
"Modeling Physics with Easy Java Simulations" by Wolfgang Christian and Francisco Esquembre, The Physics Teacher, November 2007, 45 (Cool, pp. 475-480.
The Easy Java Simulations (EJS) manual can be downloaded from the ComPADRE Open Source Physics collection and from the Ejs website.
Note:
This simulation was created by Wolfgang Christian using the Easy Java Simulations (Ejs) modeling tool. You can examine and modify this simulation if you have Ejs installed by right-clicking within a plot and selecting "Open Ejs Model" from the pop-up menu.
Information about Ejs is available at: .

The First Law model was built with the Easy Java Simulations (Ejs) modeling tool.  Ejs is a Java program that enables both programmers and novices to quickly and easily prototype, test, and distribute packages of Java simulations. It can be downloaded from the Ejs website and installed (unzipped) into a directory of your choice. 
http://www.um.es/fem/Ejs
An important feature of the programs in the jar file is that it was created in such a way that users can return to the Ejs authoring tool at any time to examine, modify, and adapt the Ejs models.  Right-click within the simulation and select Open Ejs Model to invoke this feature.  (You must, of course, have already downloaded and installed Ejs.)  The Ejs authoring tool will appear.

My contributions are
1. a slider time bar variable t...............yes!! i finally made one myself thanks to prof Hwang's comment about thinking about how to implement it in EJS.

2. ODE equation dx/dt = vx, dy/dt = vy instead of the equations originally

3. panel for inputs of variables like vx and vy so that students can explore when if scenarios


source code
download the *.jar for using the applet on standalone without internet connection.
« Last Edit: November 26, 2008, 08:31:37 am by lookang » Logged
Pages: [1]   Go Up
  Print  
"In theory, theory and practice are the same. In practice, they are not." ..."Albert Einstein (1879~1955, Mathematical physicist, Nobel Prize 1921-Physics)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
Ejs Open source Newton's Cradle java Applet by Paco customized by lookang
Collaborative Community of EJS
lookang 11 21065 Last post May 17, 2011, 02:53:45 am
by lookang
Open Source Ejs Kinematics of 1 object vertically java applet
Collaborative Community of EJS
lookang 0 5012 Last post January 19, 2009, 01:43:48 pm
by lookang
Ejs Open Source Newton's Cradle Java Applet by Fu-Kwun & lookang
Collaborative Community of EJS
lookang 6 20427 Last post July 26, 2011, 07:57:42 pm
by lookang
Ejs Open Source Newton's Mountain Projectile Orbits Model java applet
Collaborative Community of EJS
lookang 5 16156 Last post June 17, 2013, 07:34:00 am
by lookang
Ejs Open Source Newton's Law of Cooling Model Java Applet
Collaborative Community of EJS
lookang 3 10397 Last post April 25, 2012, 09:59:44 pm
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.069 seconds with 23 queries.since 2011/06/15