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 27, 2008, 02:27:46 pm

Title: Free Fall Cartesian with friction 2D Wolfgang Christian and Francisco Esquembre
Post by: lookang on November 27, 2008, 02:27:46 pm
The model assumes that energy is lost only during the floor collision.  Modify the differential equation to include energy loss due to air friction.  This energy loss can be modeled by including a friction (fluid drag) force Ffriction that is proportional to the velocity:
Ffriction = - b v .
Because drag is a vector force it will affect the ball's motion in both the x and y directions.  Compare the effect of friction in this activity with the one-dimensional Free Fall activity.

How i implement the model is

1. add variable k
2. add variable mass
3. dvy/dt = -g - k/mass*vy
4. dvx/dt = -  k/mass*vx

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