Download 1 Results of Diffusion Simulation Figure 1

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Results of Diffusion Simulation
Figure 1: Distribution of Students
Number of students at each position (-8, -7,…0…7, 8) at 5 different time steps
(t = 0, light blue; t = 2, red; t = 4, yellow; t = 8, green; and t = 16, purple).
Recall: at the beginning of the simulation all students were at the “0” position
(i.e., this is a simulation of a point source).
25
# of students
20
t=0
15
t=2
t=4
t=8
10
t = 16
5
0
-8
-7
-6
-5
-4
-3
-2
-1
0
Position
1
1
2
3
4
5
6
7
8
Figure 2: Drift and Dispersion
The mean (blue line) and standard deviation (red line) of students’ displacement
5
4
displacement
3
2
1
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-1
-2
time step
The mean displacement of the students, at each time step, remained close to the “0”
position. That is, on average, there was no preferred direction (no drift) in the movement
of students (molecules). Assuming that when tossing the coin the probability of getting
“heads” is similar to the probability of getting “tails”, there is the same probability of
moving to the right as moving to the left. Therefore, we expect to see no drift as indicated
by the simulation results (the uncertainty in the value of the mean is quantified by the
standard error, that is the standard deviation divided by the square root of the number of
realizations, here 20). The standard deviation is a measure of the dispersion of students
(molecules). Over time (steps) students “diffused away” from the origin (position “0”)
and as a result the deviation from the mean increased with time (steps).
Statistics of diffusion:
Consider diffusion in one dimension, x (e.g., the simulation we did in class).
The position of student i (xi) at the n-th step is equal to its position in the previous time
step (n-1) plus a displacement δ.
xi(n) = xi(n-1) ± δ. Τhe ± sign indicates that δ can be positive or negative (moving to the
right or to the left).
The average displacement of all the students <x> is therefore:
1 N
1 N
< x(n) >= ∑ xi (n) = ∑ [ xi (n − 1) ± δ ]
N i =1
N i =1
2
Since according to the rule of the simulation there is the same probability of having a +δ
as having a –δ in each time step, this term is canceled and the mean position at step n is
equal to the mean position at step (n-1).
1 N
< x(n) >= ∑ [ xi (n − 1) =< x(n − 1) > .
N i =1
This means that the mean position does not change, that is, it is the same as at time zero.
Does this agree with the results in figure 1?
A measure of the spread of molecules (students) is described by the variance or the
standard deviation. The variance (σ2) is the averaged square deviation from the mean
1
2
σ 2 = ∑ (< x > − µ ) , where N is the number of samples, <x> is the mean (in the case
N
of the class’ simulation it represents the mean displacement) and µ is the position value
of the sample (in the case of the class’ simulation it represents the displacement of a
student at a given time step). The standard deviation is the square root of the variance.
Since for a random walk the mean value of displacement is 0, the variance is simply the
mean displacement of particles squared and the standard deviation is the root mean
square displacement <x2(n)>1/2.
< x 2 (n) >=
1
N
N
∑ [ xi (n − 1) + δ ]2 =
i =1
1
N
N
∑[ x
2
(n − 1) ± 2 xi (n − 1) + δ 2 ]
i =1
The term ±2xi(n-1) averages to zero. At the beginning of the simulation (time step “0”)
all students were concentrated at the “0” line thus <x(0) > = 0
Thus: σ 2 =< x 2 (n) >=< x 2 (n − 1) + δ 2 >
The variance at a given step is equal to the variance at the previous step plus the square of
the step length. Examples: at t = 0 the variance (or standard deviation) = 0, at t = 1 the
variance equals δ2, at t = 2 the variance equals δ2+ δ2=2 δ2 and so on.
Variance: σ2= <x2(n)> =nδ2
Standard deviation: σ = n1/2δ
The standard deviation increase as the square root of time (here denoted by n). Einstein
(1905) was the first to recognize, contrarily to many scientists of his time, that the
important parameter needed to quantify diffusion is not the average velocity of particles
but their mean square displacement at a given time.
To link the microscopic and macroscopic views of diffusion we can express the number
of steps (n), and hence the dispersion, in terms of time. Between each step there is a time
interval Δt so time can be expressed as t = nΔt.
Thus σ = (t/Δt)1/2δ
We define a diffusion coefficient D = δ2/2Δt (recall, units of diffusion coefficients: m2/s)
3
σ = (2Dt)1/2
If we know the diffusion coefficient of molecules we can calculate their spread
(diffusion) as a function of time (back to Fick’s second law of diffusion from the class
handout). This is the solution in one dimension. For more information consult the
reference list below.
References:
Berg H. 1993. Random walks in biology. Princeton University Press.
Denny M. and S. Gaines. 2002. Chance in biology. Princeton University Press.
Einstein, A. 1956. Investigations on the Theory of Brownian Movement. Courier Dover
Publications, New York, 122 pp. Originally published in Germany in 1905 as
Über die von der molekularkinetischen Theorie der Wärme geforderte Bewegung on
in ruhenden Flüsigkeiten suspendierten Teilchen.
4