https://github.com/djeada/simulation-covid
This is my attempt at modeling and simulating Covid-19's spread.
https://github.com/djeada/simulation-covid
qt5 simulation
Last synced: 10 months ago
JSON representation
This is my attempt at modeling and simulating Covid-19's spread.
- Host: GitHub
- URL: https://github.com/djeada/simulation-covid
- Owner: djeada
- License: mit
- Created: 2020-04-14T08:26:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T08:22:06.000Z (over 4 years ago)
- Last Synced: 2025-02-05T11:51:52.966Z (11 months ago)
- Topics: qt5, simulation
- Language: C++
- Homepage:
- Size: 655 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimulationCovid
This is my attempt to model and simulate the spread of Covid-19.

What does the simulation represent?
Individual people are represented by squares in the simulation.
Their health is represented by their colors.
Since it's impossible to display millions of squares, the numbers are scaled.
However, their initial ratios are the same as in the nation of your choosing.
The country can be selected in the main file.
Initial Conditions
Initial conditions are taken from two files:
4.14.2020.2020
Source: https://data.europa.eu/euodp/pl/data/dataset/covid-19-coronavirus-data
population
Source:https://data.worldbank.org/indicator/sp.pop.totl
Making them update themselves automatically is on our TODO list.
Progress of the disease
Each individual has a disease stage assigned to them.
A life counter is assigned to each person.
We take it for granted that healthy people will never die.
We presume that everyone will go through the same number of iterations as the disease progresses.
If the infected person's life counter approaches zero, there are two options:
1. They have recovered from the illness and are now in a stable state.
2. They died as a result of the illness, and their status has been changed to that of a deceased person.
How is this decided?
There is 80% of chance that they will survive.
Source: https://www.worldometers.info/coronavirus/
We also keep track of how many cases there are in total.
There is a chance that a country's health-care system could fail.
It occurs when the total number of cases exceeds the health system's full capability.
If the health-care system fails, the chances of survival are reduced.
In the simulation file, you can set the capability of your country's health system.
How are people getting infected?
Since there are conflicting hypotheses on how the virus spreads, we concluded that there is always a risk of being infected when you encounter an infected person, but risk is not 100%.
In the simulation file, you can set the capability of your country's health system.
Cooperation among people
Quarantine does not apply to all.
Every individual is associated with a boolean field called cooperativeness.
People who are cooperative seldom leave their homes and don't travel far.
Statistics
The following statistics are kept track of by us: