A simulation model for pandemic spread using population dynamics of infectious diseases
To download repo you can:
- Use git clone:
https://github.com/AmeanAsad/pandemic-simulations.git
- Download zip file from Git.
After download, you need to install required packages:
- Open terminal
- cd to the root directory of the repo.
- Run
pip install -r requirements.txt
Here is a sample to run the Pandemic Model:
size = 300
nodes = 160
infectionRate = 0.5
radius = 7
speed = 1.9
steps = 50
pandemic = PandemicSpread(size, nodes, infectionRate, radius, speed)
pandemic.startInfection()
pandemic.deployNodes()
for step in range(steps):
pandemic.takeStep()
To run the Visualizations, open the visualizations.py
folder and:
- Run
SirModelPlot()
to visualize the SIR stack plot. - Run
visualizeParticles()
to visualize the particle simulation.