Solving the Diffusion-Advection-Reaction Equation in 1D Using Finite Differences

Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.
This Demonstration shows the solution of the diffusion-advection-reaction partial differential equation (PDE) in one dimension. The domain is discretized in space and for each time step the solution
at time
is found by solving for
from
. The boundary conditions supported are periodic, Dirichlet, and Neumann. The solution can be viewed in 3D as well as in 2D. You can select the source term
and the initial conditions from the menus in the main display. Selected preconfigured test cases are available from the dropdown menu. In the above PDE
represents the diffusion,
represents the advection, and
the reaction.
Contributed by: Nasser M. Abbasi (June 2012)
Open content licensed under CC BY-NC-SA