{"id":21732328,"url":"https://github.com/pwhiddy/nbody-gravity","last_synced_at":"2026-04-02T01:15:24.763Z","repository":{"id":122039727,"uuid":"81787792","full_name":"PWhiddy/Nbody-Gravity","owner":"PWhiddy","description":"A small but powerful nbody gravity simulator with a built-in renderer","archived":false,"fork":false,"pushed_at":"2022-10-10T22:02:00.000Z","size":488,"stargazers_count":104,"open_issues_count":1,"forks_count":14,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-10T18:06:46.363Z","etag":null,"topics":["astronomy","barnes-hut","cosmology","dark-matter","gravity","nbody","physics","simulation"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PWhiddy.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-02-13T05:21:17.000Z","updated_at":"2025-10-10T05:03:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"523bcf9e-a1c2-4a57-8e72-d2cdd4474b19","html_url":"https://github.com/PWhiddy/Nbody-Gravity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PWhiddy/Nbody-Gravity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PWhiddy%2FNbody-Gravity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PWhiddy%2FNbody-Gravity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PWhiddy%2FNbody-Gravity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PWhiddy%2FNbody-Gravity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PWhiddy","download_url":"https://codeload.github.com/PWhiddy/Nbody-Gravity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PWhiddy%2FNbody-Gravity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:05:07.454Z","status":"ssl_error","status_checked_at":"2026-04-02T00:56:46.496Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["astronomy","barnes-hut","cosmology","dark-matter","gravity","nbody","physics","simulation"],"created_at":"2024-11-26T04:29:44.042Z","updated_at":"2026-04-02T01:15:24.746Z","avatar_url":"https://github.com/PWhiddy.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nbody Gravity Simulator\nImplements the Barnes–Hut algorithim to handle the gravitional interaction of over a million particles in 3D space. Currently set up to generate disks of particles \nIncludes a renderer that produces high quailty PPM images of the simulation. These can be compiled into animations. [Example](https://drive.google.com/file/d/0B4Kdo1Bslx5PbUFQY3ZPT2NQM2M)\n\n# Setup\nUse build.bash to create the program. That's it! Executing \"run\" will immediately start simulating and rendering to the images folder until canceled or frame limit is reached. Note: This may consume significant storage space.  \n\nNote: Some versions of clang on MacOS do not support openmp. You can build using another compiler or simply by removing the -fopenmp option from build.sh (this will incur a performance decrease of course)\n\nInitial conditions parameters can be modified in the Constants.h file, and are baked into the program so build must be run again after making changes.  \n\nIf you have ffmpeg you can use createVideo.bash to generate a video from the images.\n\n# Images\n\nInitialized as a uniform disk\n![alt tag](http://i.imgur.com/KarubZw.png?1)\n\nHigher disk mass\n![alt tag](http://i.imgur.com/om7hTpE.png?1)\n\n\"Hot\" Disk\n![alt tag](http://i.imgur.com/UVLfwuN.png)\n\n# Outtakes \nMany interesting things happened as I frequenty broke my code\n![alt tag](http://i.imgur.com/TBJekOz.png)\n![alt tag](http://i.imgur.com/XblJuai.png)\n![alt tag](http://i.imgur.com/HPZvu8b.png)\n![alt tag](http://i.imgur.com/PkBY0PF.png?1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwhiddy%2Fnbody-gravity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpwhiddy%2Fnbody-gravity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpwhiddy%2Fnbody-gravity/lists"}