Skip to content

This is a physics simulation of pulleys, inclines, gravity, and angular momentum. You can vary different variables such as weight, angle of incline and see their effects on the movement and speed of the blocks attached.

Notifications You must be signed in to change notification settings

rhansolo/PhysicsSimulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Physics Simulation

by Robin Han and Peter Jin

For our final project, we decided to make an visual atwood machine with inclines to demonstrate how blocks would move under different conditions.

The user is able to adjust the following variables with the sliders:

  • Angle of each incline
  • Friction coefficient of each block
  • Mass of each block
  • Mass of pendulum

As you move the sliders, the diagram below the sliders changes with it. Our program also caculates the forces acting on each block and displays it on the Free Body Diagram, with each force represented by a different color displayed on the key on its right.

Right below the sliders, there is a button that says "Animate". If you click it, the diagram would show how the blocks slide given its set conditions. If the blocks do not move, it means either the frictional force is too large or the blocks are in equilbrium.

Finally, on the bottom right the calculated values of each of the forces is displayed for the user as well as the overall acceleration and speed of the blocks as they slide.

NOTE: You need to install a package to be able to run this code

Our project requires the user to install controlP5. You can find the link to download it here

About

This is a physics simulation of pulleys, inclines, gravity, and angular momentum. You can vary different variables such as weight, angle of incline and see their effects on the movement and speed of the blocks attached.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published