summaryrefslogtreecommitdiff
path: root/source/know/concept/ficks-laws/index.md
blob: 234b18095cce68cfd87e36c41941f8e0c6c5d602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
---
title: "Fick's laws"
date: 2021-09-05
categories:
- Physics
- Mathematics
layout: "concept"
---

**Fick's laws of diffusion** govern the majority of diffusion processes,
where a certain "impurity" substance redistributes itself through a medium over time.
A diffusion process that obeys Fick's laws is called **Fickian**,
as opposed to **non-Fickian** or **anomalous diffusion**.


## Fick's first law

**Fick's first law** states that diffusing matter
moves from regions of high concentration to regions of lower concentration,
at a rate proportional to the difference in concentration.

Let $\vec{J}$ be the **diffusion flux** (with unit $\mathrm{m}^{-2} \mathrm{s}^{-1}$),
whose magnitude and direction describe the "flow" of diffusing matter.
Formally, Fick's first law predicts that the flux
is proportional to the gradient of the concentration $C$ (with unit $\mathrm{m}^{-3}$):

$$\begin{aligned}
    \boxed{
        \vec{J} = - D \: \nabla C
    }
\end{aligned}$$

Where $D$ (with unit $\mathrm{m}^{2}/\mathrm{s}$)
is known as the **diffusion coefficient** or **diffusivity**,
and depends on both the medium and the diffusing substance.

Fick's first law is a general physical principle,
which was discovered experimentally,
and thus does not have a general derivation.
Proofs for specific systems do exist,
but they say more about those systems
than about diffusion in general.


## Fick's second law

To derive **Fick's second law**, we demand that matter is conserved,
i.e. the diffusing species is not created or destroyed anywhere.
Suppose that an arbitrary volume $V$ contains an amount $M$ of diffusing matter,
distributed in space according to $C(\vec{r})$, such that:

$$\begin{aligned}
    M
    \equiv \int_V C \dd{V}
\end{aligned}$$

Over time $t$, matter enters/leaves $V$.
Let $S$ be the surface of $V$, and $\vec{J}$ the diffusion flux,
then $M$ changes as follows, to which we apply the divergence theorem:

$$\begin{aligned}
    \dv{M}{t}
    = - \int_S \vec{J} \cdot \dd{\vec{S}}
    = - \int_V \nabla \cdot \vec{J} \dd{V}
\end{aligned}$$

For comparison, we differentiate the definition of $M$,
and exploit that the integral ignores $t$:

$$\begin{aligned}
    \dv{M}{t}
    = \dv{}{t}\int_V C \dd{V}
    = \int_V \pdv{C}{t} \dd{V}
\end{aligned}$$

Both $\idv{M}{t}$ are equal, so stripping the integrals leads to this **continuity equation**:

$$\begin{aligned}
    \pdv{C}{t}
    = - \nabla \cdot \vec{J}
\end{aligned}$$

From Fick's first law, we already have an expression for $\vec{J}$.
Substituting this into the continuity equation yields
the general form of Fick's second law:

$$\begin{aligned}
    \boxed{
        \pdv{C}{t}
        = \nabla \cdot \Big( D \: \nabla C \Big)
    }
\end{aligned}$$

Usually, it is assumed that $D$ is constant
with respect to space $\vec{r}$ and concentration $C$,
in which case Fick's second law reduces to:

$$\begin{aligned}
    \pdv{C}{t} = D \: \nabla^2 C
\end{aligned}$$


## Fundamental solution

Fick's second law has exact solutions for many situations,
but the most important one is arguably the **fundamental solution**.
Consider a 1D system (for simplicity) with constant diffusivity $D$,
where the initial concentration $C(x, 0)$ is
a [Dirac delta function](/know/concept/dirac-delta-function/):

$$\begin{aligned}
    C(x, 0) = \delta(x - x_0)
\end{aligned}$$

According to Fick's second law,
the concentration's time evolution of $C$ turns out to be:

$$\begin{aligned}
    H(x - x_0, t)
    \equiv C(x, t)
    = \frac{1}{\sqrt{4 \pi D t}} \exp\!\Big( \!-\!\frac{(x - x_0)^2}{4 D t} \Big)
\end{aligned}$$

This result is a normalized Gaussian,
as a consequence of
the [central limit theorem](/know/concept/central-limit-theorem/):
the diffusion behaviour is a sum of many independent steps
(i.e. molecular collisions).
The standard deviation is $\sqrt{2 D t}$,
meaning that the distance of a diffusion is proportional to $\sqrt{t}$.

This solution $H$ is extremely useful,
because any initial concentration $C(x, 0)$ can be written as
a convolution of itself with a delta function:

$$\begin{aligned}
    C(x, 0)
    = (C * \delta)(x)
    = \int_{-\infty}^\infty C(x_0, 0) \: \delta(x - x_0) \dd{x_0}
\end{aligned}$$

In other words, any function is a linear combination of delta functions.
Fick's second law is linear,
so the overall solution $C(x, t)$ is the same combination of fundamental solutions $H$:

$$\begin{aligned}
    C(x, t)
    = (C * H)(x)
    &= \int_{-\infty}^\infty C(x_0, 0) \: H(x - x_0, t) \dd{x_0}
    \\
    &= \int_{-\infty}^\infty \frac{1}{\sqrt{4 \pi D t}} \exp\!\Big( \!-\!\frac{(x - x_0)^2}{4 D t} \Big) \: C(x_0, 0) \dd{x_0}
\end{aligned}$$

This technique is analogous to using
the [impulse response](/know/concept/impulse-response/)
of a linear operator to extrapolate all its inhomogeneous solutions.
The difference is that here, we used the initial condition
instead of the forcing function.



## References
1. U.F. Thygesen,
   *Lecture notes on diffusions and stochastic differential equations*,
   2021, Polyteknisk Kompendie.