Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/georgeh1ll/projectile-motion-simulator
Python Simulation of Projectile Motion
https://github.com/georgeh1ll/projectile-motion-simulator
motion physics physics-simulation projectile projectile-motion projectile-motion-simulation python simualtion simulator teaching teaching-materials teaching-tool
Last synced: 5 days ago
JSON representation
Python Simulation of Projectile Motion
- Host: GitHub
- URL: https://github.com/georgeh1ll/projectile-motion-simulator
- Owner: georgeh1ll
- Created: 2023-11-03T13:15:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-03T13:42:15.000Z (about 1 year ago)
- Last Synced: 2024-11-10T16:28:53.784Z (about 2 months ago)
- Topics: motion, physics, physics-simulation, projectile, projectile-motion, projectile-motion-simulation, python, simualtion, simulator, teaching, teaching-materials, teaching-tool
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Projectile-Motion-Simulator
This is a Python application that simulates projectile motion and plots a graph of the trajectory of a particle acting under gravity.
## Features
- Simulate projectile motion with user-defined initial velocity and launch angle.
- Plot the trajectory of the projectile in a customizable graph.
- Set custom x and y limits for the graph.
- Teaching aid.## Screenshots
![Screenshot 2023-11-03 131306](https://github.com/georgeh1ll/Projectile-Motion-Simulator/assets/11806169/82c15e8e-46ce-419e-b417-9a514810c6d4)
### Using the Windows Executable (`.exe`) Version:
1. **Download the Executable:**
- Go to the [GitHub releases](https://github.com/georgeh1ll/Projectile-Motion-Simulator/releases) page.
- Find the latest release and locate the Windows executable file (e.g., `projectile_motion_simulator.exe`).
- Click on the file to download it.2. **Run the Executable:**
- Once the executable file is downloaded, double-click it to run the application.3. **Enter Initial Parameters:**
- You'll see the application window with fields for "Initial Velocity (m/s)" and "Launch Angle (degrees)."
- Enter the desired initial velocity and launch angle.4. **Set Graph Limits:**
- You can adjust the X and Y limits for the graph using the sliders.
- Set the desired limits for the graph.5. **Update the Plot:**
- Click the "Update Plot" button to visualize the projectile motion.### Using the Python Version:
1. **Download Python File:**
- Download the Python file from the repository.2. **Install Dependencies:**
- Make sure you have Python 3.x installed on your system.
- Install the required dependencies using pip:```bash
pip install tkinter matplotlib numpy
```3. **Run the Python Script:**
- Run using the following:
```bash
python3 Projectile Motion Simulator.py
```4. **Enter Initial Parameters:**
- The application window will open with fields for "Initial Velocity (m/s)" and "Launch Angle (degrees)."
- Enter the desired initial velocity and launch angle.5. **Set Graph Limits:**
- You can adjust the X and Y limits for the graph using the sliders.
- Set the desired limits for the graph.6. **Update the Plot:**
- Click the "Update Plot" button to visualize the projectile motion.
## Requirements
- Python 3.x
- tkinter
- matplotlib
- numpy## Author
[George Hill](https://github.com/georgeh1ll)
## Contributing
Contributions are welcome! If you'd like to contribute to this project, feel free to fork the repository and submit a pull request. Here are some areas where you can contribute:
- Adding new features.
- Enhancing the user interface.
- Improving code performance.
- Fixing bugs or issues.