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: lookang on November 26, 2008, 02:07:29 pm



Title: Free Fall modelling with Friction force F = k*v and a plot of Energy vs time
Post by: lookang on November 26, 2008, 02:07:29 pm
Energy
Add a plot of total energy E(t) to the simple free fall model.   Why is the energy plot similar to a plot of radioactive decay?  Plots are described in the Ejs manual but note that the Pendulum model in this package includes a plot and can be used as a template for this activity.


My contributions are
1. variable KE
2. variable PE
3. variable TE

4. add fix relations

Code:
KE = 0.5*mass*vy*vy;
PE = mass*g*y;
TE = KE +PE;

5. add plottingPanel

6. add trace, input X = t, input Y = KE , line color = MAGENTA
7. add trace, input X = t, input Y = PE , line color = BLUE
8. add trace, input X = t, input Y = TE , line color = BLACK

9. Change position of DrawingPanel to right
10.  Change position of plottingPanel to centre // better view of the graphs called plottingPanel

source code
download the *.jar for using the applet on standalone without internet connection.