A front that advances

A population that grows and spreads, at five times that are equally far apart: its front advances at a nearly steady speed.

import sympy as sp
import pdemagic as pm

x, t = sp.symbols("x t", real=True)
p = sp.Function("p")(x, t)

spreading = pm.Problem(
    sp.Eq(p.diff(t), p.diff(x, 2) + p * (1 - p)),
    domain=pm.Box({x: (0, 60)}),
    time=(t, 0, 24),
    initial={p: sp.exp(-(x**2) / 4)},
    boundary=sp.Eq(p.diff(x), 0),
)
pm.solve(spreading).plot()
The figure that the example above draws. The figure that the example above draws.

What it shows

Fisher’s equation, \(p_t = p_{xx} + p\,(1 - p)\), between two walls that nothing crosses. Where the population is small it grows, and where it has reached 1 the land is full. Diffusion carries a little of it ahead, where it grows again. Together the two make a front of a fixed shape that moves into the empty land. The five lines are 6 units of time apart, and the last two fronts 11.6 units of length: a speed of 1.93. The speed that the equation selects in the end is 2, twice the root of the diffusion times the rate of growth, and the front approaches it slowly from below.

What pdemagic decided

The planner chose exponential time stepping of fourth order in the modes of the box (exponential_runge_kutta), on 128 Chebyshev points: the diffusion with its conditions on the walls is exact, and the growth, which is nonlinear, is stepped, with steps that each err by less than \(10^{-10}\) of the solution. The diagnostic solution_tail is \(2\cdot10^{-10}\) at the end: the front is resolved.

More