abh_yh_infection

No preview image

1 collaborator

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by the author
Model was written in NetLogo 6.3.0 • Viewed 180 times • Downloaded 30 times • Run 0 times
Download the 'abh_yh_infection' modelDownload this modelEmbed this model

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


WHAT IS IT?

This model represents a certain population infected with a disease. There is one initial person infected and if they touch another person, they get infected too. After a certain number of days, or “ticks”, everyone is infected and the simulation stops.

HOW IT WORKS

There are toggles that represent population, setup, and go. There are graphs that represent days past, the %infected, and the virus spread. The toggles can be edited to increase/decrease the population as well as increase/decrease the infection rate. When a person is red, it means they have been infected and can continue to infect other people, and if they are green, they are not infected. There is also a toggle at the top of the screen that represents the speed of the simulation. The larger the population, the faster everyone contracts the disease.

HOW TO USE IT

(how to use the model, including a description of each of the items in the Interface tab)

THINGS TO NOTICE

(suggested things for the user to notice while running the model)

THINGS TO TRY

(suggested things for the user to try to do (move sliders, switches, etc.) with the model)

EXTENDING THE MODEL

(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)

NETLOGO FEATURES

(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)

RELATED MODELS

(models in the NetLogo Models Library and elsewhere which are of related interest)

CREDITS AND REFERENCES

(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)

Comments and Questions

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

Click to Run Model

globals [%infected]

to setup
  clear-all
  reset-ticks
  create-turtles population
  [
    setxy random-xcor random-ycor
    set shape "person"
    set color green
  ]
  ask turtle 1 [set color red]
  set %infected (count turtles with [color = red] / count turtles) * 100
end 

to go
  tick
  ask turtles
    [rt random 100 lt random 100 fd 1]
  ask turtles with [color = red]
    [
      ask other turtles-here [if random 100 < %infectiousness
        [set color red]]
  ]
  set %infected (count turtles with [color = red] / count turtles) * 100
  if %infected = 100 [stop]
end 

There is only one version of this model, created over 2 years ago by Abby Buist Haverkamp.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.