Skip to content

giovixo/three

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ code for three bodies integration

Integrators

  • Euler
  • Fourth order Runge-Kutta

Input (initial conditions):

file: init.dat

Distance in AU Velocity in AU/days Mass in Solar mass

Output (trajectories):

file: output.dat

How to compile (tested on Mac OS X 10.9):

The bash program:

make three

The same program with openGL visualization

make three++

The makefile should work on Linux with little modifications.

How to run:

  1. Edit init.dat for initial conditions

  2. ./three (three++ for openGL version)

  3. Analyse the output.dat file

About

C++ code for 3-bodies simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages