{"id":22846380,"url":"https://github.com/blalop/bodies","last_synced_at":"2025-03-31T05:40:55.015Z","repository":{"id":228238583,"uuid":"153823378","full_name":"blalop/bodies","owner":"blalop","description":"N-body simulation","archived":false,"fork":false,"pushed_at":"2019-07-28T18:54:41.000Z","size":1556,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-06T10:14:53.516Z","etag":null,"topics":["nbody","simulation"],"latest_commit_sha":null,"homepage":"","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/blalop.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}},"created_at":"2018-10-19T18:09:38.000Z","updated_at":"2021-09-21T13:51:41.000Z","dependencies_parsed_at":"2024-03-17T19:59:51.804Z","dependency_job_id":null,"html_url":"https://github.com/blalop/bodies","commit_stats":null,"previous_names":["blalop/bodies"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blalop%2Fbodies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blalop%2Fbodies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blalop%2Fbodies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blalop%2Fbodies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blalop","download_url":"https://codeload.github.com/blalop/bodies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423494,"owners_count":20774796,"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":["nbody","simulation"],"created_at":"2024-12-13T03:28:05.529Z","updated_at":"2025-03-31T05:40:54.993Z","avatar_url":"https://github.com/blalop.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# n-body\n\n![Screenshot](screenshot.png)\n\nA N-Body simulation.\n\nThis repo contains my Bachelor's thesis.\n\nIt has three configurations:\n* brute: brute force method\n* bhtree: tree based method\n* parallel: tree based method (parallel)\n\n## Dependencies\n* Qt 5.\n* C++11 onwards\n\n## Instructions\n```\nqmake\nmake\nbin/nbody configuration [iterations] [trace]\n```\n\n## Inputs\nInput must come in a file format, in which the first line indicates the number of bodies and the second the radius of the universe.\n\nFrom the third line, each line represents a body, with the parameters as follows:\n\n```\nmass posx posy velx vly\n```\n\nThe program reads the input file from the standard input.\n\n### Provided inputs\n`10k.txt`: 10000 bodies orbiting in an elliptical way.\n\n`10k.txt`: 20000 bodies orbiting in an elliptical way.\n\n`30k.txt`: 30000 bodies orbiting in an elliptical way.\n\n`asteroids.txt`: 1000 asteroids orbiting around a star.\n\n`cluster.txt`: A 2500 particle cloud.\n\n`collapse.txt`: A 2500 particle cloud collapses into a galaxy.\n\n`dual.txt`: Two galaxies orbiting each other.\n\n`galaxy.txt`: A galaxy moving through space.\n\n`merge.txt`: Four 1000 particles collapse.\n\n`planets.txt`: A star system composed by 4 planets.\n\n`saturn.txt`: Saturn rings.\n\n`spiral.txt`: A round galaxy becomes a spiral one.\n\nCredits of the input files to Adam Chin and Rohan Kapadia.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblalop%2Fbodies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblalop%2Fbodies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblalop%2Fbodies/lists"}