0 && d0 && d
14&&timeronetime[i]==1&&healthstate[i] ==1){
healthstate[i] =2;
}
}
if (countrecovered==n||counthealthy+countrecovered==n){
_pause();
_tools.showOkDialog("the population has recovered from covid-19! Try to achieve all recovered by more social distancing to keep even more people healthy. Simulation is paused.");
}
]]>
Math.random()){ //only affect healthy and sick
healthstate[collision]= Math.max(healthstate[collision],healthstate[collision2]); //max is to force sick up, min is to ensure no recover also make healthy recovered
healthstate[collision2]= Math.max(healthstate[collision],healthstate[collision2]);
// }
if (healthstate[collision]==0&&healthstate[collision2]==0){//healthy meet healthy
//color change moved to fixed relationship
// color[collision]=colorhealthy;
// color[collision2]=colorhealthy;
//timer[collision]=t; //do ntg
}
else if (healthstate[collision]==1&&healthstate[collision2]==0){//sick meet healthy
// color[collision]=colorsick;
if (timeronetime[collision]==0){
timer[collision]=t;
}
timeronetime[collision]=timeronetime[collision]+1;
// counthealthy= counthealthy-1;
// countsick=countsick+1;
}
else if (healthstate[collision]==0&&healthstate[collision2]==1){ //healthy meet sick
// color[collision2]=colorsick;
if (timeronetime[collision2]==0){
timer[collision2]=t;
}
timeronetime[collision2]=1;
// counthealthy= counthealthy-1;
// countsick=countsick+1;
}
else if (healthstate[collision]==2&&healthstate[collision2]==0){ //healthy meet recovered
}
else if (healthstate[collision]==0&&healthstate[collision2]==2){//healthy meet recovered
}
else if (healthstate[collision]==1&&healthstate[collision2]==1){
// color[collision]=colorsick;
// color[collision2]=colorsick;
if (timeronetime[collision]==0){
timer[collision]=t;
}
if (timeronetime[collision2]==0){
timer[collision2]=t;
}
timeronetime[collision]=1;
timeronetime[collision2]=1;
// counthealthy= counthealthy-1;
// countsick=countsick+1;
}
else if (healthstate[collision]==2&&healthstate[collision2]==1){
}
else if (healthstate[collision]==1&&healthstate[collision2]==2){
}
else if (healthstate[collision]==2&&healthstate[collision2]==2){
}
} // social distancing
}
]]>
nv-1)id=nv-1;
V[id]+=1;
}
}
]]>
n)return b*v[0];
// else return 0;
return 0;
}
]]>
-1; //&& ua.indexOf("mobile");
}
]]>
{
// console.log(voice.name, voice.lang)
//})
//debug
// Queue this utterance.
window.speechSynthesis.speak(msg);
}
}
]]>
Coronavirus disease (COVID-19) is an infectious disease caused by a new virus.The disease causes respiratory illness (like the flu) with symptoms such as a cough, fever, and in more severe cases, difficulty breathing. You can protect yourself by washing your hands frequently, avoiding touching your face, and avoiding close contact (1 meter or 3 feet) with people who are unwell.
Coronavirus disease spreads primarily through contact with an infected person when they cough or sneeze. It also spreads when a person touches a surface or object that has the virus on it, then touches their eyes, nose, or mouth.
There’s currently no vaccine to prevent coronavirus disease (COVID-19).You can protect yourself and help prevent spreading the virus to others if you:
Left panel shows the visualization or the big picture view a population of 100 people, modelled as balls
Right panel show the graphs of healthy, sick and recovered people based on the colors representation.
The simulation is designed to be simple to use via dropdown menu. the option are self explanatory.
Exponential spread is modelled using a random velocity and random direction, the spread of the virus from sick to healthy is probabilistic based on closeness or collision. The reason why each country is preventing this rapid growth rate to prevent filling up the hospitals to their maximum capacity, forcing emergency rooms to close their doors to new patients. This will likely lead to more deaths due to COVID-19.
]]>The motion of the people (balls) are completely random, this might not be the case in real life, most people travel to work or to school in a regular timing.
The healthy is moving about randomly, after collision contact, the balls moves off obeying collision laws of physics.
The sick can only infect healthy, and the first sick remains sick until the virus is spread to another healthy ball making it sick too.
The sick takes 14 days to recover after the first contact with another sick ball, this is a arbitrary length of days, email me if you think you have a better approximation?
The recovered cannot be infected by the sick again. As more real world data surfaced, this assumption could be incorrect but not accounted for in the model.
Social distancing completely makes the probability of virus spreading p = 0, which could be inaccurate as the virus could spread through 1. Person-to-person spread (modelled), 2.Spread from contact with contaminated surfaces or objects (not modelled)
Drag any balls, especially the sick ball to infect more balls at the beginning when time t = 0 day. This allows you to determine the initial number of sick.
Inspired by https://www.washingtonpost.com/graphics/2020/world/corona-simulator/
]]>