Professional Documents
Culture Documents
Diffusion PDF
Diffusion PDF
∂C ∂ 2C
=D 2 0≤x≤` (1)
∂t ∂x
1 Steady state
Setting ∂C/∂t = 0 we obtain
d2 C
=0 ⇒ Cs = ax + b
dx2
We determine a, b from the boundary conditions.
It follows that
C2 − C1
b = C1 , a=
`
C2 − C1
Cs (x) = x + C1
`
∂Cs C1 − C2
Flux = −D = (3)
∂x `
1
2 Time-dependent solutions
We choose again the boundary conditions (2) and
∂u ∂ 2u
=D 2 (5b)
∂t ∂x
with
Let φm be the eigenfunctions of the diffusion operator d2 /dx2 . Since the operator
is dissipative, the correponding eigenvalues are non-positive. We denote them by
2
−km (k real)
d2 φm (x) 2
= −km φm (x) (6)
dx2
Any function of the form u = Am (t) φm satisfies then eq.(5), provided that Am (t)
satisfies the ordinary differential equation
dAm 2
= −Dkm Am (7a)
dt
or
2
Am (t) = Am (0) e−Dkm t (7b)
On the other hand, in general, functions u of this form do not satisfy the initial
condition. To satisfy this condition we seek for solutions in the form of an infinite
series of φm ’s (this is legitimate since the equation is linear)
2
X
u (x, t) = Am (t) φm (x) (8)
m
X
Am (0) φm (x) = u (x, 0) = u0 (x) (9)
m
Multiplying both sides of (9) by φ∗m (x) and integrating over x we thus obtain
R`
0
dxφ∗n (x)u0 (x)
An (0) = (11)
Nn
which combined with (7b) and (8) yields the solution
R`
X
0
dxφ∗n (x)u0 (x)
u(x, t) = φm (x) (12)
m
Nm
0 = φm (0) = C
0 = φm (`) = Dsin km `
3
implying that km ` = mπ (m integer) or
mπ
km =
`
mπx
φm = sin (up to a factor) (13)
`
the full solution u(x, t) being (cf. eq. (12)), with Nm = `/2
X 2 Z `
mπx mπx −D m22π2 t
u(x, t) = dxsin u0 (x) sin e ` (14)
m
` o ` `
(Fourrier series)
Z `
mπx
u0 dxsin = 0 if m is even
0 `
2uo `
= if m is odd = 2n + 1 (15)
πm
Finally,
∞
4u0 X 1 (2n+1)2 ?pi2 (2n + 1)πx
u(x, t) = e−D `2
t
sin (16)
π n=0 2n + 1 `
`2
Notice that u(x, t) → 0 as t → ∞ with a characteristic time t̄ = Dπ 2