Social Distancing - COVID-19 Spread

Social Distancing - COVID-19 Spread preview image

1 collaborator

Default-person Muaz Niazi (Author)

Tags

covid-19, epidemiology 

Tagged by Muaz Niazi over 4 years ago

covid19 

Tagged by Muaz Niazi over 4 years ago

social distancing  

Tagged by Muaz Niazi over 4 years ago

social distancing< 

Tagged by Muaz Niazi over 4 years ago

Model group COSMOSE | Visible to everyone | Changeable by the author
Model was written in NetLogo 6.1.1 • Viewed 879 times • Downloaded 23 times • Run 0 times
Download the 'Social Distancing - COVID-19 Spread' modelDownload this modelEmbed this model

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


Comments and Questions

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

Click to Run Model

to setup
  ca
  reset-ticks
  ask patches
  [
    set pcolor green
  ]
  ask one-of patches
  [
    set pcolor red
  ]

  ask patches with [pcolor = green]
  [
    if (random 100 < distancing)
    [
      set pcolor black
    ]
  ]
end 

to go
  if count patches with [pcolor = green] = 0 or ticks = 200
  [
    stop
  ]
  ask patches with [pcolor = red]
  [
    ask n-of 3 neighbors
    [
      if pcolor = green
      [
        set pcolor red
      ]
    ]
  ]
  tick
end 

There is only one version of this model, created over 4 years ago by Muaz Niazi.

Attached files

File Type Description Last updated
Social Distancing - COVID-19 Spread.png preview Preview for 'Social Distancing - COVID-19 Spread' over 4 years ago, by Muaz Niazi Download

This model does not have any ancestors.

Children:

Graph of models related to 'Social Distancing - COVID-19 Spread'