The Tumor Simulator is a Python program designed for simulating the growth, death, and regeneration of tumor cells in a grid-based environment. The simulation is presented through a Graphical User Interface (GUI) using Tkinter, and visualized using Matplotlib.
- Simulation Tab: Displays the tumor grid and animates the simulation.
- Controls Tab: Allows users to adjust simulation parameters such as speed, growth, death, and regeneration probabilities.
- Monte Carlo Simulation: Run multiple simulations and generate visualizations for each run.
- Graphs and Analysis: Real-time and post-simulation graphs, including a summary page with mean and standard deviation.
- Analytical Solution: Compute and display an analytical solution using Euler's method for tumor growth.
-
Dependencies: Ensure you have the necessary dependencies installed. You can install them using:
pip install matplotlib numpy reportlab
-
Run the Program: Execute the script
tumor_simulator.py
to launch the Tumor Simulator GUI.python Cellular_Automata_Tumor_new.py
-
Interact with the GUI: Adjust simulation parameters, start the simulation, and explore the features.
- Simulation Controls: Adjust parameters using sliders (speed, growth, death, living cell death, and regeneration probabilities).
- Start Simulation: Begin the simulation with the selected parameters.
- Show Graphs: Display graphs showing tumor cell counts during and after the simulation.
- Run Monte Carlo Simulation: Execute multiple simulations, visualize the results, and generate a summary PDF.
This project is licensed under the MIT License.
- The program utilizes Matplotlib and Tkinter for visualization and GUI components.
- Inspired by cellular automaton models for tumor growth.
Feel free to explore and customize the Tumor Simulator for your research or educational purposes. If you encounter any issues or have suggestions, please open an issue in the repository.