System Dynamics

SIR Block

A compartmental epidemiological model representing Susceptible, Infectious, and Recovered populations.

Open SIR in BlockWerk →

Description

The SIR model is a classic epidemiological model that describes the transmission of a contagious disease through a population. It divides the population into three compartments: Susceptible, Infectious, and Recovered.

Mathematical Model

dS/dt = -β*S*I/N, dI/dt = β*S*I/N - γ*I, dR/dt = γ*I

The model is defined by a system of three ordinary differential equations (ODEs):

$$\frac{dS}{dt} = -\frac{\beta \cdot S \cdot I}{N}$$ $$\frac{dI}{dt} = \frac{\beta \cdot S \cdot I}{N} - \gamma \cdot I$$ $$\frac{dR}{dt} = \gamma \cdot I$$

Where:

Parameters

beta ($\beta$)

The effective contact rate. Higher values lead to faster spread.

gamma ($\gamma$)

The recovery rate. $1/\gamma$ represents the average infectious period.

initial_s

The number of susceptible individuals at the start of the simulation.

initial_i

The number of infectious individuals at the start of the simulation.

Ports

s, i, r (Outputs)

The current population counts for each compartment.

See Also