A simple animation of the physical response of two coupled pendulums 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.
The first pendulum is attached to a stationary point and
the second one is attached to the first one.
For trying this simple project on your own, you just have to install some basic Development Tools, a C++ compiler and SFML 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
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 😀😀!