{"id":30703250,"url":"https://github.com/ayush272002/particle-motion-under-gravity","last_synced_at":"2025-09-02T16:58:03.685Z","repository":{"id":310201904,"uuid":"1039061034","full_name":"Ayush272002/Particle-Motion-Under-Gravity","owner":"Ayush272002","description":"This project simulates the motion of a particle under gravity, with a focus on visualizing the particle's bounce and trajectory. It includes both a C++ implementation and a Python demo, as well as a sample video output.","archived":false,"fork":false,"pushed_at":"2025-08-16T11:59:48.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-16T13:49:25.246Z","etag":null,"topics":["cpp","pybind11"],"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/Ayush272002.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,"zenodo":null}},"created_at":"2025-08-16T11:53:16.000Z","updated_at":"2025-08-16T12:00:40.000Z","dependencies_parsed_at":"2025-08-16T13:49:27.985Z","dependency_job_id":"b70db53b-db6c-4a4d-96ca-fc6aa1986ef6","html_url":"https://github.com/Ayush272002/Particle-Motion-Under-Gravity","commit_stats":null,"previous_names":["ayush272002/particle-motion-under-gravity"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Ayush272002/Particle-Motion-Under-Gravity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayush272002%2FParticle-Motion-Under-Gravity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayush272002%2FParticle-Motion-Under-Gravity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayush272002%2FParticle-Motion-Under-Gravity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayush272002%2FParticle-Motion-Under-Gravity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ayush272002","download_url":"https://codeload.github.com/Ayush272002/Particle-Motion-Under-Gravity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ayush272002%2FParticle-Motion-Under-Gravity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273317763,"owners_count":25084037,"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-09-02T02:00:09.530Z","response_time":77,"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":["cpp","pybind11"],"created_at":"2025-09-02T16:57:58.619Z","updated_at":"2025-09-02T16:58:03.666Z","avatar_url":"https://github.com/Ayush272002.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Particle Motion Under Gravity\n\nThis project simulates the motion of a particle under gravity, with a focus on visualizing the particle's bounce and trajectory. It includes both a C++ implementation and a Python demo, as well as a sample video output.\n\n## Features\n- Simulates particle motion under gravity\n- Visualizes bouncing behavior\n- C++ implementation (`particle.cpp`)\n- Python demo script (`demo.py`)\n- Example output video (`particle_bounce.mp4`)\n\n## Files\n- `particle.cpp`: C++ source code for the simulation\n- `demo.py`: Python script for running and visualizing the simulation\n- `requirements.txt`: Python dependencies\n- `Makefile`: Build and run commands for the project\n\n## Getting Started\n\n### Prerequisites\n- Python 3.x\n- C++ compiler (e.g., g++)\n\n\n## Setup \u0026 Usage\n\nThis project uses a `Makefile` to automate setup and running:\n\n1. **Install dependencies and set up the Python virtual environment:**\n   ```bash\n   make install\n   ```\n\n\n2. **Run the simulation and Python demo:**\n   ```bash\n   make run\n   ```\n   \u003e This will automatically build the C++ extension if it hasn't been built yet, so running `make` separately is not required.\n\n4. **Clean up build artifacts and the virtual environment:**\n   ```bash\n   make clean\n   ```\n\n\n## Output\n\n\nThe simulation output can be visualized as a video below or through the Python script's visualization:\n\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"particle_bounce.gif\" alt=\"Particle motion simulation\" width=\"480\" /\u003e\n\u003c/p\u003e\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayush272002%2Fparticle-motion-under-gravity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayush272002%2Fparticle-motion-under-gravity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayush272002%2Fparticle-motion-under-gravity/lists"}