Cellular Automata/Excitable media

From testwiki
Jump to navigation Jump to search

An introduction to excitable media

Excitable media are nonlinear dynamic systems known for exhibiting complex behavior that can be observed as pattern formation. They are usually defined by a reaction-diffusion differential equation.

ut(𝐫,t)=D2u(𝐫,t)+f(u(𝐫,t))

The diffusion part provides stability and propagation of information, the reactive part provides interesting local dynamics.

A common example of excitable media are prey-predator systems. Such systems are described by a system of differential equations, one function for each of the observed protagonists.

ut(𝐫,t)=Du2u(𝐫,t)+f(u,v)
vt(𝐫,t)=Dv2v(𝐫,t)+g(u,v)

We will discuss two different approaches to modeling excitable media. Discretization of differential equations and modeling with cellular automata.

Boundary conditions

There are different ways to define boundary conditions for the reaction-diffusion equation.

Dirichlet boundary conditions

The value of the function at the boundary is given explicitly u(𝐫𝟎,t).

Cyclic boundaries

If the initial condition u(x,0) is supposed to be periodic in space, cyclic boundary conditions can be used.

Zero-flux boundary conditions

If zero-flux is expected at the boundary than the component of the functions first derivative normal to the boundary is zero nu=0 at the boundary. This can be achieved by reflecting function values from the inside over the boundary to the outside.

Discretization of differential equations using the explicit FTCS method

The traditional method to simulate excitable media is discretization and numerical computation of the governing PDE. First the FTCS (forward-time centered-space method) discretization method is presented. Explicit methods are the simplest and the equations are similar to a cellular automaton, but are inadequate because of stability and convergence problems.

Single PDE

We will first observe a single PDE describing a single function.

ut(𝐫,t)=D2u(𝐫,t)+f(u(𝐫,t))

One-dimensional problem

In the one dimensional case the space vector becomes a single variable 𝐫=x. The nabla operator becomes 2=2x2.

u(x,t)t=D2u(x,t)x2+f(u(x,t))

The partial differential equation is discretized.

u(x,t+Δt)u(x,t)Δt=
Du(x+Δx,t)2u(x,t)+u(xΔx,t)Δx2
+f(u(x,t))
Forward-time centered-space method

Each finite element at time t+Δt is calculated from three neighboring elements at time t (see figure at the right).

u(x,t+Δt)=u(x,t)+
+d(u(x+Δx,t)2u(x,t)+u(xΔx,t))
+Δtf(u(x,t))

where the diffusion number is

d=DΔtΔx2
Stability

The FTCS method is stable if

d1/2
Boundary conditions

For periodic boundaries present values at the left boundary x=0 can be used to compute the future values at the right boundary x=Lx and the other way round.

u(0,t+Δt)=u(0,t)+d(u(0+Δx,t)2u(0,t)+u(Lx,t))+Δtf(u(0,t))
u(Lx,t+Δt)=u(Lx,t)+d(u(0,t)2u(Lx,t)+u(LxΔx,t))+Δtf(u(Lx,t))

If there is zero-flux u(0,t)=0 at the boundaries than values outside the boundary are reflections of values inside u(0+Δx,t)=u(0Δx,t).

u(0,t+Δt)=u(0,t)+2d(u(0+Δx,t)u(0,t))+Δtf(u(0,t))
u(Lx,t+Δt)=u(Lx,t)+2d(u(Lx,t)+u(LxΔx,t))+Δtf(u(Lx,t))

Two-dimensional problem

In the two-dimensional case, the space vector becomes a variable pair 𝐫=[x,y]. The nabla operator becomes 2=2x2+2y2.

u(x,y,t)t=D(2u(x,y,t)x2+2u(x,y,t)y2)+f(u(x,y,t))

The partial differential equation is discretized using the forward-time centered-space method.

u(x,y,t+Δt)u(x,y,t)Δt=
=Du(x+Δx,y,t)2u(x,y,t)+u(xΔx,y,t)Δx2+
+Du(x,y+Δy,t)2u(x,y,t)+u(x,yΔy,t)Δy2+
+f(u(x,y,t))
Forward-time centered-space method

Each finite element at time t+Δt is calculated from five neighboring elements at time t (see figure at the right).

u(x,y,t+Δt)=u(x,t)+
+dx(u(x+Δx,y,t)2u(x,y,t)+u(xΔx,y,t))+
+dy(u(x,y+Δy,t)2u(x,y,t)+u(x,yΔy,t))+
+Δtf(u(x,y,t))

where the diffusion numbers are

dx=DΔtΔx2dy=DΔtΔy2
Stability

The FTCS method is stable if

dx1/2 and dy1/2
Boundary conditions

The same ideas as in the one dimensional case can be used for two dimensions.

System of PDE

A system of PDE describes two functions that interact with each other (prey-predator).

ut(𝐫,t)=Du2u(𝐫,t)+f(u,v)
vt(𝐫,t)=Dv2v(𝐫,t)+g(u,v)

The interaction is local, which means, the dispersion part can be computed separately for each equation, and than the reaction part is added to the result.

Other PDE discretization methods

Modeling with cellular automata

Greenberg-Hastings Model

Conclusions

References

  1. Joe D. Hoffman, Numerical Methods for Engineers and Scientists
  2. Toffoli T., Margolus N., Cellular Automata Machines: A New Environment for Modeling, The MIT Press (1987), Cambridge, Massachusetts
  3. Toffoli T., Cellular automata as an alternative to Differential equations, in Modeling Physics, Physica 10D, (1984)
  4. http://www.jweimar.de/paper-abstracts.html
  5. Robert Fisch, Janko Gravner, David Griffeath, Threshold-Range Scaling of Excitable Cellular Automata
  6. Robert Fisch, Janko Gravner, David Griffeath, Metastability in the Greenberg-Hastings Model
  7. Marcus R. Garvie Finite difference schemes for reaction-diffusion equations modeling predator-prey interactions in MATLAB

Template:BookCat