{"id":19063431,"url":"https://github.com/nmuldavin/nbodyintegrator","last_synced_at":"2025-10-10T23:35:44.023Z","repository":{"id":177498764,"uuid":"45582984","full_name":"nmuldavin/NBodyIntegrator","owner":"nmuldavin","description":"A C++ simulation engine for efficiently solving the N-Body problem","archived":false,"fork":false,"pushed_at":"2017-05-16T17:01:20.000Z","size":427,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T02:41:21.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nmuldavin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-11-05T02:49:13.000Z","updated_at":"2023-05-17T14:09:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"13a18c66-6a26-40f4-813d-f6c8e1b4f608","html_url":"https://github.com/nmuldavin/NBodyIntegrator","commit_stats":null,"previous_names":["nmuldavin/nbodyintegrator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nmuldavin/NBodyIntegrator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmuldavin%2FNBodyIntegrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmuldavin%2FNBodyIntegrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmuldavin%2FNBodyIntegrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmuldavin%2FNBodyIntegrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nmuldavin","download_url":"https://codeload.github.com/nmuldavin/NBodyIntegrator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nmuldavin%2FNBodyIntegrator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005572,"owners_count":26083919,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-09T00:35:57.901Z","updated_at":"2025-10-10T23:35:43.994Z","avatar_url":"https://github.com/nmuldavin.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NBodyIntegrator\n\nThis code and accompanying documentation was the culmination of a couple years of independent research on N-Body simulations in galactic astrophyics that I undertook as part of my education at Reed College from 2011 to 2013. It was designed to be useful to students at Reed who want either a pre-built code to use to study some problem, or a comprehensive guide to building one's own N-Body simulation code (which can be surprisingly hard to find). In this light, I made an effort to document everything extremely well and to include detailed conceptual guides (see the attached PDFs.) \n\nThe code itself, which uses an adaptive-timestep algorithm and a Barnes-Hut Treecode force calculation routine, is designed to be used as easily as possible, with the user only needing to modify a few input parameters. \nFor a PDF guide to Barnes-Hut Treecodes in general and how to edit this code, see the [treecode guide](treecodeguide.pdf).\n\nAdditionally included is code used to construct the initial conditions of a disk galaxy using the Hernquist Method. The methods used there are described [here](GalacticInitialConditions.pdf).\n\n## Use\n\nTo use you will need the [GNU compiler](https://gcc.gnu.org/). On Macs, this comes bundled with XCode developer tools.\n\nTo run the main integrator, first edit the config options in [main.cpp](main.cpp) then compile and run with\n\n```\nmake -f nbd.make\n./nbody\n```\n\nThe initial conditions routine is found in [makegalaxy.cpp](makegalaxy.cpp). To use, compile and run with\n\n```\nmake -f init.make\n./init\n```\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmuldavin%2Fnbodyintegrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnmuldavin%2Fnbodyintegrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnmuldavin%2Fnbodyintegrator/lists"}