Virus Spread (simple)_Final
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
WHAT IS IT?
This is a model of the spread of a viral infection within a population.
HOW IT WORKS
When an infected (red) person comes into direct contact with a non-infected (Blue) person the non-infected (blue) person will become red, indicating they too are now infected.
HOW TO USE IT
For this model you are able to adjust the number of persons bewteen 1 - 100. You may also adjust the spead of the model. This model also has the ability to observe "contact Tracing" by clikcing the "Connections" box which will show which person infected whom throught the model.
THINGS TO NOTICE
The spread of the virus hits exponential growth at a minimim threshold of persons. Can you determine what that threshold is?
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
turtles-own [ virus? ;; Ture or False? Turtle has the virus ] to setup ;; this procedure sets up simulation anew clear-all create-turtles number-of-agents [setxy random-xcor random-ycor set virus? false ;; all turtles enter world without virus set shape "person" ] ask one-of turtles [set virus? true] ;; one unlucky turtle will enter world infected w/ virus ask turtles [recolor] reset-ticks end to go if all? turtles [virus?] [stop] ;; will end simulation after all turtles are infected ask turtles [ move ] ask turtles [spread] ask turtles [recolor] tick end to move right random 50 left random 50 fd 1 end to spread ifelse virus? [] [ ;; if infected touches other infected do nothing, otherwise run following procedure if any? other turtles-here with [virus?] ;; asks if there are any other turtles in the same patch (space) as them with the virus [set virus? true if connections [ask self [ create-links-from other turtles-here with [virus?]]] ] ] end to recolor ifelse virus? [set color red] [set color blue] end
There is only one version of this model, created over 4 years ago by Julian Wallace.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
Virus Spread (simple)_Final.png | preview | Preview for 'Virus Spread (simple)_Final' | over 4 years ago, by Julian Wallace | Download |
This model does not have any ancestors.
This model does not have any descendants.