Giter Site home page Giter Site logo

douxev / n_body_simulation Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 51 KB

NBODY simulation to compare spatial observations made during an internship at Valparaiso, Chile University - Astronomy - 2018

License: GNU General Public License v3.0

Python 100.00%
python simulation gravitational-simulations nbody-gravity-simulation nbody-simulation

n_body_simulation's Introduction

N_BODY_simulation

On its way to code an NBODY simulation

The project is to simulate an NBODY system between a star, a planet and some planetesimals.

The main simulation is NBODY_RK_planet_att.py Then you can run Repopulate_planetesimals_orbits.py to visualize the orbits of each planetesimal better (adds several planetesimals on existing orbits). Link to results of simulations : https://imgur.com/a/wA4YZTJ

Solar_system_sim.py is a big approx of how the objects in the stellar system (before the asteroid belt) would interact. It uses an non precise centroid to calculate global attraction forces to each object. Still needs a quick fix.

2body_RK.py is what helped me create the NBody simulation. NBody_RK.py is quite the same as NBODY_RK_planet_att.py, but the planet does not interact with any of the planetesimals.

cartesian_to_kepler_elements.py is just a quick python module that extracts Orbital elements from speed and relative position to a massive object. It is thus used in the Repopulate_planetesimals_orbits.py script.

Also, here is a fun link to all the failed tests made to code the final NBODY_RK simulation : https://imgur.com/a/ioccPWe

n_body_simulation's People

Contributors

douxev avatar

Watchers

 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.