Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Physical Biology

Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

This is a preprint version of the paper which was published as

Physical Biology, Volume 4, Number 1, pp. 16-28 (2007).

Reactive boundary conditions for stochastic simulations of


reaction-diffusion processes

Radek Erban and S. Jonathan Chapman


University of Oxford, Mathematical Institute, 24-29 St. Giles’, Oxford, OX1 3LB, United Kingdom
E-mail: erban@maths.ox.ac.uk; chapman@maths.ox.ac.uk

Abstract

Many cellular and subcellular biological processes can be described in terms of diffusing and chemically
reacting species (e.g. enzymes). Such reaction-diffusion processes can be mathematically modelled using
either deterministic partial-differential equations or stochastic simulation algorithms. The latter provide a
more detailed and precise picture, and several stochastic simulation algorithms have been proposed in
recent years. Such models typically give the same description of the reaction-diffusion processes far from
the boundary of the simulated domain, but the behaviour close to a reactive boundary (e.g. a membrane
with receptors) is unfortunately model-dependent. In this paper, we study four different approaches to
stochastic modelling of reaction-diffusion problems and show the correct choice of the boundary condition
for each model. The reactive boundary is treated as partially reflective, which means that some molecules
hitting the boundary are adsorbed (e.g. bound to the receptor) and some molecules are reflected. The
probability that the molecule is adsorbed rather than reflected depends on the reactivity of the boundary
(e.g. on the rate constant of the adsorbing chemical reaction and on the number of available receptors),
and on the stochastic model used. This dependence is derived for each model.

1. Introduction

Diffusion and chemical reactions are two fundamental processes in molecular biology. Molecules of proteins
in an aqueous solution of a living cell are in everlasting motion (because of the thermal energy). They cannot
travel too far before they bump into water molecules or other molecules in their neighborhood [3]. As a result
of these collisions, the trajectory of a molecule is not straight but it executes a random walk and molecules
slowly spread – they diffuse. Some collisions of appropriate molecules may also lead to chemical reactions.
The frequency of such reactive collisions is characterized by the rate constant of the corresponding chemical
reaction. Let us consider a system of k chemicals diffusing and reacting in a domain Ω ⊂ R3 . The domain Ω
may be a cell which is bounded by its membrane, or part of an extracellular space. Let nj (x, t), j = 1, . . . , k,
be the density of molecules of the j-th chemical species at the point x ∈ Ω. Assuming that there are a lot
of molecules present in the system, the time evolution of density nj (x, t) can be computed by solving the
system of reaction-diffusion partial-differential equations
∂nj
= Dj ∇2 nj + Rj (n1 , n2 , . . . , nk ), j = 1, . . . , k, (1)
∂t
where Dj is the diffusion constant of the j-th chemical species, ∇2 is the Laplace operator and reaction
term Rj (n1 , n2 , . . . , nk ) takes into account the chemical reactions which modify the concentration of the j-th
chemical species. To describe uniquely the time evolution of the system, we have to introduce suitable
boundary conditions for the system of equations (1). The simplest boundary conditions can be formulated
in terms of vanishing density nj (x, t) on the boundary of Ω or vanishing flux through the boundary of Ω.
Coupling system of equations (1) with such a boundary condition, we can compute densities nj (x, t) at any
time t from the initial densities nj (x, 0), j = 1, . . . , k.
Reaction-diffusion processes in biology often involve low molecular abundancies of some chemical
species. In such a case, the continuum deterministic description (1) is no longer valid and suitable stochastic
models must be used instead. Various stochastic simulation algorithms have been proposed in the literature
[1, 12, 14, 24]. In general, the stochastic treatment of diffusion and first-order reactions (such as degradation
or conversion) is well understood. There is less understanding (and stochastic models differ) when second-
order chemical reactions are taken into account, e.g. reactions in which two molecules collide for the
reaction to take place. Another important problem is the implementation of the correct boundary conditions
for the stochastic simulation algorithms. On the one hand, the simple boundary conditions mentioned above
are easy to reformulate in the stochastic case – the vanishing density on the boundary of Ω simply means
that a diffusing molecule is removed from the system whenever it hits the boundary; and the vanishing
flux through the boundary means that a diffusing molecule is reflected whenever it hits the boundary. On
the other hand, more realistic boundary conditions have to be handled with care. They can be formulated
in terms of the partially adsorbing boundary, which means that some molecules hitting the boundary are
reflected and some are adsorbed. The partially adsorbing boundary corresponds to the so-called Robin
boundary condition (or radiative boundary condition [5]) of the macroscopic partial-differential equation (1).
However, this correspondence is model-dependent.
We will see later, in Section 5, that the derivation of the correct boundary condition depends on the
stochastic model of the diffusion but not on the stochastic model of the chemical reactions in the solution.
Consequently, we start this paper by studying stochastic models of diffusion only. In Section 2, we introduce
four different stochastic approaches to model molecular diffusion and we state the appropriate boundary
conditions. In Section 3, we present illustrative simulations of all four models, validating the boundary
conditions presented. Moreover, we also clearly illustrate that the boundary conditions are indeed model-
dependent. In Section 4, we present the mathematical derivation of the boundary conditions for each
model, i.e. we provide a theoretical justification of results from Section 2. Moreover, we show that all four
models are suitable for modelling diffusion far from the reactive boundary. Section 4 is intended for a more
theoretical audience and can be skipped by a reader who is not interested in the mathematical justification
of the boundary conditions and stochastic models. In Section 5, we show that reaction-diffusion models
can be treated using the same boundary conditions which were previously derived for the corresponding
models of the diffusion only. We conclude with summary and outlook in Section 6.

2. Boundary conditions for stochastic models of diffusion

The boundary condition of any stochastic simulation algorithm can be formulated as follows: whenever a
molecule hits the boundary, it is adsorbed with some probability, and reflected otherwise. The special cases
of this boundary condition are: (a) the molecule is always reflected (such a boundary is called the reflecting
boundary in what follows); and (b) the molecule is always adsorbed (in this case the boundary is called fully
adsorbing). The reflecting boundary condition is often used when no adsorption of the diffusing molecules
on the boundary takes place. On the other hand, if the molecule can chemically or physically attach to the
boundary, then one has to assume that the boundary is (at least) partially adsorbing.
The important question is, what is the probability that the particle is adsorbed rather than reflected, and
how does this relate to the reactive properties of the boundary for a given stochastic model? To answer
this question, let us follow the x-coordinate of the diffusing molecule (the other coordinates can be treated
similarly), so that we study the diffusion of molecules in the one-dimensional interval [0, L] where L is the
length of the computational domain. Assuming that we have a lot of molecules in the system, we can
describe the system in terms of density n(x, t) of molecules at point x ∈ [0, L] and time t, so that n(x, t) δx
gives the number of molecules in the small interval [x, x + δx] at time t. The evolution of n(x, t) is governed
by the diffusion equation
∂n ∂2n
= D 2, for x ∈ [0, L], t ≥ 0, (2)
∂t ∂x

