https://github.com/john98nf/coupled-pendulums-animation
This projects makes a simple animation of the physical response of two coupled pendulums oscillating, without any kind of friction losses or external stimulation.
https://github.com/john98nf/coupled-pendulums-animation
animation c-plus-plus cli pendulums-animation physics physics-simulation
Last synced: about 1 year ago
JSON representation
This projects makes a simple animation of the physical response of two coupled pendulums oscillating, without any kind of friction losses or external stimulation.
- Host: GitHub
- URL: https://github.com/john98nf/coupled-pendulums-animation
- Owner: john98nf
- License: mit
- Created: 2019-06-08T11:03:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T12:57:11.000Z (about 5 years ago)
- Last Synced: 2025-02-01T21:13:40.224Z (over 1 year ago)
- Topics: animation, c-plus-plus, cli, pendulums-animation, physics, physics-simulation
- Language: C++
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Coupled-Pendulums-Animation
[](https://www.cplusplus.com/)
[](http://commonmark.org)
[](https://github.com/john98nf/Coupled-Pendulums-Animation/blob/master/LICENSE)
[](https://github.com/ellerbrock/open-source-badges/)
A simple animation of the physical response of two [coupled pendulums](https://en.wikipedia.org/wiki/Double_pendulum) oscillating, without any kind of friction losses or external stimulation. Its geometry is the one explained below. This project was created back in the summer of 2017, after my freshman year in college.
### 📌 Geometry
The first pendulum is attached to a stationary point and \
the second one is attached to the first one.
### 📌 Software Prerequesties
For trying this simple project on your own, you just have to install some basic Development Tools, a C++ compiler and [SFML](https://www.sfml-dev.org/) libraries. For Ubuntu, or some debian based distibution in general, this can be done with the following commands:
```
sudo apt update
# Development tools like gcc, g++ compilers along with make
# (Package name might varies, depending on your linux distro)
sudo apt install build-essential
# Ubuntu Package for sfml libraries. (Might varies, depending on your linux distro)
sudo apt install libsfml-dev
```
### 📌 Compiling & Running
The whole process of compiling and linking object files can be done using the *Makefile*. Just execute the ```make``` command inside this repo directory. After this operation, executable *animation.out* is created. Enjoy 😀😀!
### 📌 Screenshot