Introduction

## Projectile Motion with System of Masses and Spring

This is the simulation of the motion of two masses m and m1 situated at the ends of a spring of length L0 and negligible mass. The motion is restricted to two spatial dimensions, with the y-axis representing the vertical (if gravity is switched on).

We use Hooke's law for the spring force, and include a damping term that is proportional to the difference of the velocities of the masses on both ends of the spring.

Applying Newton's Second Law yields a second-order ordinary differential equation, which we solve numerically in the simulation and visualise the results.

Activities

## Activities

1. Drag the red mass to impart an initial velocity, and see how the system evolves.
2. Observe what happens when you do the same, but with gravity switched on.
3. Try changing the relative mass of the blue ball, and notice how the centre of gravity shifts.
4. Try varying the spring constant and/or the damping coefficient while the simulation runs.
Masses and Spring Projectile

### Translations

Code Language Translator Run

### Software Requirements

SoftwareRequirements

 Android iOS Windows MacOS with best with Chrome Chrome Chrome Chrome support full-screen? Yes. Chrome/Opera No. Firefox/ Samsung Internet Not yet Yes Yes cannot work on some mobile browser that don't understand JavaScript such as..... cannot work on Internet Explorer 9 and below

### Credits

Wolfgang Christian; Francisco Esquembre; Zhiming Darren TAN

### Other resources

1. http://www.compadre.org/Physlets/mechanics/illustration3_4.cfm Illustration 3.4: Projectile Motion by W. Christian and M. Belloni
2. http://physics.weber.edu/amiri/director-dcrversion/newversion/airresi/AirResi_1.0.html Trajectory of a ball with air resistance by Farhang Amiri
3. http://www.walter-fendt.de/html5/phen/projectile_en.htm HTML5 version of Projectile Motion by Walter Fendt
4. http://www.compadre.org/OSP/items/detail.cfm?ID=7299&S=7 Ejs Intro 2DMotionLab Model by  Anne Cox, Wolfgang Christian, and Mario Belloni
5. http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=623.0 Projectile motion with equations by Fu-Kwun Hwang
6. http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1832.0 Airdrag by Fu-Kwun Hwang and ahmedelshfie