Barkley model
From Scholarpedia
| Dwight Barkley (2008), Scholarpedia, 3(11):1877. | revision #50834 [link to/cite this article] | |||||||||||||||||||
Revision as of 15:39, 31 October 2008; view current revision
←Older revision | Newer revision→
Curator: Dr. Dwight Barkley, Mathematics, University of Warwick, UK
The Barkley model is a system of reaction-diffusion equations modeling excitable media and oscillatory media. The model is often used as a qualitative model in pattern forming systems like the Belousov-Zhabotinsky reaction and other systems that are well described by the interaction of an activator and an inhibitor component. It is very similar to the FitzHugh-Nagumo (FHN) model and for many purposes the Barkley model can be considered to be the same as the FHN model. The Barkley model and associated numerical algorithm were originally proposed as a method for performing very fast numerical simulations of spiral waves in two dimensions and scroll waves in three dimensions. Numerical simulations of the model remain fast to this day, but, in addition, the model has gained importance because many studies of waves in excitable media have been based on the Barkley model and its extensions.
In the simplest case the equations for the Barkley model are
where the two reaction terms take the form
A more general form of the model is possible (see
below).
The role of the model parameters
is discussed
in section 1.1.
Figures 1 and 2 show typical waves in two and three
dimensions from simulations of the model.
Contents |
Nullclines
The nullclines for the Barkley model are displayed in figure 3
where one sees the defining feature of the model: the nullclines for the
nonlinear
reaction kinetics are straight lines. The
-nullclines are given by
so that the three
branches are
The middle branch (dashed in figure 3) sets the excitation
threshold. In practice only the N-shaped portion shown in bold in figure
3 is relevant, since for spiral and scroll wave solutions the
system does not pass through the corners where branches of the nullclines
intersect. It should be emphasized that while the nullclines are piecewise
linear, the function
is a cubic polynomial in
and hence is everywhere smooth. The nullclines in figure
3 should be compared with the S-shaped nullclines for the
FitzHugh-Nagumo model.
The
-nullcline is also a straight line, but this is not
essential to the model.
Parameters
The parameter
sets the timescale separation between the
fast
-equation and the slow
-equation, and is thus
taken to be small. Larger
gives longer excitation duration and
increasing
gives a larger excitability threshold.
The spiral waves in figure 1 are for parameter values
,
,
. The
simulation domain is of size
on a side. Colors indicate the
values of the
-field.
The scroll waves in figure 2 are for parameter values
,
,
. The
simulation domain is of size
on a side. Shown are
isosurfaces corresponding to
.
Figure 4 shows the dynamics of a single spiral wave as a function of parameters
and
for fixed
. The spirals may undergo period rotations or various types of
meander.
Why are simulations fast?
Figure 5 illustrates the typical behavior of variables in
the Barkley model as a spiral or scroll wave evolves. Plotted on the right is
the fast variable
sampled along a one-dimensional cut through a
rotating spiral wave. Plotted on the left are values in the
plane along this cut. Points indicate the numerical grid
used in the simulation. Blue signifies that
. Red
highlights values at a fixed grid point.
and the time step is
. Each frame of the animation corresponds to one time step. This simulation is nearly 100 times faster than that in figure 5.From these plots one can see the two factors exploited in simulations of the Barkley model:
- Time-scale separation. The variable u at a given grid point evolves on a fast time scale only when a wave front or wave back passes a grid point. This fast evolution corresponds to moving between the two vertical branches of the
-nullcline. All other dynamics are slow by comparison. The simplicity of the
-nullclines permits efficiently, accurately, and stably within these fast regions.
- Large quiescent regions. There are substantial quiescent regions, shown in blue, in which
. In these regions the right-hand-side of the
equation effectively vanishes and neither diffusion nor the nonlinear reaction kinetics need to be evaluated, thereby reducing the number of computations which need to be performed each time step.
Combining these feature in a single algorithm means that floating-point computations can be minimized and simulations can be run stably at large space and time steps as in figure 6. For large time steps the algorithm effectively reduces to a cellular-automaton type simulation of excitable media in which the fast variable takes on just the values 0 and 1 (Gerhardt, Schuster, and Tyson; 1990).
Algorithm
Semi-implicit time stepping of the reaction kinetics
For the moment ignore diffusion and consider the ordinary differential equations for just the reaction terms in the model:
Letting
and
denote the values of
and
at time step
,
one explicit Euler time step of the reaction kinetics is given by
where
and
is the
time step.
With the explicit-Euler method, the time step is limited by a numerical stability constraint. In order to take larger time steps, a semi-implicit approximation may be used. The simplest form is:
where
at the future time is used in those factors on the
right-hand side that undergo largest relative change over the time
step. Solving for
gives
- (1)
By expanding the denominators in the above expressions it can be seen that
this scheme agrees with the explicit-Euler for small
and has the same order of accuracy. However, unlike the explicit form, the
semi-implicit form is numerically stable for arbitrarily large
and in the limit of large
it goes over to:
i.e. essentially a 2 state cellular-automaton.
Because
evolves on the slow time scale it may be time stepped
by the explicit Euler method.
Efficient treatment of diffusion
The
-field is approximately constant (and zero) over substantial
regions of the computational domain, e.g. figure 5. With the
approximation that
for
, where
is a small numerical parameter, the Laplacian of the
-field is zero in these regions and need not be evaluated. To
avoid unnecessary computation, the Laplacian of
can be
evaluated by scattering values rather than by gathering values as follows.
Consider the five-point finite-difference formula for the Laplacian on a regular square lattice in 2D:
where
labels grid points and
is the grid
spacing.
A scatter evaluation of the sums
at all grid points
is obtained by looping over the grid indices and scattering values of
to neighboring points:
where all
are initially zero.
gives an approximation to the
Laplacian at point
.
What makes a scatter evaluation of the sum desirable is that it can be
combined into an algorithm for the reaction dynamics in such a way that
unnecessary computation is avoided at points which make no contribution to the
Laplacian of the u-field. Specifically, two arrays,
and
, are employed. One
is used to perform the current update while the other is used to collect the
sum of neighboring points for use at the next time step. The following
algorithm advances the solution on a two-dimensional grid forward one time
step, while simultaneously preparing for the next time step:
where
is given by equation (1)
and
, and where
has a
value of 0 or 1, and
has the other value. These values are
swapped at the end of each time step.
This simple algorithm illustrates the essence of the Barkley model without taking into account boundary or initial conditions. More advanced algorithms are available and are recommended (Dowle, Mantel, and Barkley; 1997).
General form of the model
In the most general case the equations for the Barkley model are
where
is the diffusion constant for the slow species, or
equivalently the ratio of diffusion coefficients since the model is written in
space units in which the diffusion coefficient of the fast species is one.
The three functions
,
, and
can be specified as needed. The original and simplest
choice is
,
, and
. Another important case suggested by Bär and Eiswirth
(1993) is the original choice of
and
but with
an
nonlinear function of
. For example with
the model can exhibit spiral breakup as shown in figure
7. (Parameters
,
, and
changed from 0.06 to 0.08.)
Software
Two open source computer programs EZ-Spiral and EZ-Scroll implement the Barkley model in two and three dimensions, repsectively. The programs are written in the C programming language and employ OpenGL graphics. All spiral and scroll wave images appearing in this article were generated using this software. These programs can be found here.
References
- Barkley D. (1991) "A model for fast computer simulation of waves in excitable media". Physica 49D, 61–70.
- Dowle M., Mantel R.M., and Barkley D. (1997) "Fast simulations of waves in three-dimensional excitable media". Int. J. Bif. Chaos 7, 2529--2545.
- Gerhardt M., Schuster H., and Tyson J.J. (1990) "A Cellular Automaton Model of Excitable Media Including Curvature and Dispersion". Science 247, 1563.
- M. Bär and M. Eiswirth (1993) "Turbulence due to spiral breakup in a continuous excitable medium". Phys. Rev. E 48, R1635 -- R1637.
See also
| Dwight Barkley (2008) Barkley model. Scholarpedia, 3(11):1877, (go to the first approved version) Created: 16 August 2006, reviewed: 9 November 2007, accepted: 3 November 2008 |
| Action editor: | Dr. Vadim N. Biktashev, Department of Mathematical Sciences, University of Liverpool |
with the different states illustrated by tip paths.
and the time step is
. Each frame of the animation corresponds to 5 time steps.
