Class 4th Dec
Class 4th Dec
Class 4th Dec
Hypothesis:
1) Motion occurs in 1D;
2) Cross-sectional area A is constant.
Conservation equation
∂
[c(x, t)A∆x] = J(x, t)A − J(x + ∆x, t)A ± σ(x, t)A∆x
∂t
Observing the units:
1 h number i number number number
.volume = .area − .area ± .volume
time volume time.area time.area volume.time
Conservation equation
If A is constant,
∂
A∆x [c(x, t)] = J(x, t)A − J(x + ∆x, t)A ± σ(x, t)A∆x
∂t
∂ J(x, t) − J(x + ∆x, t)
[c(x, t)] = ± σ(x, t)
∂t ∆x
For ∆x → 0, we get:
∂c ∂J
= − ± σ(x, t)
∂t ∂x}
| {z | {z }
source/sink
net motion
Conservation equation
If the fluid is moving with velocity v (x, t), the flux of the
particles is
J = c.v
∂c
= −∇(c.v )
∂t
Random motion and diffusion equation
Diffusion is a metabolically cheap process on the cells
level and occurs due to random motion of particles;
The flux due to random motion is proportional to the
local gradient in the particle concentration:
J = −D∇c
∂c ∂ ∂c
= D
∂t ∂x ∂x
In more dimensions,
∂c
= ∇(D∇c)
∂t
and if D is constant,
∂c
= D∇2 c
∂t
Random motion and diffusion equation
∂c ∂ 2c τ 2
c(x, t + τ ) = c(x, t) + τ+ 2 + ...
∂t ∂t 2
∂c ∂ 2 c ∆x 2
c(x ± ∆x, t) = c(x, t) ± ∆x + 2 ± ...
∂x ∂x 2
Random motion and diffusion equation
∂c ∂ 2 c τ ∂ 2 c ∆x 2
+ 2 + ... = 2 + ...
∂t ∂t 2 ∂x 2τ
If we write D = ∆x 2 /2τ and take the limit τ → 0 and
∆x → 0, we get:
∂c ∂ 2c
=D 2
∂t ∂x
Random motion and diffusion equation
Diffusion coefficient:
distance2
D=
time
√
Average distance that diffusion acts: ≈ Dt
d2
Average time taken to diffuse a distance d: ≈
D
The diffusion coefficient of oxygen on water is
approximately 10−5 cm2 /sec. So for it diffuse through a
distance of 1m would take 27 years! It means that
diffusion is a local process.
Numerical methods for diffusion equation
∂c ∂ 2c
=D 2, x ∈ (a, b)
∂t
∂x
c(a, t) = α , c(b, t) = β , t>0
c(x, 0) = g (x) , x ∈ [a, b]
And the following space discretization for the interval [a, b]:
Numerical methods for diffusion equation
(n)
Notation: C (xi , t n ) = Ci .
If we consider h = xi − xi−1 , i = 0, . . . , m, and k = t n − t n−1 ,
n = 0, . . . , N, we can take the approximations:
(n+1) (n)
∂Ci C − Ci
≈ i
∂t k
Cin+1 − Cin h C n − 2C n + C n i
= D i−1 i i
k h2
Numerical methods for diffusion equation
Backward Euler
o(h2 , t);
Unconditionally stable;
u(x, t + k) − u(x, t)
τ (x, t) =
k
1
− 2 [u(x − h, t) − 2u(x, t) + u(x + h, t)]
h
References