2
where D is the diffusion constant. The general first-order reactive boundary condition at x = 0 is the
so-called Robin boundary condition
∂n
D (0, t) = K n(0, t) (3)
∂x
where the nonnegative constant K describes the reactivity of the boundary (see Appendix for the relation
between K and the chemical properties of the boundary) and may in general depend on time. A reflective
boundary corresponds to K = 0 and a fully adsorbing boundary corresponds to K = ∞. The boundary
condition at the right boundary x = L can be treated similarly.
In the following four subsections we introduce four stochastic models of diffusion. The first model,
introduced in Section 2.1, is a position jump process on a lattice. This model is discrete in both time and
space, and is used in a stochastic simulation algorithm which is based on the reaction-diffusion master
equation [12, 14]. The second model, introduced in Section 2.2, is again discrete in time and discontinuous
in space but the positions of molecules are not confined to a regular lattice. It is essentially the Euler
scheme for the Smoluchowski stochastic differential equation, which is the core of the stochastic approach
of Andrews and Bray [1]. The third scheme, introduced in Section 2.3, is a discrete velocity jump process
which is a discrete in time, continuous in space random walk with discretized velocities, where the velocities
evolve on a finite lattice. The last stochastic model of diffusion, introduced in Section 2.4, is the Euler
scheme for the solution of the stochastic Langevin equation. It is a velocity jump process (i.e. a random
walk discrete in time, continuous in space and discontinuous in velocities) where the Brownian particle
can move with any real value of the velocity. In all four cases, we study the connections between the
boundary conditions of the stochastic simulation and Robin boundary condition (3) of the macroscopic
diffusion equation (2). We provide the relation between K in (3) and the parameters of each model. The
mathematical derivation of these relations is included later, in Section 4.

2.1. Position Jump Process I


Let us discretize the domain of interest [0, L] into M lattice points a distance h = L/M apart, namely we
consider the lattice
½ ¾
h 3h 5h 7h 9h (2M − 1)h
, , , , .... . (4)
2 2 2 2 2 2
Let us choose time step ∆t such that 2D∆t ≪ h2 . We simulate a system of N molecules whose positions
are assumed to be at one of the discrete positions (4). Let xi (t) be the position of the i-th molecule,
i = 1, 2, . . . , N , at time t. The position xi (t + ∆t) is computed from the position xi (t) as follows:

 xi (t)
 with probability 1 − 2D∆t/h2 ,
xi (t + ∆t) = xi (t) − h with probability D∆t/h2 , (5)

 2
xi (t) + h with probability D∆t/h .
At x = 0, we implement the following boundary condition: whenever a molecule hits the boundary, it is
adsorbed with probability P1 h, and reflected otherwise. Here, P1 is a given nonnegative constant. The
implementation of this boundary condition at x = 0 is performed as follows. If the i-th molecule is at position
xi (t) = h/2 and attempts to jump to the left, then
xi (t + ∆t) = h/2 with probability 1 − P1 h. (6)
Otherwise, we remove the molecule from the system. We show in Section 4.1 that the random walk (5) with
boundary condition (6) leads to the diffusion equation (2) with Robin boundary condition (3), where
K
K = P1 D, which is equivalent to P1 = . (7)
D

3
2.2. Position Jump Process II
Let us choose a time step ∆t. Let xi (t), i = 1, 2, . . . , N , be the position of the i-th molecule at time t. The
position xi (t + ∆t) is computed from the position xi (t) as follows:

xi (t + ∆t) = xi (t) + 2D ∆t ζi , i = 1, . . . , N, (8)
where ζi is normally distributed random variable with zero mean and unit variance. This random walk is
essentially the Euler scheme for the Smoluchowski stochastic differential equation (21) as discussed later,
in Section 4.2. We implement the following partially adsorbing √boundary condition at x = 0: whenever a
molecule hits the boundary, it is adsorbed with probability P2 ∆t, and reflected otherwise. Obviously, if
xi (t + ∆t) computed by (8) is negative, a molecule has hit the boundary. However, Andrews and Bray [1]
argue that there is a chance that a molecule hit the boundary during the finite time step even if xi (t + ∆t)
computed by (8) is positive; that is, during the time interval [t, t + ∆t] the molecule might have crossed to
xi negative and then crossed back to xi positive again. They found that the probability that the molecule
hit the boundary x = 0 at least once during the time step ∆t is exp[−xi (t)xi (t + ∆t)/(D∆t)] for xi (t) ≥ 0,
xi (t + ∆t) ≥ 0. Consequently, the partially reflective boundary condition is implemented as follows:

(a) If x√
i (t + ∆t) computed by (8) is negative then xi (t + ∆t) = −xi (t) − 2D ∆t ζi with probability
1 − P2 ∆t, otherwise we remove the molecule from the system.
(b) If xi (t + ∆t) computed by (8) is positive
√ then we remove the molecule from the system with
probability exp[−xi (t)xi (t + ∆t)/(D∆t)]P2 ∆t.
The partially adsorbing boundary condition (a) - (b) leads to the Robin boundary condition (3) with
√ √
2P2 D K π
K= √ , which is equivalent to P2 = √ . (9)
π 2 D
Let us note that some authors use the case (a) only as the implementation of the partially reflective boundary
condition [23], i.e. they do not take the Andrews and Bray correction (b) into account. Considering the
random walk (8) with the boundary condition (a) only, the parameter K of Robin boundary condition (3) can
be computed as
√ √
P2 D K π
K = √ , which is equivalent to P2 = √ . (10)
π D
Comparing (9) and (10), we see that we lose a factor of 2 if we do not consider the Andrews and Bray
correction (b). The mathematical justification of formulas (9) and (10) is presented in Section 4.2.

2.3. Velocity Jump Process I


We consider that each molecule moves along the x-axis at a constant (large) speed s, but that at random
instants of time it reverses its direction according to a Poisson process with the turning frequency
s2
λ= . (11)
2D
Therefore, the i-th molecule is described by two variables: its position xi (t) and its velocity vi (t) = ±s. We
use a small time step ∆t such that λ∆t ≪ 1. During each time step a molecule moves with speed s in the
chosen direction. At the end of each time step, uniformly distributed random number ri ∈ [0, 1] is generated.
If ri < λδt, then the i-th molecule changes its direction, so that it will move during the next time step in the
opposite direction.
We implement the following partially adsorbing boundary condition at x = 0: whenever a molecule hits
the boundary, it is adsorbed with probability P3 /s, and reflected otherwise. Here, P3 is a given nonnegative
number. The partially adsorbing boundary condition at x = 0 is implemented as follows. If the position of
the i-th molecule satisfies xi (t + ∆t) < 0 at the end of the time step, then
¾
xi (t + ∆t) = −xi (t) − vi (t)∆t P3
with probability 1 − , (12)
vi (t + ∆t) = −vi (t) s
4
otherwise, the i-th molecule is removed from the system. It can be shown that this velocity jump process
leads to diffusion equation (2) provided that s is sufficiently large (see Section 4.3 for details). Boundary
condition (12) can be related with Robin boundary condition (3), with
P3
K= , which is equivalent to P3 = 2K. (13)
2

2.4. Velocity Jump Process II


Let us choose time step ∆t. The i-th molecule is described by two variables: its position xi (t) and its
velocity vi (t). We compute position xi (t + ∆t) and velocity vi (t + ∆t) from position xi (t) and velocity vi (t)
by formulas
xi (t + ∆t) = xi (t) + vi (t)∆t, (14)

