Diffusion Reaction Equation#
Module for defining the Diffusion-Reaction equation.
- class DiffusionReactionEquation(alpha, forcing_term)[source]#
Bases:
EquationImplementation 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
DiffusionReactionEquationclass.