Welcome to the Planetary System Simulation project! This web application allows you to simulate the trajectories of two planets in a gravitational system.
๐ Simulation Form: Enter the masses, initial positions, and velocities of two planets.
๐ Trajectory Prediction: Calculate the predicted trajectories based on your input.
๐ฅ Live Simulation: View the trajectories interactively with Plotly.
๐ฅ๏ธ Python: Backend powered by Flask.
๐ข NumPy: For numerical computations and array handling.
๐ Plotly: To create interactive visualizations of the trajectories.
๐ HTML/CSS: For the frontend user interface.
To run this project locally:
- ๐ Clone the repository to your local machine.
- ๐ฆ Install the required dependencies:
pip install -r requirements.txt - ๐ฅ๏ธ Start the Flask application:
python app.py - ๐ Open your web browser and navigate to
http://localhost:5000
- ๐ Enter the masses, initial positions, and velocities of the two planets in the provided form.
- ๐ฎ Click "Predict Trajectory" to simulate and visualize the paths of the planets.
- ๐ Use the interactive plot to observe the planetary movements.
- ๐ฌ Optionally, click "Show Live Simulation" for a dynamic visualization of the trajectories.
We welcome contributions! If you have suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
๐จโ๐ป Happy simulating! ๐ฉโ๐ป