vi (t + ∆t) = vi (t) − βvi (t)∆t + β 2D∆t ζi , (15)
where β is the (large) friction coefficient and ζi is a normally distributed random variable with zero mean and
unit variance. This random walk is essentially the Euler scheme for the stochastic Langevin equation [4].
The partially reflective boundary condition at√x = 0 can be stated as follows: whenever a molecule hits the
boundary, it is adsorbed with probability P4 / β, and reflected otherwise. Here, P4 is a given nonnegative
number. The implementation of this boundary condition is straightforward. If xi (t + ∆t) computed by (14) is
negative then
¾
xi (t + ∆t) = −xi (t) − vi (t)∆t
√ P4
with probability 1 − √ ; (16)
vi (t + ∆t) = −vi (t) + βvi (t)∆t − β 2D∆t ζi β
otherwise, we remove the i-th molecule from the system. It can be shown that this velocity jump process
leads to diffusion equation (2) provided that β is sufficiently large (see Section 4.4 for details). The
parameter K of Robin boundary condition (3) is
√ √
P4 D K 2π
K= √ , which is equivalent to P4 = √ . (17)
2π D

3. Comparison of stochastic models of diffusion

In this section, we present the results of two illustrative numerical simulations. First, we choose the
macroscopic value of K in (3), and we show the results of stochastic simulations with the correct choice of
the probabilities of the adsorption on the reactive boundary for each model. We demonstrate numerically
the validity of relations between these probabilities and K, which were stated in Section 2 (the mathematical
justification of these formulas is provided later, in Section 4). In the second numerical example, we choose
the apparently same microscopic boundary condition for each model. The goal is to demonstrate that the
realistic boundary condition has to be chosen for each model with care, by applying formulas (7), (9), (13)
or (17).

3.1. Stochastic simulation of models of diffusion


Let us consider the computational domain [0, 5], i.e. L = 5 in this section. We choose diffusion constant
D = 1, and reactivity of the boundary x = 0 as K = 2. We consider that the right boundary x = L is
reflecting. Given an initial density profile n(x, 0), we can compute the density n(x, t) at time t ≥ 0 by solving
diffusion equation (2) accompanied with Robin boundary condition (3) at x = 0 and no-flux boundary
condition at x = L. In this section, we show that comparable results can be obtained by all four stochastic
models provided that we choose the boundary conditions accordingly.
The key formulas were provided in the previous section. Given values of K and D, we can compute the
adsorbing probabilities on the reactive boundary x = 0 by formula (7) for Position Jump Process I, formula
(9) for Position Jump Process II, formula (13) for Velocity Jump Process I and formula (17) for Velocity Jump

5
Position Jump Process I Position Jump Process II
3000 3000
P =2 P =1.772..
1 2
2500 K=2 2500 K=2
number of molecules

number of molecules
2000 2000

1500 1500

1000 1000

500 500

0 0
0 1 2 3 4 5 0 1 2 3 4 5
position position

Velocity Jump Process I Velocity Jump Process II


3000 3000
P =4 P =5.013..
3 4
2500 K=2 2500 K=2
number of molecules

number of molecules
2000 2000

1500 1500

1000 1000

500 500

0 0
0 1 2 3 4 5 0 1 2 3 4 5
position position

Figure 1. Stochastic simulations of four different diffusion models for K = 2 and D = 1. Probabilities of
adsorption at partially adsorbing boundary x = 0 were computed for each model according to formulas (7), (9),
(13) and (17).

Process II. We obtain appropriate values of constants P1 , P2 , P3 and P4 which are used in the corresponding
stochastic model. In our case K = 2 and D = 1, so that formulas (7), (9), (13) and (17) imply
√ . √ .
P1 = 2, P2 = π = 1.772, P3 = 4, P4 = 2 2π = 5.013. (18)
The results of stochastic simulations are presented in Figure 1. The initial condition was chosen as follows:
we start with 100, 000 molecules in domain [0, 5]. We put 75, 000 molecules to position x = 1 and 25, 000
to position x = 2 at time t = 0. We plot the density profile at time t = 1 in Figure 1. To do that, we divide
the interval [0, 5] into 50 bins of length 0.1 and we plot the number of molecules in each bin at time t = 1
(histograms). We also plot the solution of diffusion equation (2) accompanied by Robin boundary condition
(3) at x = 0 and no-flux boundary condition at x = L. We see that all four models of diffusion give the same
results provided that we choose the partially adsorbing probability accordingly.
To compute the simulation results from Figure 1, we also had to specify the additional parameters of
the stochastic models. We used space step h = 0.1 and time step ∆t = 10−4 in Position Jump Process I.
We used time step ∆t = 10−4 in Position Jump Process II. We used speed s = 40 and time step ∆t = 10−5
in Velocity Jump Process I and we used friction coefficient β = 200 and time step ∆t = 10−6 in Velocity
Jump Process II.

6
Position Jump Process I Position Jump Process II
4000 4000
number of molecules

number of molecules
3000 3000

2000 2000

1000 1000

0 0
0 1 2 3 4 5 0 1 2 3 4 5
position position

Velocity Jump Process I Velocity Jump Process II


4000 4000
number of molecules

3000 number of molecules 3000

2000 2000

1000 1000

0 0
0 1 2 3 4 5 0 1 2 3 4 5
position position

Figure 2. Stochastic simulations of four different diffusion models for R = 0.05 and D = 1 (histograms). Solid
curves show the solution of the diffusion equation (2) accompanied by no-flux boundary condition at x = 5 and
Robin boundary condition (3) at x = 0 where the values of K are computed according to formulas (7), (9), (13)
and (17).

3.2. Consequences of the same probability of adsorption


Let us now consider the following boundary condition: whenever a molecule hits the boundary, it is adsorbed
with probability R, and reflected otherwise. We can easily modify the computer codes which were used to
compute stochastic simulation results from Figure 1 to incorporate this boundary condition: whenever the
i-th molecule hits the boundary, we generate a random number ri uniformly distributed in [0, 1]. If ri < R,
we remove the i-th molecule from the system. It means that the adsorbing condition which was stated in
terms of P1 , P2 , P3 and P4 is replaced by the same condition expressed in terms of R. Choosing R = 0.05
and the same parameters and initial condition as in Section 3.1, the stochastic simulation results at time
t = 1 are shown in Figure 2 (histograms obtained by dividing domain [0, 5] into 50 bins and plotting the
number of molecules in each bin). We clearly see that the results quantitatively differ. The reason is that the
probability of adsorption scales with other parameters of simulations: namely with space step h for Position
Jump Process I, with time step ∆t for Position Jump Process II, with speed s for Velocity Jump Process I and
with friction coefficient β for Velocity Jump Process II. The values of these scaling parameters were chosen
as in Section 3.1. Namely, we used space step h = 0.1 in Position Jump Process I, time step ∆t = 10−4
in Position Jump Process II, speed s = 40 in Velocity Jump Process I and friction coefficient β = 200 in

