Skip to content

Double pendulum simulation that uses Runge-Kutta 4 algorithm

License

Notifications You must be signed in to change notification settings

kamilsan/cpp-double-pendulum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Double pendulum

Simple simulation of double pendulum's motion, that uses Runge-Kutta 4 algorithm to solve motion equations. Custom, minimalistic image class is used to render animation frames, that then can be converted into video using ffmpeg.

Usage

In order to build this application run the following command:

cmake .
make

Make a directory for animation frames:

mkdir frames

Run:

./app

And to make a video from produced frames:

ffmpeg -framerate 30 -i frames/frame%d.ppm -c:v libx264 -pix_fmt yuv420p -crf 23 output.mp4

Releases

No releases published

Packages

No packages published