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 59 times • Downloaded 7 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.)


Info tab cannot be displayed because of an encoding error

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 1 year ago by Abby Buist Haverkamp.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.