https://github.com/navidcy/double_pendulum
Solving and animating the double pendulum in Julia
https://github.com/navidcy/double_pendulum
dynamical-systems julia pendulum
Last synced: 11 months ago
JSON representation
Solving and animating the double pendulum in Julia
- Host: GitHub
- URL: https://github.com/navidcy/double_pendulum
- Owner: navidcy
- License: lgpl-2.1
- Created: 2021-06-19T21:46:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-21T09:55:03.000Z (over 4 years ago)
- Last Synced: 2025-02-10T02:36:39.586Z (about 1 year ago)
- Topics: dynamical-systems, julia, pendulum
- Language: Julia
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Double Pendulum
Julia scripts to make double pendulum animations. Dynamics include damping and forcing. The scripts build upon the functionality of [`DynamicalSystems.jl`](http://github.com/JuliaDynamics/DynamicalSystems.jl) package.

## Instructions
First you need to [install Julia](https://julialang.org/downloads/). We suggest using Julia version 1.6 or later.
Then clone the repository, e.g.,
```
git clone https://github.com/navidcy/double_pendulum.git
```
Enter the directory you've cloned the repository in, e.g.,
```
cd double_pendulum
```
and run
```
julia --project= -e 'using Pkg; Pkg.instantiate()'
```
to download all required dependencies. Afterwards, run
```
julia --project double_pendulum_logo.jl
```
to produce the logo above or
```
julia --project double_pendulum.jl
```
to produce a series of animations demonstrating the normal modes of the double pendulum without forcing nor dissipation and how we can excite these normal modes in the presence of forcing and dissipation.