Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

kamilsan/cpp-double-pendulum

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
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

About

Double pendulum simulation that uses Runge-Kutta 4 algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.