{"id":21692861,"url":"https://github.com/hetbhalani/3-body-problem","last_synced_at":"2026-05-04T09:33:38.721Z","repository":{"id":263464848,"uuid":"890145933","full_name":"hetbhalani/3-Body-Problem","owner":"hetbhalani","description":"Learning and implementing physics using python (bcz i love physics 😉)","archived":false,"fork":false,"pushed_at":"2024-11-23T15:27:36.000Z","size":762,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T22:24:02.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/hetbhalani.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,"zenodo":null}},"created_at":"2024-11-18T04:14:29.000Z","updated_at":"2025-03-11T13:22:33.000Z","dependencies_parsed_at":"2024-11-18T18:19:53.493Z","dependency_job_id":"022200fd-b635-4b74-bdb0-fbef06e7d05f","html_url":"https://github.com/hetbhalani/3-Body-Problem","commit_stats":null,"previous_names":["hetbhalani/3-body-problem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hetbhalani/3-Body-Problem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetbhalani%2F3-Body-Problem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetbhalani%2F3-Body-Problem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetbhalani%2F3-Body-Problem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetbhalani%2F3-Body-Problem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hetbhalani","download_url":"https://codeload.github.com/hetbhalani/3-Body-Problem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hetbhalani%2F3-Body-Problem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32601560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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-25T18:17:33.788Z","updated_at":"2026-05-04T09:33:38.705Z","avatar_url":"https://github.com/hetbhalani.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🪐 3-Body Problem Simulation\r\n\r\nThis Python project visualizes the fascinating dynamics of the **3-body problem**, where three celestial bodies interact through gravitational forces. Watch as the simulation brings to life the complex orbital dance of these bodies in stunning 3D animation! because i love Physics 😍\r\n\r\n## 🎥 Demo\r\n- [Click Here to Watch the Video](https://www.canva.com/design/DAGXTjL6fIo/O6Lpq7rySUC9_DdD35Eg0w/watch?utm_content=DAGXTjL6fIo\u0026utm_campaign=designshare\u0026utm_medium=link\u0026utm_source=editor) \u003cbr\u003e\u003cbr\u003e\r\n\u003cp align=\"center\"\u003e\r\n  \u003cimg src=\"image.png\" alt=\"Description of the image\" /\u003e\r\n\u003c/p\u003e\r\n\r\n\r\n## 🌟 Key Features\r\n- 🔧 **Precise Physics**: Solves gravitational equations using `scipy.integrate.solve_ivp`\r\n- 🎨 **Beautiful Visualization**: Renders trajectories in an elegant dark-themed 3D space\r\n- 🎬 **Smooth Animation**: Real-time animation of orbital motions\r\n- ⚙️ **Customizable**: Easy modification of masses, positions, and velocities\r\n- 🎯 **Interactive**: Full 3D rotation, zoom, and pan controls\r\n\r\n## 🚀 Getting Started\r\n\r\n### Prerequisites\r\n- Python 3.x\r\n- Basic understanding of Physics and Python\r\n\r\n### Installation\r\n\r\n1. **Clone the repository**\r\n```bash\r\ngit clone https://github.com/hetbhalani/3-Body-Problem.git\r\ncd 3-Body-Problem\r\n```\r\n\r\n2. **Install dependencies**\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n3. **Run the simulation**\r\n```bash\r\npython main.py\r\n```\r\n\r\n## ⚙️ Configuration\r\n\r\nCustomize the simulation by modifying these parameters:\r\n\r\n```python\r\n# Masses\r\nm1, m2, m3 = 1, 1, 1\r\n\r\n# Initial Positions\r\ninitial_pos_1 = [1.0, 0.0, 1.0]\r\ninitial_pos_2 = [1.0, 1.0, 0.0]\r\ninitial_pos_3 = [0.0, 1.0, 1.0]\r\n\r\n# Initial Velocities\r\ninitial_velocity_1 = [0.1, 0.0, -1.0]\r\ninitial_velocity_2 = [0.0, 0.0, 1.0]\r\ninitial_velocity_3 = [0.0, 0.0, -0.6]\r\n```\r\n\r\n## 📝 Requirements\r\n- numpy\r\n- matplotlib\r\n- scipy\r\n\r\n## 💡 About the 3-Body Problem\r\nThe three-body problem is a complex physics challenge that models the motion of three masses under mutual gravitational attraction. Unlike the two-body problem, it has no general closed-form solution, making numerical methods necessary for visualization.\r\n\r\n## 🤝 Contributing\r\nContributions are welcome! Feel free to:\r\n- 🐛 Report bugs\r\n- 💡 Suggest features\r\n- 🔧 Submit pull requests\r\n\r\n## ⭐ Show Your Support\r\nIf you found this project interesting or helpful, please consider giving it a star! ⭐\r\n\r\n## 🙏 Acknowledgments\r\nspecial thanks to \"Younes Lab\" to teach me this \u003cbr\u003e\r\ncheck it out here: https://youtu.be/FXkH9-4EN_8?si=Ye7P9cZJWohRFme_\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhetbhalani%2F3-body-problem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhetbhalani%2F3-body-problem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhetbhalani%2F3-body-problem/lists"}