GithubHelp home page GithubHelp logo

two-body-problem's Introduction

Simulation of the two body problem in kotlin. Was accurately able to simulate the movement of the ISS around the earth. image

Contains some, presets which you can feel free to mess around with.

Usage:

  1. Download project and open in intellij idea or an ide of your choice provided it has kotlin and jupyter notebook support
  2. Change the values in the list in Main.kt to try with different objects
  3. Change the condition used in Main.kt in the repeatUntil function, the default simulates 90 minutes
  4. Change time interval if neccesary
  5. Run Main.kt, you can choose between 3 options:
    Enter 0: Go step by step with extra logging information. Press enter to go to the next step
    Enter 1: Runs the program indefinitley, no real reason to do this
    Just hit enter: Runs the program untile the choosen condition becomes true
  6. This creates results in a "results.csv" file
  7. To graph the results open Plot.ipynb and run the cell

two-body-problem's People

Contributors

lvm12 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.