ryo-ARAKI / COVID-19_simulation_Julia

COVID-19 spreading simulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COVID-19_simulation_Julia

COVID-19 spreading simulation, Julia translation of https://github.com/MuAuan/collective_particles with several changes and new functionalities.

Model description

Parameter

  • num_particles particles are simulated over max_iteration temporal iteration.
  • Computational domain is [0, x_range] × [0, y_range].
  • Initial particle velocity (vel_x, vel_y) obeys Gaussian distribution, with average vel_mean and standard deviation vel_σ.
  • ratio_infection_init percentage of particles are initially infected by the virus.
  • Particles in the nearby (below relative distance radius_infection) of the infected particle can be infected by the chance rate infection_chance per time step.
  • Infected particles (deterministically) recover after recovery_time steps and never infected again.
  • During temporal development, particle velocity alters by up to vel_flc.

Flag

  • flag_multiple_infection allows recovered particles to re-infect the virus.
    • In the case of multiple infection, infection_chance is modified by number of past infection.
  • flag_infected_isolation forces infected particles to stop their movement during infection.

Execution

About

COVID-19 spreading simulation

License:MIT License


Languages

Language:Julia 100.0%