7
Velocity Jump Process II. Using these values, we can compute P1 , P2 , P3 and P4 which correspond to
R = 0.05. Moreover, we can use formulas (7), (9), (13) and (17) to compute the corresponding value of K
.
in Robin boundary condition (3). We obtain K = 0.5 for Position Jump Process I, K = 5.64 for Position Jump
.
Process II, K = 1 for Velocity Jump Process I and K = 0.28 for Velocity Jump Process II. The solutions of
diffusion equation (2) accompanied by no-flux boundary condition at x = 5 and Robin boundary condition
(3) at x = 0 with the appropriate choice of K are plotted in Figure 2 for comparison as solid curves. We see
that the Robin boundary condition (3) at x = 0 with the appropriate choice of K gives the correct results
when compared with stochastic simulations. Moreover, we also confirm that the same value of R leads to
the different values of K. Hence the boundary condition cannot be formulated in terms of one probability
R. It has to be appropriately scaled as shown in Section 2.
To enable a direct comparison between models, we can slightly reformulate Position Jump Process I.
The formulation from Section 2.1 was chosen in a way which is used in the stochastic reaction-diffusion
approaches which are based on the reaction-diffusion master equation [12, 14]. In particular, no relation
between h and ∆t was given and the probability of partial adsorption had to be scaled with h. One can
also √formulate the position jump process on lattice as follows: we choose time step ∆t and space step
h = 2D ∆t. At each time step, the molecule jumps to the left with probability 1/2 and to the right otherwise.
This random walk can be accompanied with partially √ adsorbing boundary condition: whenever a molecule
hits the boundary, it is adsorbed with probability Pe1 ∆t, and reflected otherwise. This boundary condition
leads to Robin boundary condition (3) with K given by

Pe1 D
K= √ .
2
Comparing this formula with (9) or (13), we see that the Robin boundary condition is different for Position
Jump √ Process I and Position Jump Process II even if we scale the adsorption probability with the same
factor ∆t.
The velocity jump processes p can also be further compared. To do this, let us note that the speed s of a
molecule can be estimated as kT /m where k is the Boltzmann’s constant, √ T is the absolute temperature
and m is the mass of a molecule. In particular, we get the relation
√ s = Dβ which can be used to scale the
boundary condition √ of Velocity Jump Process I in terms of β instead of s. Consequently, we can relate P3
to P4 by P3 = P4 D. However, using this relation in (13), we obtain a different Robin boundary condition
(3) than by using formula (17).
To summarize this section, it is possible to reformulate
√ Position Jump Process I to have the adsorption
probability of both position jump processes scaled as P ∆t. It is possible to relate s to β√in Velocity Jump
Process I to have the adsorption probability of both velocity jump processes scaled as P/ β. Then all four
cases lead to Robin boundary condition (3) of the form

K = αP D (19)
where α is model-dependent. Consequently, the boundary condition has to be chosen differently for each
model to get the same value of K in Robin boundary condition (3). One has to use formulas (7), (9), (13)
and (17) as we showed in Section 3.1.

4. Mathematical analysis of stochastic models of diffusion

The goal of this section is to provide the justification of the results from Section 2. For each stochastic
model, we show that the model leads to the diffusion equation (2) away from the boundary. Moreover, we
derive the Robin boundary condition for each model.

4.1. Position Jump Process I


Let pk (t) be the probability of finding a molecule at mesh point xk = (2k − 1)h/2 where k = 1, 2, . . . , M . If
k 6= 1, k 6= M , then pk satisfies
µ ¶
2D∆t D∆t ³ ´
pk (t + ∆t) = 1 − 2
pk (t) + 2 pk+1 (t) + pk−1 (t)
h h
8
which can be rewritten as
pk (t + ∆t) − pk (t) pk+1 (t) + pk−1 (t) − 2pk (t)
=D .
∆t h2
Passing to the limit ∆t → 0, h → 0, we obtain the diffusion equation (2). The boundary condition at x = 0
can be incorporated into the equation for p1 (t) as
µ ¶
2D∆t D∆t ³ ´
p1 (t + ∆t) = 1 − 2
p1 (t) + 2 p2 (t) + (1 − P1 h)p1 (t) (20)
h h
which can be rewritten as
√ µ ¶
√ p1 (t + ∆t) − p1 (t) D ∆t p2 (t) − p1 (t)
∆t = − P1 p1 (t) .
∆t h h

Passing to the limit ∆t → 0, h → 0 such that ∆t/h is kept constant, we obtain (7).

4.2. Position Jump Process II


Position jump process (8) is a discretized version (Euler scheme) of the stochastic differential equation

X(t + dt) = X(t) + 2D dW (dt) (21)
where dW (dt) is the normal random variable with mean 0 and variance dt (i.e. the propagator of the
special Wiener process) and D is the macroscopic diffusion constant. The diffusion equation (2) is the
Fokker-Planck equation corresponding to the stochastic differential equation (21) and its derivation can
be found in any standard textbook [20]. The derivation of Robin boundary condition (9) is more delicate
and requires the application of asymptotic methods [2]. To do that, we consider the Position Jump
Process II on the semiinfinite interval [0, ∞) subject to the boundary condition (a)-(b) from Section 2.2.
Let p∆t ≡ p∆t (x, t) : [0, ∞) × ∆t N0 → [0, ∞) be the probability density function of the discretized process
(8) with the boundary condition (a)-(b), so that p∆t (x, i∆t)dx is the probability of finding a molecule in the
interval [x, x + dx] at time t = i∆t. We have
Z ∞
p∆t (x, t + ∆t) = p(x, t + ∆t | y, t) p∆t (y, t) dy, (22)
0
where p(x, t + ∆t | y, t) is the conditional probability distribution function of finding a molecule at point x at
time t + ∆t given that it is at point y at√time t. There are two possible options to reach point x at time
√ t + ∆t:
either we use (8) only,√i.e. x = y + 2D ∆t ζi ; or we use the boundary condition x = −y − 2D ∆t ζi
with probability 1 − P2 ∆t. If the former is true, we have to take into account that some molecules are lost
because of the Andrews and Bray boundary correction (b). Consequently, we have
µn h xy i √ o · ¸
1 (x − y)2
p(x, t + ∆t | y, t) = √ 1 − exp − P2 ∆t exp − +
4πD ∆t D∆t 4D ∆t
· ¸¶
√ (x + y)2
+ (1 − P2 ∆t) exp −
4D ∆t
µ · ¸ · ¸¶
1 (x − y) 2 √ (x + y)2
=√ exp − + (1 − 2P2 ∆t) exp − .
4πD ∆t 4D ∆t 4D ∆t
Thus (22) reads as follows
p∆t (x, t + ∆t) =
Z ∞ µ · ¸ · ¸¶
p (y, t) (x − y)2 √ (x + y)2
√∆t exp − + (1 − 2P2 ∆t) exp − dy. (23)
0 4πD ∆t 4D ∆t 4D ∆t
Away from the boundary, a steepest descent approximation to the integral as ∆t → 0 leads to the diffusion
equation (2). However, as observed in [23], in the vicinity of the boundary, such a calculation needs to

9

be modified: there is a boundary layer of width ∆t, and it is the solution in the boundary layer which
determines the boundary condition of the diffusion equation. We use the method of matched √ asymptotic
expansions [13]. In the boundary layer, we change variables from x to η by setting x = ∆t η and define
the inner solution √
pinner (η, t) = p∆t ( ∆t η, t).

Expanding pinner in the powers of ∆t, we obtain

pinner (η, t) ∼ pi,0 (η, t) + ∆t pi,1 (η, t) + ∆t pi,2 (η, t) + . . . .

Using this expansion in the integral equation


