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! 👩💻