https://github.com/howingyip/double-pendulum-simulation
Double pendulum simulation powered by SciPy and Matplotlib
https://github.com/howingyip/double-pendulum-simulation
Last synced: 9 months ago
JSON representation
Double pendulum simulation powered by SciPy and Matplotlib
- Host: GitHub
- URL: https://github.com/howingyip/double-pendulum-simulation
- Owner: HoWingYip
- Created: 2023-03-11T09:21:44.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-11T10:09:47.000Z (almost 3 years ago)
- Last Synced: 2025-02-02T09:13:51.313Z (11 months ago)
- Language: Jupyter Notebook
- Size: 9.54 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# double-pendulum-simulation
Double pendulum simulation powered by SciPy and Matplotlib. Made in 2022.
Main code lies in `double-pendulum.ipynb`. Video files are organised according to the integration method used to generate the respective simulations, namely under the directories `dop853/` and `rk45/`.
## Note on numerical integration methods
DOP853 provides far higher accuracy than RK45. Use the former if you would like conservation of energy to (largely) hold — which of course you do... right?
Integration method can be set using the `method` argument in the call to `scipy.integrate.solve_ivp`. (See https://docs.scipy.org/doc/scipy/reference/integrate.html)