√ (23) and comparing the terms of the same order, we obtain at
O(1) that pi,0 is independent of η. At O( ∆t) we find that
Z ∞ · ¸
pi,0 (ξ + η)2
pi,1 (η) = −2P2 √ exp − dξ
0 4πD 4D
Z ∞ µ · ¸ · ¸¶
p (ξ) (ξ − η)2 (ξ + η)2
+ √i,1 exp − + exp − dξ. (24)
0 4πD 4D 4D
Now by matching the inner boundary layer expansion with the outer expansion p∆t (x, t) ∼ n(x, t) + . . ., we
find pi,0 (t) = n(0, t) and
∂pi,1 ∂n
lim (η, t) = (0, t). (25)
η→∞ ∂η ∂x
Thus to determine the boundary condition on n at x = 0 we need to determine the behaviour of ∂pi,1 /∂η as
η → ∞. Differentiating (24) with respect to η, we obtain
· ¸
∂pi,1 P2 pi,0 η2
(η) = √ exp −
∂η πD 4D
Z ∞ µ · ¸ · ¸¶
p (ξ) ξ − η (ξ − η)2 ξ+η (ξ + η)2
+ √i,1 exp − − exp − dξ.
0 4πD 2D 4D 2D 4D
Using integration by parts, we obtain the integral equation
· ¸
∂pi,1 P2 pi,0 η2
(η) = √ exp − (26)
∂η πD 4D
Z ∞ µ · ¸ · ¸¶
1 ∂pi,1 (ξ − η)2 (ξ + η)2
+√ (ξ) exp − − exp − dξ.
4πD 0 ∂η 4D 4D
Let us define the function g(η) by
· ¸
P2 pi,0 η2 ∂pi,1
g(η) = − √ exp − + (η). (27)
πD 4D ∂η
Then (26) can be rewritten as
Z ∞ µ · ¸ · ¸¶
1 (ξ − η)2 (ξ + η)2
g(η) = φ(η) + √ g(ξ) exp − − exp − dξ (28)
4πD 0 4D 4D
where
· ¸µ · ¸ · ¸¶
P2 pi,0 η2 η η
φ(η) = √ exp − erf √ − erf − √ (29)
8πD 8D 8D 8D
and the error function is defined by
Z ξ
2 £ ¤
erf(ξ) = √ exp −σ 2 dσ.
π 0

10
The function g(η) is defined for η ≥ 0. Since φ(η) is odd function, we can define g(η) for the negative values
as an odd function too by setting g(η) = −g(−η) for η < 0. Then equation (28) can be simplified to
Z ∞ · ¸
1 (ξ − η)2
g(η) = φ(η) + √ g(ξ) exp − dξ. (30)
4πD −∞ 4D
The natural way to solve such an equation is to apply a Fourier transform, but we have to be slightly careful
since the Fourier transform of g does not exist in the classical sense (g tends to a constant at infinity, so is
not integrable). Defining
g+ (η) = g(η)χ[0,∞) (η) g− (η) = g(η)χ(−∞,0] (η),
where χ[a,b] is the characteristic function of the interval [a, b] (that is, χ[a,b] (η) = 1 if a ≤ η ≤ b and zero
otherwise), and applying the Fourier transform
Z ∞
b
h(k) = h(η) exp[ikη] dη
−∞

to equation (30), we obtain


£ ¤
gc
+ (k) + g
c b
− (k) = φ(k) + (c
g+ (k) + gc
− (k)) exp −Dk
2
.
Thus
b
φ(k)
gc
+ (k) + g
c − (k) = . (31)
1 − exp [−Dk 2 ]
This seems like one equation for the two unknowns gc + (k) and g c− (k), but in fact we know from their
definitions that gc
+ (k) is analytic for the imaginary part of k positive, while gc− (k) is analytic for the imaginary
part of k negative, and this tells us how to divide all the poles of the right-hand side between gc + (k) and
gc
− (k), except for the pole at the origin, which may appear in either g
c + (k) or gc− (k). To divide this pole
contribution up we note that since g is odd, gc + (k) = −c
g − (−k), which implies that the coefficients of the odd
powers of k near zero are equal in gc + (k) and g
c − (k), and that the coefficients of the even powers are zero.
Using (27) we have
Z ∞
∂pi,1 1
lim (η) = lim g(η) = lim gc+ (k) exp[−ikη] dk,
η→∞ ∂η η→∞ η→∞ 2π −∞

where the inversion contour lies in the upper half-plane. Deforming the contour to −i∞ we pick up residue
contributions from each of the poles of (31) in the lower half plane. The only finite contribution as η → ∞
arises from the pole at the origin. Since

b 4i DP2 pi,0 k
φ(k) ∼ √ as k → 0,
π
we have
2iP2 pi,0
+ (k) ∼ √
gc as k → 0,
πD k
so that

∂pi,1 2P2 D
D lim (η) = √ pi,0 .
η→∞ ∂η π
Using the matching condition (25) we therefore derive the Robin boundary condition (9) for the stochastic
boundary condition (a)-(b). If we consider the boundary condition (a) only, equation (22) leads to the
modified formula (23) where 2P2 is replaced by P2 . Thus the boundary layer method presented above gives
in that case the Robin boundary condition (10), which differs from (9) by the factor of two.

11
4.3. Velocity Jump Process I
Using standard methods [15, 9], one can show that the density of molecules n(x, t) satisfies the damped
wave (telegrapher’s) equation
1 ∂ 2 n ∂n s2 ∂ 2 n
+ = . (32)
2λ ∂t2 ∂t 2λ ∂x2
The long time behaviour of (32) is described by the corresponding parabolic limit [25]. Using (11), we obtain
that n(x, t) satisfies (2) for times t ≫ λ−1 .
Next, we derive the Robin boundary condition corresponding to (12). Let p+ (x, t) be the density of
molecules that are at (x, t) and are moving to the right, and let p− (x, t) be the density of molecules
that are at (x, t) and are moving to the left. Then the density of molecules at (x, t) is given by the sum
n(x, t) = p+ (x, t)+p− (x, t), and the flux is j(x, t) = s(p+ (x, t)−p− (x, t)). The stochastic boundary condition
(12) implies
µ ¶
P3
p+ (0, t) = 1 − p− (0, t).
s
This boundary condition can be written in terms of n and j as
µ ¶ µ ¶ µ ¶
1 j(0, t) P3 1 j(0, t)
n(0, t) + = 1− n(0, t) −
2 s s 2 s
which implies
µ ¶
P3
P3 n(0, t) = − 2 j(0, t).
s
Since
∂n
j(0, t) ≈ −D (0, t), (33)
∂x
we derive (13) in the limit s → ∞.

4.4. Velocity Jump Process II


