{"id":23672751,"url":"https://github.com/romelium/n-body-simulation-cpp","last_synced_at":"2025-12-19T14:30:24.976Z","repository":{"id":270147200,"uuid":"909421526","full_name":"Romelium/n-body-simulation-cpp","owner":"Romelium","description":"A somewhat well documented 3D n-body simulator in C++. There are build and run scripts for nearly all platforms if you have clang and a C++ standard library implementation that support c++20.","archived":false,"fork":false,"pushed_at":"2024-12-28T19:31:58.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T20:24:32.546Z","etag":null,"topics":["3d-physics","ascii","ascii-art","ascii-graphics","cli","cplusplus","cpp","cpp20","documented","gravity","gravity-simulation","n-body","n-body-simulation","n-body-simulator","newton-universal-gravitation","physics-simulation","physics-simulator","well-documented"],"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/Romelium.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":"2024-12-28T16:50:00.000Z","updated_at":"2024-12-28T19:53:45.000Z","dependencies_parsed_at":"2024-12-28T20:34:35.636Z","dependency_job_id":null,"html_url":"https://github.com/Romelium/n-body-simulation-cpp","commit_stats":null,"previous_names":["romelium/n-body-simulation-c--"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romelium%2Fn-body-simulation-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romelium%2Fn-body-simulation-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romelium%2Fn-body-simulation-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romelium%2Fn-body-simulation-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Romelium","download_url":"https://codeload.github.com/Romelium/n-body-simulation-cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239699469,"owners_count":19682574,"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":["3d-physics","ascii","ascii-art","ascii-graphics","cli","cplusplus","cpp","cpp20","documented","gravity","gravity-simulation","n-body","n-body-simulation","n-body-simulator","newton-universal-gravitation","physics-simulation","physics-simulator","well-documented"],"created_at":"2024-12-29T11:18:41.396Z","updated_at":"2025-12-19T14:30:24.419Z","avatar_url":"https://github.com/Romelium.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# N Body Simulation C++\n\nA somewhat well documented 3D n-body simulator in C++. There are build and run scripts for nearly all platforms if you have clang and a C++ standard library implementation that support c++20.\n\n## Windows Clang and MSVC STL Installation\n\n### Clang\n\n- Install [LLVM](https://releases.llvm.org/)\n- Add `C:\\Program Files\\LLVM\\bin` to [PATH](https://stackoverflow.com/a/44272417/17921095)\n\n### MSVC STL\n\n- Install [Build Tools for Visual Studio 2022](https://aka.ms/vs/17/release/vs_BuildTools.exe)\n- Open the **Visual Studio Installer**. If it doesn’t open automatically, locate and launch the **Visual Studio Installer**.\n- In **Build Tools for Visual Studio 2022**, click the **Modify** button.\n- In the Workloads tab, check the option labeled **Desktop development with C++**.\n- In **Installation Details** and **Optional**, have **MSVC v143** checked. MSVC is the only one we need, so you can uncheck the others.\n- Click the **Modify** button at the bottom-right corner to start the installation.\n\n## 500 Bodies\n\n![500 Bodies](./images/500-bodies.gif)\n\n## 250 Bodies\n\n![250 Bodies](./images/250-bodies.gif)\n\n## 100 Bodies\n\n![100 Bodies](./images/100-bodies.gif)\n\n## 50 Bodies\n\n![50 Bodies](./images/50-bodies.gif)\n\n## 10 Bodies\n\n![10 Bodies](./images/10-bodies.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromelium%2Fn-body-simulation-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromelium%2Fn-body-simulation-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromelium%2Fn-body-simulation-cpp/lists"}