WOLFRAM|DEMONSTRATIONS PROJECT

Solving the Convection-Diffusion Equation in 1D Using Finite Differences

This Demonstration shows the solution of the convection-diffusion partial differential equation (PDE)
c
u
xx
=d
u
t
+a
u
x
in one dimension with periodic boundary conditions. You can specify different initial conditions. Selected preconfigured test cases are available from the dropdown menu.
The system is discretized in space and for each time step the solution is found using
n+1
u
=A
n
u
. The plot shown represents the solution
u(x,t)
. You can select a 3D or 2D view using the controls at the top of the display.