The random walk (14)-(15) is a discretized version of Langevin’s equation [4]. To derive the Robin boundary
condition, we consider the behaviour of molecules in the semiinfinite interval [0, ∞). The i-th molecule is
described by two variables: its position xi (t) and its velocity vi (t). We compute the position xi (t + ∆t) and
velocity vi (t + ∆t) from the position xi (t) and velocity vi (t) by (14)-(15) together with boundary condition
(16) at x = 0. Let f (x, v, t) be the density of molecules which are at position x with velocity v at time t,
so that f (x, v, t) δx δv is number of molecules in interval [x, x + δx] with velocities between v and v + δv
at time t. Assuming that the change in velocity of the i-th molecule during the time step is ∆v (i.e.
∆v = vi (t + ∆t) − vi (t)), there are two possible options for the molecule to reach a point x ≥ 0 with velocity
v at time t + ∆t: either the molecule was at position xi (t) = x − (v − ∆v)∆t with velocity vi (t) = v − ∆v at
time t; or at position xi (t) = −x + (v + ∆v)∆t with velocity vi (t) = −v − ∆v and was reflected according to
(16). Both cases make sense only if xi (t) ≥ 0. Consequently, f (x, v, t + ∆t) can be computed from f (·, ·, t)
by the integral equation
Z ∞
f (x, v, t + ∆t) = f (x − (v − ∆v)∆t, v − ∆v, t) ψ(v − ∆v; ∆v) d∆v + (34)
v−x/∆t
µ ¶Z
P4 ∞
+ 1− √ f (−x + (v + ∆v)∆t, −v − ∆v, t) ψ(−v − ∆v; ∆v) d∆v
β −v+x/∆t

where ψ(w; ∆v) is a distribution function of the conditional probability that the change in velocity during the
time step is ∆v provided that vi (t) = w. Using (15), we obtain
· ¸
1 (∆v + βw∆t)2
ψ(w; ∆v) = √ exp − . (35)
β 4πD∆t 4β 2 D∆t
12
Passing to the limit ∆t → 0, we obtain that f (x, v, t) satisfies the Fokker-Planck equation [4]
µ ¶
∂f ∂f ∂ ∂f
+v =β vf + βD (36)
∂t ∂x ∂v ∂v
together with the boundary condition
µ ¶
P4
f (0, v, t) = 1 − √ f (0, −v, t). (37)
β
The density of molecules at the point x and time t is defined by
Z
n(x, t) = f (x, v, t) dv. (38)
R
To derive the diffusion equation for n and the corresponding Robin boundary condition we consider the limit
in which β → ∞ and rescale the velocity variable by setting
p
v = η β, f (x, η, t) = f (x, v, t),

to give
µ ¶
1 ∂f 1 ∂f ∂ ∂f
+√ η = ηf + D . (39)
β ∂t β ∂x ∂η ∂η

We expand f in powers of 1/ β as
1 1
f (x, η, t) = f0 (x, η, t) + √ f1 (x, η, t) + f2 (x, η, t) + . . . . (40)
β β
Substituting (40) into (39) and equating coefficients of powers of β we obtain
µ ¶
∂ ∂f0
ηf0 + D = 0, (41)
∂η ∂η
µ ¶
∂ ∂f1 ∂f0
ηf1 + D =η , (42)
∂η ∂η ∂x
µ ¶
∂ ∂f2 ∂f1 ∂f0
ηf2 + D =η + . (43)
∂η ∂η ∂x ∂t
Solving equations (41)-(42), we obtain
· ¸
η2
f0 (x, η, t) = ̺(x, t) exp − , (44)
2D
· ¸
∂̺ η2
f1 (x, η, t) = − (x, t) η exp − (45)
∂x 2D
where the function ̺(x, t) is independent of η. Substituting (44)-(45) into (43) gives
µ ¶ · ¸ · ¸
∂ ∂f2 ∂2̺ 2 η2 ∂̺ η2
ηf2 + D = − 2 η exp − + exp − .
∂η ∂η ∂x 2D ∂t 2D
Integrating over η gives the solvability condition
∂̺ ∂2̺
= D 2.
∂t ∂x
Using (38), we see that ̺(x, t) is proportional to density of individuals n(x, t) for large β. Consequently,
n(x, t) satisfies the diffusion equation (2) for large β. Multiplying (37) by v and integrating over v, we obtain
Z ∞
P4
j(0, t) = − √ vf (0, −v, t) dv (46)
β 0
R
where flux is defined by j(0, t) = R vf (0, v, t) dv. Substituting (44)-(45) into (46), we derive the Robin
boundary condition (17).

13
5. Boundary conditions for stochastic models of reaction-diffusion processes

In this section, we show that reactions in the solution do not change the boundary conditions from Section
2, i.e. the boundary conditions of stochastic models of the reaction-diffusion processes are determined
by the corresponding diffusion model. First, we illustrate this fact numerically in Sections 5.1 and 5.2. In
Section 5.1, we use the stochastic approach based on the reaction-diffusion master equation [12, 14], so
that the corresponding diffusion model is the Position Jump Process I. In Section 5.2, we use the stochastic
approach of Andrews and Bray [1], so that the corresponding diffusion model is the Position Jump Process
II. Then, in Section 5.3, we provide mathematical justification of the fact that the presence of reactions in
the solution does not influence the choice of the boundary condition.

5.1. Nonlinear reaction kinetics


We consider two chemicals A and B which diffuse in the domain of interest [0, 1] with diffusion constants DA
and DB , respectively, and which react according to Schnakenberg reaction kinetics [21]. The chemical A is
produced with a constant rate (from a suitable reactant which is supposed to be in excess) and degraded.
The chemical B is also produced with a constant rate. Moreover, A and B react according to the cubic
reaction
k
2A + B −→
c
3A (47)
where kc is reaction constant. We use a partially adsorbing boundary condition at x = 0 and a reflective
boundary condition at x = 1.
The stochastic simulation algorithm is based on the reaction-diffusion master equation [12, 14]. We
divide the domain of interest into M compartments of the length h = 1/M which are assumed to be
well-mixed. In particular, one can use the classical Gillespie’s algorithm [11] to simulate stochastically
the reactions in each compartment. The system is then described by two M -dimensional vectors
[A1 , A2 , . . . , AM ] and [B1 , B2 , . . . , BM ] where Ai (resp. Bi ) denotes the number of molecules of chemical
A (resp. B) in the i-th compartment. The diffusion of chemicals is added to the system as another set
of reactions–jumps between the neighbouring compartments with the rate DA /h2 (resp. DB /h2 ) [18]. In
particular, the model of diffusion is equivalent to the Position Jump Process I.
We choose M = 50 in what follows, i.e. h = 0.02. Initially, we have ω = 1000 molecules of A and B
in each compartment, i.e. Ai = Bi = ω, i = 1, 2, . . . , M , at time t = 0. The rate of production of A is 2ω
molecules per compartment per unit of time. The rate of production of B is 8ω molecules per compartment
per unit of time. The degradation rate of A in the i-th compartment is proportional to 6Ai and kc is chosen to
be 3ω −2 . Diffusion constants are DA = 1 and DB = 0.1. We implement the following boundary condition at
x = 0: whenever a molecule of chemical A (resp. B) hits the boundary, it is adsorbed with probability P1A h
(resp. P1B h), and reflected otherwise. We choose P1A = P1B = 10. We consider the reflective boundary
condition for both chemicals at right boundary x = 1. Number of molecules in each compartment at time
t = 1 are plotted in Figure 3 (histograms).
Since ω is chosen sufficiently large, we can compare the results of stochastic simulation with A = ωa
and B = ωb where a, b are the solution of the system of reaction-diffusion equations
∂a ∂2a
= DA 2 + 2 − 6a + 3a2 b (48)
∂t ∂x
∂b ∂2b
= DB + 8 − 3a2 b (49)
∂t ∂x2
with Robin boundary conditions at x = 0 given by (7), namely
∂a ∂b
(0, t) = P1A a(0, t), (0, t) = P1B b(0, t), (50)
∂x ∂x
and with no-flux boundary conditions at right boundary x = 1. The curves A = ωa and B = ωb at time t = 1
are plotted in Figure 3 as solid lines for comparison. We see that the Robin boundary (7) which was derived
for the corresponding diffusion model gives good results for the full reaction-diffusion simulation as well.

