{"id":18564253,"url":"https://github.com/notashelf/projectile-simulation","last_synced_at":"2025-05-15T18:33:01.740Z","repository":{"id":198946192,"uuid":"701869313","full_name":"NotAShelf/projectile-simulation","owner":"NotAShelf","description":"Simulate the trajectory of a projectile while accounting for air resistence.","archived":false,"fork":false,"pushed_at":"2023-12-11T09:03:54.000Z","size":30,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T13:13:22.681Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NotAShelf.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}},"created_at":"2023-10-07T19:56:23.000Z","updated_at":"2023-10-08T15:42:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1fe5730-c38e-4fe3-ac10-a0c30b2f4bde","html_url":"https://github.com/NotAShelf/projectile-simulation","commit_stats":null,"previous_names":["notashelf/projectile-simulation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fprojectile-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fprojectile-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fprojectile-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotAShelf%2Fprojectile-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotAShelf","download_url":"https://codeload.github.com/NotAShelf/projectile-simulation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254397755,"owners_count":22064555,"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":[],"created_at":"2024-11-06T22:14:42.235Z","updated_at":"2025-05-15T18:33:01.713Z","avatar_url":"https://github.com/NotAShelf.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Projectile Simulation\n\nThis project simulates the motion of a projectile with air resistance.\n\n## Installation\n\n1. Clone this repository.\n2. Install the required packages using pip:\n\n```shell\npip install -r requirements.txt\n```\n\n## Usage\n\nRun the `main.py` script:\n\n```shell\npython main.py\n```\n\nOr alternatively, with your own parameters:\n\n```shell\npython main.py --g 9.8 --C_d 0.02 --v_init 150 --theta 45 --h_init 20 --dt 0.01 --t_end 10\n```\n\n### Arguments\n\n- `--g`: The acceleration due to gravity in m/s^2. Default is 9.81.\n- `--C_d`: The drag coefficient. Default is 0.01.\n- `--v_init`: The initial velocity in m/s. Default is 100.\n- `--theta`: The launch angle in degrees. Default is 180.\n- `--h_init`: The launch height in meters. Default is 10.\n- `--dt`: The time step in seconds. Default is 0.01.\n- `--t_end`: The total time of the simulation in seconds. Default is 10.\n\n## Testing\n\nTests can be invoked by simply running `pytest` in the directory. If you are contributing something new to the program, do make sure\nthat it is appropriately tested in `test_main.py`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotashelf%2Fprojectile-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotashelf%2Fprojectile-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotashelf%2Fprojectile-simulation/lists"}