Skip to content

Ullaakut/3BP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Three Body Problem

In physics and classical mechanics, the three-body problem is the problem of taking an initial set of data that specifies the positions, masses, and velocities of three bodies for some particular point in time and then determining the motions of the three bodies, in accordance with Newton's laws of motion and of universal gravitation which are the laws of classical mechanics. The three-body problem is a special case of the n-body problem. Unlike two-body problems, there is no general closed-form solution for every condition and numerical methods are needed to solve these problems.

This is a work in progress

The goal of this project is to solve and render the orbits of three bodies in two dimensions in a terminal.

How to test it

  • get -u "github.com/nsf/termbox-go"
  • git clone git@github.com:ullaakut/3BP
  • cd $GOPATH/src/github.com/ullaakut/3BP
  • go run main.go

What is there left to do

  • Find an equilibrium configuration that looks niceg
  • Add interface to select configurations
  • Add interface to manually change configuration
  • Improve UI
  • Responsiveness

About

Three body problem solver rendered in 2d in terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages