https://github.com/philipturner/multipendulum
A mesmerizing physics simulation
https://github.com/philipturner/multipendulum
javascript simulation
Last synced: 28 days ago
JSON representation
A mesmerizing physics simulation
- Host: GitHub
- URL: https://github.com/philipturner/multipendulum
- Owner: philipturner
- License: mit
- Created: 2021-05-07T21:52:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-09T22:49:24.000Z (almost 4 years ago)
- Last Synced: 2023-03-03T22:44:23.648Z (almost 3 years ago)
- Topics: javascript, simulation
- Language: JavaScript
- Homepage:
- Size: 559 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MultiPendulum
Try the simulation online at [philipturner.github.io/multipendulum](https://philipturner.github.io/multipendulum).
This O(n^4) simulation shows an eye-catching manifestation of entropy in a system with only conservative forces. Bump the number of pendulums up to 30 and simulate for 3.00 seconds to see it in action. This mimics how large-scale, uniform motion in the real world disperses into chaotic motion at the molecular level.
Despite being a system of rigid bodies, the simulation demonstrates the emergent property of elasticity. Set the number of pendulums to 10 and initial angular velocity to +1 rev/s counterclockwise. After 30 seconds, it overcomes the local entropy minimum sustained by an apparent elastic tension. Everything compresses toward the center with high internal kinetic energy (thermal energy).
This is the browser version of the simulation. The mobile AR app is [AR MultiPendulum](https://github.com/philipturner/ar-multipendulum).