{"id":15718649,"url":"https://github.com/ali-raheem/planetaria","last_synced_at":"2025-03-30T22:27:11.717Z","repository":{"id":138314760,"uuid":"111136753","full_name":"ali-raheem/planetaria","owner":"ali-raheem","description":"Newtonian N-body simulator in Javascript/HTML5","archived":false,"fork":false,"pushed_at":"2018-12-15T13:25:12.000Z","size":230,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-06T03:32:22.719Z","etag":null,"topics":["orbital-mechanics","orbital-simulation","particles","simulation"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ali-raheem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-17T18:21:40.000Z","updated_at":"2022-02-06T17:02:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e4310df-394d-4299-9bc1-6ad4de27400b","html_url":"https://github.com/ali-raheem/planetaria","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-raheem%2Fplanetaria","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-raheem%2Fplanetaria/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-raheem%2Fplanetaria/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali-raheem%2Fplanetaria/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ali-raheem","download_url":"https://codeload.github.com/ali-raheem/planetaria/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246388231,"owners_count":20769144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["orbital-mechanics","orbital-simulation","particles","simulation"],"created_at":"2024-10-03T21:53:36.189Z","updated_at":"2025-03-30T22:27:11.694Z","avatar_url":"https://github.com/ali-raheem.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# planetaria\nNewtonian N-body simulator in Javascript/HTML5\n\nThis simulator includes two classes of objects, particles and bodies. While particles move the bodies may not. It uses [leapfrog integration](https://en.wikipedia.org/wiki/Leapfrog_integration) to calculate motion. Particles do also interact.\n\nTo improve accuracy at the cost of speed lower dt.\n\n[Click here for demo](https://wolfmankurd.github.io/planetaria/). In the spawns a large stationary object, you can then click and drag to add particles.\n\nHere is the result of the above demo after some time.\n\n![Demo Screenshot](screenshot.png?raw=true).\n\nHere are two examples of binary orbits. In the first one one of the particles, the more massive one, starts at rest.\n\n![Binary orbits where V_2 = 0](boobs.png?raw=true).\n\nHere the first particle starts with 10 times as much velocity.\n\n![Binary orbits are quite attractive](binary.png?raw=true).\n\nAnother binary orbit here the more massive particle almost seems to be tracing a sinusoidal path.\n\n![Remarkable path of blue particle](binary2.png?raw=true).\n\nReleased under GPL 3\n\n\n## FAQ\n\n**Why is this so slow?**\n\nSpeed can be increased at the cost of accuracy by increasing the value of dt.\n\n**How accurate is this?**\n\nIt can be fairly accurate so long as the time interval is kept low compared to the forces. A good indication of accuracy is are there gaps appearing in the trajectories? If so accuracy has been degraded as dt is too large.\n\n**Can it's accuracy be improved?**\n\nDecreasing dt improves accuracy at the cost of speed.\n\n**How does this work?**\n\nEach tick the force between each particle and body is calculated. This information is used in [leapfrog integration](https://en.wikipedia.org/wiki/Leapfrog_integration).\n\n**Can I use this?**\n\nI release this under GPL v3, up to date version maintained on GitHub (https://github.com/wolfmankurd/planetaria).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali-raheem%2Fplanetaria","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali-raheem%2Fplanetaria","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali-raheem%2Fplanetaria/lists"}