Infectious disease outbreak (COVID-19)-transmission and mortality

Infectious disease outbreak (COVID-19)-transmission and mortality preview image

1 collaborator

Screen_shot_2018-02-02_at_12.53.50_pm lin xiang (Author)



Tagged by lin xiang over 1 year ago

Visible to everyone | Changeable by the author
Model was written in NetLogo 6.1.1 • Viewed 255 times • Downloaded 10 times • Run 0 times
Download the 'Infectious disease outbreak (COVID-19)-transmission and mortality' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


This model simulates the infectious disease outbreak dynamics in a population influenced by different transmission rate, mortality, and human mobility.


The model starts with a human population in which all people are healthy but susceptible (green color) to the incoming pathogen. Once an infected case (orange color) appears in the population, it will pass the disease to one of the susceptible people nearby (within a radius of 1.5) at the defined transmission rate. The infected people are able to transmit the disease for 14 days. By the 15th day of being infected, the infected people either die (disappear from the model) at the defined mortality or recover and become immunized (blue color).

Buttons, Sliders, and Switches:

  • The "population-size" slider is self-explanatory. So are the buttons of "Set up/Reset". "Run/Pause", and "Run a day".

  • The "Mobility" slider controls how far an individual can move each time. Smaller mobility means people come into contact with less other people.

  • The "Transmission-rate" slider determines how likely a susceptible person is infected when exposed to the disease.

  • The "Mortality" slider determines how likely the infected people die on the 15th day.

  • The "+1 infected Case" button adds infected person into the population.

  • The "Watch 1 infected Case" button allows you to focus on a single infected person. You may see this person eventually recover or die.


  1. First choose the factors, such as population size, transmission rate, etc.

  2. Click on "Set up/Reset", then "Run/Pause". The model is initially set to stop on the 180th day. Change the number in "Time" if you want to run the model for a longer or shorter time period.

  3. Observe the infection changes in population in the plot and monitors.

  4. Use "Run one day" to run the model in a controlled way and collecting day-by-day data.


Find this model series at

  • Infectious Disease Outbreak-Basic Phenomenon
  • Infectious Disease Outbreak-Transmission and mortality
  • Infectious Disease Outbreak-Population Comparison
  • Infectious Disease Outbreak-HealthCare, Isolation and Quarantine
  • Infectious Disease Outbreak-vaccination


Dr. Lin Xiang ( created this module at the University of Kentucky in 2020. If you mention this model in a publication, we ask that you include the citations below.

Xiang, L. (2020). Infectious Disease Outbreak-Transmission and Mortality. Department of STEM Education, University of Kentucky, Lexington, KY.

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

;; This model is developed by Dr. Lin Xiang at the University of Kentucky. Contact:
;; If you see this page rather than a "download" button when downloading the model, click the "download" icon
;; in your browser to download this model file.

turtles-own [days]
Patches-own [ ]
Globals [watching LM max-daily-cases]

to setup
  set LM 0

to setup-turtles
  create-turtles Population-size
  [set color 68
    set size 1.75
    set shape "person-1"
    set days 0
    setxy random-xcor random-ycor

to setup-patches
  ask patches [set pcolor 0]

to go

  if ticks > time [stop]

to move
  ask turtles
  [right random 360 forward mobility]

to add-an-infected-person
  create-turtles 1
  [set color orange
    set size 1.75
    set shape "person-1"
    setxy random-xcor random-ycor

to transmission
  ask turtles with [color = orange]
    let healthy-person one-of other turtles in-radius 1.5 with [color = 68]
    if healthy-person != nobody
    [ask healthy-person [
      if random 100 < Transmission-rate
      [set color orange]]]

to sickness
  ask turtles with [color = orange]
  [set days days + 1
    if days >= 15
    [ifelse random 100 < mortality
      [ set LM LM + 1 die  ]
      [set color blue] ]

to watch-an-infected-person
  watch one-of turtles with [color = orange]

to find-max-daily-cases
  if count turtles with [color = orange ] > max-daily-cases        ;Count the infectious. If it is greater than the current record of max daily cases
  [set max-daily-cases count turtles with [color = orange ]]       ;update the max daily case

There are 6 versions of this model.

Uploaded by When Description Download
lin xiang 10 months ago Add in max daily cases Download this version
lin xiang 10 months ago Add in max daily cases Download this version
lin xiang over 1 year ago Add total deaths monitor Download this version
lin xiang over 1 year ago fix the background Download this version
lin xiang over 1 year ago add an adjustable time Download this version
lin xiang over 1 year ago Initial upload Download this version

Attached files

File Type Description Last updated
Infectious disease outbreak (COVID-19)-transmission and mortality.png preview Preview for 'Infectious disease outbreak (COVID-19)-transmission and mortality' over 1 year ago, by lin xiang Download

This model does not have any ancestors.

This model does not have any descendants.