How a virus could spread on a base on Mars.
This programme creates a number of "agents" and simulates movement and spread of a virus between them. There are two viruses that can spread: the original "Alpha"-virus and then the mutated "Beta"-virus. The virus infection starts out undiscovered and eventually the case is discovered and treated after which the agent is immune (all infected agents go through these stages). If there are more discovered cases than hospital capacity then people start dying as well.
Suggested setup: Toggle Active, Deadly, and Recoverable on, then press Setup and then Infect until a pink agent shows up. Then press mutate when desired. Try running a simulation with and without Social Distancing toggled on.
The stages are:
Yellow: Uninfected
Pink: Undiscovered Alpha Cases
Red: Discovered Alpha Cases
Magenta: Undiscovered Beta Cases
Purple: Discovered Beta Cases
Blue: Immune from Alpha
White: Immune from Alpha and Beta
Gray: Dead
Here follows a description of the buttons:
Active: Movement is allowed and the data acquisition is running
Setup: The specified number of agents is created and the simulation is reset
Infect: The simulation attempts to infect an uninfected agent
Mutate: The simulation attempts to mutate the virus in an infected agent
Deadly: Toggles whether agents start dying when discovered cases go above hospital capacity
Recoverable: Toggles whether agents can recover from their infection
Grouping: Toggles whether discovered infected agents try to stay away from others and everyone tends to stay in smaller groups.
Here follows a description of the sliders:
All rates and chances are in percent.
Infection Rate: The odds of infecting another agent upon contact
Death Rate per tick: The odds of dying per tick when infected with this disease and the hospital capacity is exceeded
Recovery chance per tick: The odds of recovering from the infection for every tick of the simulation
Discovery chance per tick: The odds of discovering the infection for every tick of the simulation
Hospital capacity: The number of discovered infected cases possible before people start dying
Population: The number of agents created when Setup is pushed
At an engine speed of 5 ticks per second, if one second real time = one day simulation, a value of 2 will lead to an undiscovered case being discovered within a week 50 % of the time.