next up previous
Next: Solution of the Diffusion Up: APC591 Tutorial 5: Numerical Previous: Introduction

The Diffusion Equation

The diffusion equation for a concentration $c(X,T)$ of some chemical (given by number of particles/unit length) is

\begin{displaymath}
\frac{\partial c}{\partial T} = D \frac{\partial^2 c}{\partial X^2}.
\end{displaymath} (1)

Suppose that our domain is the box $0 \le X \le L$.

Let's define new variables $x = X/L$ and $t = T/\tau$. Then,

\begin{displaymath}
\frac{\partial}{\partial X} = \frac{1}{L} \frac{\partial}{\partial x},
\end{displaymath}


\begin{displaymath}
\frac{\partial}{\partial T} = \frac{1}{\tau} \frac{\partial}{\partial t},
\end{displaymath}

so equation (1) becomes

\begin{displaymath}
\frac{\partial c}{\partial t} = \frac{\tau D}{L^2} \frac{\partial^2 c}{\partial x^2}.
\end{displaymath}

Choosing $\tau = L^2/D$, we obtain the equation for the concentration $c(x,t)$
\begin{displaymath}
\frac{\partial c}{\partial t} = \frac{\partial^2 c}{\partial x^2}
\end{displaymath} (2)

on the domain $0 \le x \le 1$.

To make this equation well-posed, we need to specify the boundary conditions at $x=0$ and $x=1$. The two main cases of interest are


next up previous
Next: Solution of the Diffusion Up: APC591 Tutorial 5: Numerical Previous: Introduction
Jeffrey M. Moehlis 2001-10-24