Git Product home page Git Product logo

nbodysimulator's Introduction

An $n$-body simulator

The current state of this program.

This program isn't anything special, just an attempt at writing a generic $n$-body simulation in Julia. This doesn't really do much differently from other similar projects. There's still much to do, so check back later. This program can perform simulations in any arbitrary number of dimensions, which is quite cool, but I'm not sure if it's really important—if you're really into, say, gravity in 6 dimensions, you might really enjoy this program. Also, it's pretty easy to define any arbitrary force you might want, though I'm not sure if that's a feature in most other programs like this.

I think it's worth noting this is a hobby project to improve my lackluster programming skills—if you're looking for serious software, I would highly suggest you check out SciML's NBodySimulator.jl, or the excellent DynamicalSystems.jl package. This software is inefficient, it will likely be buggy, and may go without decent documentation—I'm also writing this program under a considerable creative restraint, using as little outside code as possible. (It sucks being separated from all of those really nice SciML packages.)

In the future, I might implement a routine for solving the Heisenberg equations of motion for particles, rather than Hamilton's equations, but that's a big maybe. There would be a lot of linear algebra involved, and I don't see a point in getting that involved for a hobby project. Programming this has already been a lot of effort, in particular, it's been tempting to just use a library, instead of solving differential equations with my own code—it turns out, programming and physics are both quite hard.

This program uses the MIT license.

nbodysimulator's People

Contributors

pretentioususername 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.