Diffusion Reaction Equation#

Module for defining the Diffusion-Reaction equation.

class DiffusionReactionEquation(alpha, forcing_term)[source]#

Bases: Equation

Implementation of the N-dimensional Diffusion-Reaction equation, defined as follows:

\[\frac{\partial u}{\partial t} - \alpha \Delta u - f = 0\]

Here, \(\alpha\) is a parameter of the equation, while \(f\) is the reaction term.

Initialization of the DiffusionReactionEquation class.

Parameters:
  • alpha (float | int) – The diffusion coefficient.

  • forcing_term (Callable) – The forcing field function, taking as input the points on which evaluation is required.