Skip to content

Commit

Permalink
Fix description of heterogeneous BC example
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Dec 20, 2024
1 parent 58cac8f commit a511473
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions examples/advanced_pdes/heterogeneous_bcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,8 @@
Heterogeneous boundary conditions
=================================
This example implements a `spatially coupled SIR model
<https://en.wikipedia.org/wiki/Compartmental_models_in_epidemiology>`_ with
the following dynamics for the density of susceptible, infected, and recovered
individuals:
.. math::
\partial_t s &= D \nabla^2 s - \beta is \\
\partial_t i &= D \nabla^2 i + \beta is - \gamma i \\
\partial_t r &= D \nabla^2 r + \gamma i
Here, :math:`D` is the diffusivity, :math:`\beta` the infection rate, and
:math:`\gamma` the recovery rate.
This example implements a diffusion equation with a boundary condition specified by a
function, which can in principle depend on time.
"""

import numpy as np
Expand Down

0 comments on commit a511473

Please sign in to comment.