Coder Social home page Coder Social logo

eulers-3bp's Introduction

Modeling Dynamics of Euler's Three Body Problem

DOI

How to run

Prereqs

  1. Clone the repo
  2. Install Python 3 and optionally Jupyter Notebook (pip install notebook or conda install -C conda-force notebook).
  3. Install matplotlib, numpy, and (if using Jupyter Notebook) ipywidgets with conda or pip.

Jupyter Notebook

Note: unforunately, GitHub does not have built in support for ipywidgets, so you will need to run it locally.

  1. If you have jupyter notebook installed, run jupyter notebook main.ipynb. Alternatively, use an IDE to run main.ipynb (for example, in Visual Studio Code, if you have the Python extension installed, a Jupyter Notebook kernel will automatically be started when you open the file).
  2. Run all the cells in order
  3. Change the inputs of the interact widgets (they are in the order of Euler's Method, Runge-Kutta, and Forest & Neri)
  4. Click "Run Interact"

Each method is given its own graph. The color scale indicates the time dimension of the particle (lighter is earlier, darker is later).

Jupyter Example

Standard Python

  1. Run python3 main.py
  2. Select your inputs and initial conditions

All three numerical methods will be displayed on the same graph

Standard Example

General Notes

  • Higher δt results in more accurate graphs but requires more iterations (and thus is slower)
  • Euler's Method is the least accurate by far, but also the fastest

eulers-3bp's People

Contributors

jasperswallen avatar

Watchers

James Cloos avatar  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.