GithubHelp home page GithubHelp logo

barthpaleologue / orbitalstudy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 529 KB

Home Page: https://barthpaleologue.github.io/orbitalStudy/dist/kepler.html

HTML 9.35% TypeScript 80.13% JavaScript 10.52%

orbitalstudy's Introduction

Study about orbital mechanics

CodeQL NodeJS with Webpack pages-build-deployment

The goal is to create a simple algorithm to create procedural solar systems implementing elliptical orbits and planet satellites.

showcase

Newton

Online demo here: https://barthpaleologue.github.io/orbitalStudy/dist/newton.html

In this simple simulator we create physical bodies around a central sun, and give them tangential velocity to give them near circular orbits :

Documentation : https://www.wikiwand.com/en/Circular_orbit#/Velocity

And then we apply Newton's second law to make them move :

Yet it comes with a few drawbacks : orbits with a lot of bodies are very unstable and you have to run the entire simulation to know the position of a body at a time t. So we have to try something else.

Kepler

Online demo here: https://barthpaleologue.github.io/orbitalStudy/dist/kepler.html

We are trying to solve this equation describing the orbit of a body :

We can't solve it exactly for E so we use approximations like Newton's method. Then we compute the orbital period using this equation :

Documentation : https://www.wikiwand.com/en/Kepler's_laws_of_planetary_motion#/First_law

This project has been created using webpack-cli, you can now run

npm run build

or

yarn build

to bundle your application

orbitalstudy's People

Contributors

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