14
number of molecules of chemical A

number of molecules of chemical B


3000 1500

2500

2000 1000

1500

1000 500

500

0 0
0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1
position position

Figure 3. Stochastic simulations of the reaction-diffusion model of the Schnakenberg kinetics with the partially
adsorbing boundary at x = 0 (histograms). Panel on the left shows chemical A and panel on the right chemical
B. Solution of (48)-(49) with the Robin boundary condition (50) at x = 0 and no-flux boundary condition at x = 1
is plotted as the solid line.

We note that the system (48)-(49) possesses a so-called Turing instability [16] if the values of the
diffusion constants DA and DB are chosen to be sufficiently different. Our choice DA = 1 and DB = 0.1
falls in the regime in which the homogeneous solution a = 10/6 and b = 48/50 of (48)-(49) is stable. On
increasing the ratio DA /DB Turing patterns would develop, and we would observe solutions with multiple
peaks (provided that the domain size is sufficiently large); see e.g. [18].

5.2. Spatially localized reactions


In some morphogenesis applications [22, 19], one assumes that some prepatterning in the domain exists
and one wants to validate the reaction-diffusion mechanism of the next stage of the patterning of the embryo.
In this section, we present an example motivated by this approach. We consider one-dimensional domain
[0, 3] and we use the molecular based approach of Andrews and Bray [1], i.e. the diffusion model is given
by Position Jump Process II. We choose a small simulation time step ∆t. At each time step, a molecule
is released at random points in the subinterval [1, 2] with probability kp ∆t ≪ 1. Moreover, we assume
that any molecule is degraded with probability kd ∆t ≪ 1 during the simulation time step. Here, kp and kd
are given constants. We implement the following √ boundary condition at x = 0: whenever a molecule hits
the boundary, it is adsorbed with probability P2 ∆t, and reflected otherwise. We consider the reflective
boundary condition at right boundary x = 3.
We start with no molecules in computational domain [0, 3] at time t = 0. We choose diffusion constant
D = 1, time step ∆t = 10−7 , production rate kp = 105 , degradation rate kd = 1 and adsorption probability
constant P2 = 5. To visualize the results, we divide the interval [0, 3] into 30 bins of length 0.1 and we plot
the number of molecules in each bin at time t = 1 in Figure 4 (histogram). The results of the stochastic
simulation can be compared with the solution of reaction-diffusion equation
∂n ∂2n
= D 2 + 0.1 kp χ[1,2] − kd n, (51)
∂t ∂x
where χ[1,2] is characteristic function of the interval [1, 2]. Equation (51) is solved in the interval [0, 3] together
with Robin boundary condition (3), with K given by (9), and with no-flux boundary condition at x = 3. Using
.
P2 = 5, formula (9) implies that K = 5.642. The density profile n(x, 1) at time t = 1 is plotted in Figure 4
as a solid line for comparison. We see that the Robin boundary condition (9), which was derived for the
corresponding diffusion model, gives good results for the full reaction-diffusion simulation algorithm too.

15
3500

3000

number of molecules
2500

2000

1500

1000

500

0
0 0.5 1 1.5 2 2.5 3
position

Figure 4. Stochastic simulations of the reaction-diffusion model with spatially localized reaction with the partially
.
adsorbing boundary at x = 0 (histogram). Solution of (51) with Robin boundary condition (3), with K = 5.642,
and with no-flux boundary condition at x = 3, is plotted as the solid line.

5.3. Mathematical justification


Let us consider a system of k chemicals diffusing and reacting in domain [0, L]. Let us suppose that the
diffusion model is the Position Jump Process I, i.e. we use the stochastic approach based on the reaction-
diffusion master equation [12, 14] as in Section 5.1. Let pj1 (t) (resp. pj2 (t)) be the number of molecules of
the j-th chemical, j = 1, 2, . . . , k, at the boundary mesh point x1 = h/2 (resp. at x2 = 3h/2). If there are no
reactions going on, then pj1 (t) and pj2 (t) are related according to (20). Introducing reactions at mesh point
x = h/2, the boundary equation (20) is modified as follows
µ ¶
j 2D∆t D∆t ¡ ¢
p1 (t + ∆t) = 1 − 2
pj1 (t) + 2 pj2 (t) + (1 − P1 h)pj1 (t) + ∆tf (p11 (t), . . . , pk1 (t))
h h

where f (p11 (t), . . . , pk1 (t)) is the sum of the rates of all reactions which modifies the j-th chemical. Following
the same procedure as in Section√4.1, we find out that the additional term does not influence the boundary
condition (it is O(∆t) and only O( ∆t) terms have nonzero contribution to the Robin boundary condition).
In particular, we conclude that the Robin boundary condition of the stochastic reaction-diffusion model is
given by (7).
Next, let us consider the stochastic reaction-diffusion model of Andrews and Bray [1] which was used
in Section 5.2. Let pj∆t ≡ pj∆t (x, t) : [0, ∞) × ∆t N0 → [0, ∞) be the density function of the j-th chemical
species, so that pj∆t (x, i∆t)dx is the number of j-th molecules in interval [x, x + dx] at time t = i∆t. If there
are no reactions going on, then pj∆t satisfies the formula (22). Introducing the reactions to the system,
formula (22) is modified as follows:
Z ∞
p∆t (x, t + ∆t) = [1 + O(∆t)] p(x, t + ∆t | y, t) p∆t (y, t) dy (52)
0
where the additional O(∆t)
√ term corresponds to the reactions in the solution. As before, this term is of lower
order (compared to O( ∆t) terms) and does not influence the Robin boundary condition. Consequently,
the Robin boundary condition (3) is obtained with K given by (9).
In this paper, we did not use the velocity jump processes to simulate stochastically the reaction-diffusion
process. Velocity jump processes are generally more computationally intensive. However, they might be
of use if one considers that only sufficiently fast molecules can actually react. Alternatively, one can use
the approach based on binding/unbinding radii, as in the Andrews and Bray method [1], to incorporate
higher order reactions to the velocity jump models of molecular diffusion. In any case, the reactions are

16
adding again O(∆t) terms and do not influence the boundary conditions, i.e. the boundary conditions of the
stochastic reaction-diffusion models can be chosen as in the corresponding model of the diffusion only.

6. Conclusions and outlook

