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

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

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.

c=d+au+f(x,t)

u

xx

u

t

u

t

n+1

n+1

u

A=B++

n+1

u

n

u

n

f

n+1

f

2

f(x,t)

c

u

xx

d

u

t

au