{"id":19338487,"url":"https://github.com/acmo0/sir-simulation","last_synced_at":"2026-06-09T20:31:03.945Z","repository":{"id":125914939,"uuid":"485448240","full_name":"acmo0/SIR-simulation","owner":"acmo0","description":"This is an implementation of the SIERD model in C using Euler's explicit method","archived":false,"fork":false,"pushed_at":"2022-04-25T18:23:11.000Z","size":947,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T08:17:08.337Z","etag":null,"topics":["disease","disease-modeling","disease-spread","euler-method","model","simulation","sir","sir-model"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acmo0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-25T16:27:08.000Z","updated_at":"2022-04-25T18:24:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"5beaf92e-da67-4c61-b990-f4530e338e6f","html_url":"https://github.com/acmo0/SIR-simulation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/acmo0/SIR-simulation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2FSIR-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2FSIR-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2FSIR-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2FSIR-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acmo0","download_url":"https://codeload.github.com/acmo0/SIR-simulation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acmo0%2FSIR-simulation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34125332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["disease","disease-modeling","disease-spread","euler-method","model","simulation","sir","sir-model"],"created_at":"2024-11-10T03:17:37.179Z","updated_at":"2026-06-09T20:31:03.940Z","avatar_url":"https://github.com/acmo0.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simulation of SIERD model\n## Installation\nExecutables files are located in the bin folder, please download *generate.py* and *simulation_sir* from the [lastest release](https://github.com/acmo0/SIR-simulation/releases/tag/v1.0) or clone the github repo.\nTo plot calculated data, you need to install matplotlib using :\n```\nsudo apt install python3-matplotlib\n```\nor\n```\npip install matplotlib\n```\n## Usage\nThe model can be schematized like this :\n![fig1](https://github.com/acmo0/SIR-simulation/blob/main/img/diag2.png)\nTo start the simulation use :\n```\n./simulation_sir S0 E0 I0 alpha beta gamma delta epsilon mu nu duration points\n```\nExplanation of parameters (see figure too) :\n```\nS0 : initial percentage of healthy population\nE0 : initial percentage of exposed pupulation\nI0 initial percentage of infected population\nalpha : incubation rate per time\nbeta : average number of contacts (per person per time)\ngamma : cure rate (per time)\ndelta : death rate (per time)\nepsilon : deimmunization rate (per time)\nmu : natural death rate (per time)\nnu : birth rate (per time)\nduration of simulation (in day)\npoints : number of points for the simulation (at least 10000 is recommended)\n```\n## Install from sources\nFirst, clone the github repo and go to source then compile program with :\n```\ngcc -o simulation_sir model.c\n```\n## Exemple\n```\n./simulation_sir 0.99 0 0.01 1.3 5.7 0.2 0.0125 0.01 0.0001 0.0008 40 300000\n```\ngives the following output :\n\n![fig](https://github.com/acmo0/SIR-simulation/blob/main/img/fig_demo.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facmo0%2Fsir-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facmo0%2Fsir-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facmo0%2Fsir-simulation/lists"}