A Python application to simulate, visualize, and analyze the interference of two waves. The simulator provides interactive plots and customizable parameters, making it ideal for educational purposes and wave analysis.
- Customizable Waves: Adjust frequency, amplitude, and phase for two waves.
- Visual Interference: Generate constructive and destructive interference plots.
- Interactive Simulation: Real-time adjustments with sliders for immediate feedback.
- PDF Export: Save all generated wave plots as a single PDF file.
- User-Friendly Interface: Built with Tkinter for easy navigation and usage.
Make sure you have Python 3.x installed along with the following libraries:
numpymatplotlibtkinter
Install missing dependencies using pip:
pip install numpy matplotlib-
Clone this repository or download the project files.
-
Run the application:
python simulator.py
-
Explore the following modes:
- Customizable Mode: Enter wave parameters manually and generate corresponding plots.
- Real-Time Simulation Mode: Adjust wave properties dynamically using sliders and visualize the results instantly.
-
Save generated plots as a PDF by clicking the Save All button.
- The simulator computes two sine waves using the given parameters (frequency, amplitude, and phase).
- It displays the individual waves along with their constructive and destructive interference.
- Real-time simulations allow immediate visualization of parameter changes.