We have derived the correct boundary conditions for a number of stochastic models of reaction-diffusion
processes. For each model, we related the (microscopic) probability of adsorption on the boundary with
the (macroscopic) Robin (reactive) boundary condition (3). First, we studied several stochastic models of
diffusion. We showed that each model is suitable for the description of the molecular diffusion far from the
boundary. Moreover, we derived formulas (7), (9), (13) and (17) relating reactivity K of the boundary with
the parameters of the stochastic simulation algorithms. Then, we showed that the boundary conditions of
stochastic models of reaction-diffusion processes are the same as for the corresponding model of diffusion
only. We studied the stochastic approaches based on the reaction-diffusion master equation [12, 14] and
on the Smoluchowski equation [1]. The main conclusion of this work is that a modeller can use any of the
stochastic model of the diffusion from Section 2, provided that the adsorption probability on the reactive
boundary is chosen according to the corresponding formula, i.e. (7), (9), (13) or (17), which is model-
dependent.
We also presented the mathematical derivation of key formulas (7), (9), (13) and (17). We devoted
the most space to the derivation of formula (9) which is (to our knowledge) a new mathematical result.
Derivation of formulas (7) and (13) is simple and we included the mathematical arguments for completeness.
The last formula (17) has already appeared in literature [17], though our derivation is more systematic.
Finally, we note that a similar analysis carries over to the case where equation (2) also contains a convection
or drift term, with the partial derivative D∂n/∂x on the left hand side of (3) replaced by the corresponding
flux [23].
It is interesting to note that in some applications, the reactivity of the boundary depends also on
the geometrical constraints on the boundary. The binding sites on the surface (e.g. reactive groups or
receptors) become full as the adsorption progresses. Moreover, attaching large molecules to a binding
site can sterically shield the neighbouring binding sites on the surface. For example, in [8, 6] we studied
the chemisorption of polymers where the attachment of a long polymer molecule to the surface prevents
attachment of other reactive polymers next to it. This steric shielding was modelled using random sequential
adsorption [10]. In these models, an adsorption of one molecule to the surface is attempted per unit of time.
To relate the time scale of random sequential adsorption algorithms with physical time, one should couple
the theory of reactive boundaries presented here with algorithms which take the additional geometrical
constraints on the boundary into account. This is an area of ongoing research [7].

Acknowledgments

This work was supported by the Biotechnology and Biological Sciences Research Council.

Appendix. Robin boundary condition and chemistry

In this appendix, we show the relation between the Robin boundary condition (3) and the experimentally
measurable chemical properties of the boundary. Let us consider a chemical diffusing in the domain [0, L]
which is adsorbed by boundary x = 0 with some rate K. This problem can be described by the reaction-
diffusion equation
∂n ∂2n
= D 2 − Kn δ(x), for x ∈ [0, L], t ≥ 0, (53)
∂t ∂x
together with no-flux boundary conditions, where D is the diffusion constant and δ(x) a Dirac delta function.
The term Kn δ(x) is a standard description of reaction kinetics, localized on the boundary. In the paper,
we used an alternative description of the chemically adsorbing boundary, given by the diffusion equation

17
(2) accompanied by the Robin boundary condition (3). It is interesting to note that the constant K in (3)
is actually equal to the experimentally measurable constant K. To see this, we discretize (53) with space
step h and we denote n0 (t) = n(h/2, t) and n1 (t) = n(3h/2, t). Using a no-flux boundary condition (i.e.
n(−h/2, t) ≡ n(h/2, t)), the discretization of (53) gives
∂n0 n1 − n0 1
=D − Kn0 (54)
∂t h2 h
which is equivalent to
∂n0 n1 − n0 + hKn0
=D . (55)
∂t h2
The same equation can be obtained by the discretization of the diffusion equation (2) together with the
Robin boundary condition (3). Hence we showed that K = K, i.e. the Robin boundary condition (3) is
indeed the correct macroscopic description of the chemically reacting boundary.

References

[1] S. Andrews and D. Bray, Stochastic simulation of chemical reactions with spatial resolution and single molecule detail, Physical
Biology 1 (2004), 137–151.
[2] C. Bender and S. Orszag, Advanced mathematical methods for scientists an engineers, McGraw-Hill book company, 1978.
[3] H. Berg, Random Walks in Biology, Princeton University Press, 1983.
[4] S. Chandrasekhar, Stochastic problems in physics and astronomy, Reviews of Modern Physics 15 (1943), 2–89.
[5] J. Crank, The Mathematics of Diffusion, Oxford University Press, 1975.
[6] R. Erban and S. J. Chapman, On chemisorption of polymers to solid surfaces, Journal of Statistical Physics 127 (2007), no. 6,
1255–1277.
[7] , Time scale of random sequential adsorption, Physical Review E 75 (2007), no. 4, 041116.
[8] R. Erban, S. J. Chapman, K. Fisher, I. Kevrekidis, and L. Seymour, Dynamics of polydisperse irreversible adsorption: a
pharmacological example, Mathematical Models and Methods in Applied Sciences (M3AS) 17 (2007), no. 5, 759–781.
[9] R. Erban and H. Othmer, From individual to collective behaviour in bacterial chemotaxis, SIAM Journal on Applied Mathematics
65 (2004), no. 2, 361–391.
[10] J. Evans, Random and cooperative sequential adsorption, Reviews of Modern Physics 65 (1993), no. 4, 1281–1329.
[11] D. Gillespie, Exact stochastic simulation of coupled chemical reactions, Journal of Physical Chemistry 81 (1977), no. 25, 2340–
2361.
[12] J. Hattne, D. Fange, and J. Elf, Stochastic reaction-diffusion simulation with MesoRD, Bioinformatics 21 (2005), no. 12, 2923–
2924.
[13] M. Holmes, Introduction to Perturbation Methods, Springer-Verlag, New York, 1995.
[14] S. Isaacson and C. Peskin, Incorporating diffusion in complex geometries into stochastic chemical kinetics simulations, SIAM
Journal on Scientific Computing 28 (2006), no. 1, 47–74.
[15] M. Kac, A stochastic model related to the telegrapher’s equation, Rocky Mountain Journal of Mathematics 4 (1974), no. 3,
497–509.
[16] J. Murray, Mathematical Biology, Springer Verlag, 2002.
[17] K. Naqvi, K. Mork, and S. Waldenstrom, Reduction of the Fokker-Planck equation with an adsorbing or reflecting boundary to the
diffusion equation and the radiation boundary condition, Physical Review Letters 49 (1982), no. 5, 304–307.
[18] L. Qiao, R. Erban, C. Kelley, and I. Kevrekidis, Spatially distributed stochastic systems: Equation-free and equation-assisted
preconditioned computation, Journal of Chemical Physics 125 (2006), 204108.
[19] G. Reeves, R. Kalifa, D. Klein, M. Lemmon, and S. Shvartsmann, Computational analysis of EGFR inhibition by Argos,
Developmental biology 284 (2005), 523–535.
[20] H. Risken, The Fokker-Planck Equation, methods of solution and applications, Springer-Verlag, 1989.
[21] J. Schnakenberg, Simple chemical reaction systems with limit cycle behaviour, Journal of Theoretical Biology 81 (1979), 389–
400.
[22] O. Shimmi, D. Umulis, H. Othmer, and M. Connor, Faciliated transport of a Dpp/Scw heterodimer by Sog/Tsg leads to robust
patterning of the Drosophila blastoderm embryo, Cell 120 (2005), no. 6, 873–886.
[23] A. Singer, Z. Schuss, and D. Holcman, Partially reflected diffusion, 16 pages, preprint available as arxiv.org/math-ph/0606043,
2006.
[24] A. Stundzia and C. Lumsden, Stochastic simulation of coupled reaction-diffusion processes, Journal of Computational Physics
127 (1996), 196–207.
[25] E. Zauderer, Partial Differential Equations of Applied Mathematics, John Wiley & Sons, 1983.

18

You might also like