Spectral Methods for Reaction Diffusion Systems

Similar documents
Oscillatory Turing Patterns in a Simple Reaction-Diffusion System

Exponential integrators and functions of the matrix exponential

Fundamentals of Bio-architecture SUMMARY

MA3232 Summary 5. d y1 dy1. MATLAB has a number of built-in functions for solving stiff systems of ODEs. There are ode15s, ode23s, ode23t, ode23tb.

TURING AND HOPF PATTERNS FORMATION IN A PREDATOR-PREY MODEL WITH LESLIE-GOWER-TYPE FUNCTIONAL RESPONSE

Spectral Methods and Inverse Problems

In-Structure Response Spectra Development Using Complex Frequency Analysis Method

NUMERICAL ASPECTS OF A BACTERIA GROWTH MODEL

Chapter 5. Formulation of FEM for Unsteady Problems

High Order Accurate Runge Kutta Nodal Discontinuous Galerkin Method for Numerical Solution of Linear Convection Equation

Modified Fourier Spectral Method for Non-periodic CFD

Finite difference methods for the diffusion equation

Computational Modeling for Physical Sciences

Dedalus: An Open-Source Spectral Magnetohydrodynamics Code

MASSACHUSETTS INSTITUTE OF TECHNOLOGY DEPARTMENT OF MECHANICAL ENGINEERING CAMBRIDGE, MASSACHUSETTS NUMERICAL FLUID MECHANICS FALL 2011

Numerical Oscillations and how to avoid them

Exponential integrators for semilinear parabolic problems

The family of Runge Kutta methods with two intermediate evaluations is defined by

CHEM 515: Chemical Kinetics and Dynamics

Spontaneous pattern formation in Turing systems

Appendix C: Recapitulation of Numerical schemes

Lab 5: Nonlinear Systems

Systems of Ordinary Differential Equations

Exponential time differencing methods for nonlinear PDEs

Delay Differential Equations with Constant Lags

Numerical Solutions to Partial Differential Equations

Diffusion, Reaction, and Biological pattern formation

Pattern formation and Turing instability

Solving Poisson s Equations Using Buffered Fourier Spectral Method

Mathematical Biology - Lecture 1 - general formulation

1 Finite difference example: 1D implicit heat equation

A Fifth Order Flux Implicit WENO Method

A Robust Preconditioned Iterative Method for the Navier-Stokes Equations with High Reynolds Numbers

A fast and well-conditioned spectral method: The US method

Remark on the Sensitivity of Simulated Solutions of the Nonlinear Dynamical System to the Used Numerical Method

A numerical study of SSP time integration methods for hyperbolic conservation laws

Butcher tableau Can summarize an s + 1 stage Runge Kutta method using a triangular grid of coefficients

The Fourier spectral method (Amath Bretherton)

Chapter 2 Algorithms for Periodic Functions

On the Non-linear Stability of Flux Reconstruction Schemes

Numerical Solutions to Partial Differential Equations

CIV-E1060 Engineering Computation and Simulation Examination, December 12, 2017 / Niiranen

Chapter 6. Finite Element Method. Literature: (tiny selection from an enormous number of publications)

A Central Compact-Reconstruction WENO Method for Hyperbolic Conservation Laws

Spectral Collocation Method for Parabolic Partial Differential Equations with Neumann Boundary Conditions

Spectral method for the unsteady incompressible Navier Stokes equations in gauge formulation

Lesson 9: Predator-Prey and ode45

Finite Difference and Finite Element Methods

13 PDEs on spatially bounded domains: initial boundary value problems (IBVPs)

MATH 333: Partial Differential Equations

Computational Methods in Plasma Physics

8 A pseudo-spectral solution to the Stokes Problem

Superposition of modes in a caricature of a model for morphogenesis. Department of Mathematics, University of Utah, Salt Lake City, UT 84112, USA

SPIRAL WAVE GENERATION IN A DIFFUSIVE PREDATOR-PREY MODEL WITH TWO TIME DELAYS

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

FDM for parabolic equations

Heat Equation and its applications in imaging processing and mathematical biology

Instabilities In A Reaction Diffusion Model: Spatially Homogeneous And Distributed Systems

Graded Project #1. Part 1. Explicit Runge Kutta methods. Goals Differential Equations FMN130 Gustaf Söderlind and Carmen Arévalo

Dynamical Systems and Chaos Part II: Biology Applications. Lecture 6: Population dynamics. Ilya Potapov Mathematics Department, TUT Room TD325

Discretization of Convection Diffusion type equation

Research Article Studies on the Existence of Unstable Oscillatory Patterns Bifurcating from Hopf Bifurcations in a Turing Model

Mathematics Qualifying Exam Study Material

Simulation of cell-like self-replication phenomenon in a two-dimensional hybrid cellular automata model

Problem Set 4 Issued: Wednesday, March 18, 2015 Due: Wednesday, April 8, 2015

arxiv: v2 [math.na] 1 Sep 2018

2D-Volterra-Lotka Modeling For 2 Species

Numerical Analysis and Methods for PDE I

On Multigrid for Phase Field

SECOND ORDER TIME DISCONTINUOUS GALERKIN METHOD FOR NONLINEAR CONVECTION-DIFFUSION PROBLEMS

Fourier analysis for discontinuous Galerkin and related methods. Abstract

Navier-Stokes equations

Introduction LECTURE 1

Four Point Gauss Quadrature Runge Kuta Method Of Order 8 For Ordinary Differential Equations

Modelling in photonic crystal structures

Pattern formation in three species food web model in spatiotemporal domain with Beddington DeAngelis functional response

Partial differential equations

Marching on the BL equations

Local discontinuous Galerkin methods for elliptic problems

HIGH ACCURACY NUMERICAL METHODS FOR THE SOLUTION OF NON-LINEAR BOUNDARY VALUE PROBLEMS

Introduction. Dagmar Iber Jörg Stelling. CSB Deterministic, SS 2015, 1.

AM 205 Final Project The N-Body Problem

The discrete and fast Fourier transforms

Numerical methods for the Navier- Stokes equations

Why This Class? James K. Peterson. August 22, Department of Biological Sciences and Department of Mathematical Sciences Clemson University

Lecture 1. Scott Pauls 1 3/28/07. Dartmouth College. Math 23, Spring Scott Pauls. Administrivia. Today s material.

Krylov single-step implicit integration factor WENO methods for advection-diffusion-reaction equations

256 Summary. D n f(x j ) = f j+n f j n 2n x. j n=1. α m n = 2( 1) n (m!) 2 (m n)!(m + n)!. PPW = 2π k x 2 N + 1. i=0?d i,j. N/2} N + 1-dim.

Algebraic flux correction and its application to convection-dominated flow. Matthias Möller

Research Article Solution of the Porous Media Equation by a Compact Finite Difference Method

Implicit-explicit exponential integrators

Borel Summability in PDE initial value problems

Opleiding Wiskunde & Informatica

1 Introduction to MATLAB

Dynamics Analysis of Anti-predator Model on Intermediate Predator With Ratio Dependent Functional Responses

Modeling II Linear Stability Analysis and Wave Equa9ons

Dispersion relations, linearization and linearized dynamics in PDE models

Steps in the Finite Element Method. Chung Hua University Department of Mechanical Engineering Dr. Ching I Chen

FINITE VOLUME METHODS FOR ONE-DIMENSIONAL SCALAR CONSERVATION LAWS

Quarter-Sweep Gauss-Seidel Method for Solving First Order Linear Fredholm Integro-differential Equations

Transcription:

WDS'13 Proceedings of Contributed Papers, Part I, 97 101, 2013. ISBN 978-80-7378-250-4 MATFYZPRESS Spectral Methods for Reaction Diffusion Systems V. Rybář Institute of Mathematics of the Academy of Sciences of the Czech Republic. Abstract. Although spectral methods proved to be numerical methods that can significantly speed up the computation of solutions of systems of reaction diffusion equations, finite difference and finite element methods still prevail as the most widespread methods. This contribution offers comparison of the performance of the Fourier spectral method with finite element method for reaction diffusion system modeling the generation of pigment patterns on the coat of the leopard. Introduction Over the last few decades, systems of reaction diffusion equations have been used in effort to explain and model various phenomena in the field of biology and chemistry. Two species spatial ecological models (e.g. predator prey models), chemical reaction models and tumor growth can be mentioned as examples. Furthermore, after 1952 when Turing published his now famous and widely cited paper [Turing, 1952], it has been put a lot of endeavor into explaining the generation of patters in mammals, fish, gasteropod and many more. Classical book [Murray, 2003] offers description and analysis of many models based on reaction diffusion systems. General reaction diffusion system is a system of parabolic partial differential equations and it can be expressed in the following form: t =D 1 u+n u (u,v) in (0, ) Ω, v t =D 2 v +N v (u,v) in (0, ) Ω, where u = u(t,x), v = v(t,x), Ω R 2 is a domain, D 1,D 2 are diffusion coefficients and N u (u,v), N v (u,v) are nonlinear reaction terms. Such system is often coupled with zero flux boundary condition, n = v = 0 on Ω, n where n stands for the unit outward normal vector to the boundary Ω, as it has in many cases good biological or chemical meaning and random noise as initial condition. In already mentioned paper [Turing, 1952] it was pointed out that if u and v tend to a linearly stable uniform steady state in case D 1 = D 2 = 0, then this state can, under certain conditions, becomeunstableford 1 0,D 2 0, andspatial inhomogeneouspatternscanevolve. So called diffusion driven instability can emerge. Since diffusion term is generally considered to have stabilizing rather then destabilizing effect, Turing s idea may be considered surprising. Model for generating pigment patterns of leopard and jaguar Liu, Liaw and Maini present in Liu et al. [2006] a simple reaction diffusion model based on Barrio et al. [1999]: t = Dδ u+αu+v r 2uv αr 3 uv 2, (1) v t = δ v αu+βv +r 2uv +αr 3 uv 2. (2) 97

It represents interaction between two morphogens u and v on the square with zero flux boundary condition. With all the coefficients properly set for the particular development stage, this system of equations can model generation of pigment patterns on the coat of leopards and jaguars. Figure 1 shows compiled results presented in Liu et al. [2006] in the case of the leopard. It should be noted that this kind of models is not fully accepted among biologists. There is not clear proof that these patterns emerge as a result of reaction diffusion process of Turing type, i.e. whether at all they exist and if so, what the morphogens u and v are. Moreover, the diffusion coefficient D in (1) needs to be smaller than one to allow the diffusion driven instability to occur. This raises an objection why two chemicals of presumably similar kind should have different physical properties (i.e. the rate of diffusion). Figure 1. Model and photographs of a coat at various stages of development of a leopard. Spectral methods As a suitable first step in our survey of spectral methods we chose the Fourier spectral method for the spatial discretization. This method is considered as one of the fastest [see Fu et al., 2012] among spectral methods and still easy to implement. To be able to use this method to solve system (1) (2) we need to replace the zero-flux boundary condition by the periodic one. This replacement is admissible in our experiments, because the steady state solution of the system with zero flux boundary condition is for our purposes qualitatively the same as the system with periodic boundary condition. Both boundary problems in our particular set-up result in the same kind of pattern (spots) that Liu et al. [2006] consider as a model of early stage of pattern development of a leopard. To incorporate zero flux boundary condition, Fourier basis functions need to be replaced by the Chebyshev ones. That is expected to slow down the computations. This problem is addressed in several papers [e.g., Fu et al., 2012], where the authors offer a way how to preserve most of the advantages of the Fourier spectral method while solving system with Neumann boundary condition. 98

To introduce the Fourier spectral method, we will follow Trefethen [2000]. Let us consider a function v sampled on the spatial discretization grid {x 1,...,x N } with v j = v(x j ). Let v be periodic, i.e. v 1 = v N. The discrete Fourier transform (DFT),ˆv k = ˆv(k), is defined by ˆv k = N e ikx j v j, k = N 2 +1,..., N 2, (3) j=1 where i is the complex unit. The inverse discrete Fourier transform (IDFT) is given by v j = 1 2π N/2 k= N/2+1 e ikxjˆv k, j = 1,...,N. (4) Using these definitions, we can compute the derivative w j = dv dx (x j), j = 1,...,N at the nodes of the discretization grid by the following procedure: 1. given v j, j = 1,...,N compute its DFT ˆv k, k = N/2+1,...,N/2 using (3), 2. define ŵ k = ik ˆv k, k = N/2+1,...,N/2, 3. compute w j, j = 1,...,N from ŵ k, k = N/2+1,...,N/2 by (4). Applying this procedure two times yields second derivatives. Thus the diffusion term in t = u D 2 +N(u) (5) x2 can be transformed into Dk 2 û k and partial differential equation (5) transforms to a system of ordinary differential equations (ODE) dû k dt = Dk2 û k + N(u), k = N/2+1,...,N/2 (6) where u = (u 1,...,u N ) is computed by (4) from û k, k = N/2+1,...,N/2. Furthermore, by this transformation system (6) becomes non-stiff. Thus, fast explicit ODE solver can be used. That is a significant advantage compared to the stiff system (5) where one can not usually avoid implicit solver. Kassam [2003] suggests that Cox and Mathew s fourth order exponential time differencing Runge-Kutta method (ETDRK4) might by particularly suitable for such problems. Since the nonlinear term N(u) is evaluated in the space domain and then transformed into the Fourier one, steps to deal with aliasing need to be taken [see Trefethen, 2000]. The procedure of computation of the derivatives by DFT can be extended to two dimensions by taking advantage of the fact that the two dimensional DFT is separable into sequence of one dimensional transforms. Details can be found in Kopriva [2000]. Numerical experiments Fine-tuning of parameters in systems similar to (1) (2) is needed to get desired patterns. Consequently,a large number of numerical experiments is required. Kassam [2003] shows that Fourier spectral method coupled with ETDRK4 solver can be significantly faster than finite differences with implicit ODE solver. We used model (1) (2) from Liu et al. [2006] forming spots in the first stage of the pattern development on the coat of leopard as our test case for comparing the performance of finite element and Fourier spectral method. In the first stage, the coefficient in (1) (2) were set as follows: D = 0.45, δ = 6, α = 0.899, β = 0.91, r 2 = 2, and r 3 = 3.5. 99

The finite element code we used was a Matlab implementation of P1-conforming finite element on a triangular grid. The built-in Matlab variable time-stepping ODE solver ode15s was used for the integration and the code is written in order to exploit fast vector manipulations in Matlab to assembly mass and stiffness matrices. As demonstrated in Figure 2, the steady-state solution strongly depends on the initial condition, therefore we do not require accurate solutions and we are interested mainly in the speed of calculations. This approach is motivated by the nature of biological systems where minor disruptions and oscillations are omnipresent, e.g. no two jaguar coats are alike. The following experiments were performed in domain Ω = (0,100) 2 and the computation was terminated at T final = 1000 as the system was close to its steady state at this point. Random noise in ( 0.05, 0.05) served as an initial condition. The computational times for the finite element and spectral methods and for various numbers of degrees of freedom are presented in Table 1. To assess the resolution of the finite element and Fourier spectral method we present Figure 3 that corresponds to 6.6 10 3 degrees of freedom. Conclusion The above results proved that the Fourier spectral method is significantly faster compared to finite element method in solving system (1) (2). For the sake of simplicity we present results only for the first phase of the coat development which is depicted in the left part of Figure 1. The alternation in coefficients for the following phases does not bring any other qualitative (a) Initial condition 1 (b) Initial condition 2 (c) Solution 1 (d) Solution 2 Figure 2. Dependency of the steady-state solution on the initial condition. Table 1. The computational times for the finite element and spectral method. # DOF Finite element Spectral method 1.6 10 3 45 s 15 s 6.6 10 3 295 s 70 s 2.6 10 5 1421 s 195 s 100

(a) FEM (b) Spectral Method Figure 3. Comparison of finite element solution of reaction diffusion system (1) (2) with zero flux b.c. and Fourier spectral method solution with periodic b.c. difference to the system (1) (2) than different shape of the resulting pattern [Liu et al., 2006]. Thus we believe that the Fourier spectral method will still remain substantially faster than the finite element method for other phases as well. The spectral code relies on FFTW, the state of the art package providing Fast Fourier Transform to compute DFT and IDFT [see Frigo, 1999, for reference]. That allows us to have the the most computationally expensive operations implemented effectively. Using advanced techniques addressing the bottlenecks of the finite element implementations, e.g. assembly of mass and stiffness matrices as presented by Rahman et al. [2013], would likely improve the results of finite element code. Although the Fourier spectral method is easier to implement, it lacks the universality of finite element methods. Especially the periodic boundary condition may be too limiting for some systems. Other members of the spectral method family, although less easy to implement and more time consuming, can deal with these limitations [e.g., Fu et al., 2012], and seems to have a potential in solving reaction diffusion systems of mathematical biology. References R. A. Barrio, C. Varea, J. L. Aragon, and P. K. Maini, A two-dimensional numerical study of spatial pattern formation in interacting Turing systems, Bull. Math. Biol. 61, 483, 1999. M. Frigo, A Fast Fourier Transform Compiler, the Proceedings of the 1999 ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI 99), 1999. H. Fu, and C. Liu, A buffered Fourier spectral method for non periodic ODE, International Journal of Numerical Analysis and Modelling, 9(2), 460, 2012. A. K. Kassam, Solving reaction diffusion equations 10 times faster, Oxford University,Numerical Analysis Group Research Report No. 16, 2003. D. A. Kopriva, Implementing Spectral Methods for Partial Differential Equations, Springer, 2009. Liu, R. T., S. S. Liaw, and P. K. Maini, Two-stage Turing model for generating pigment patterns on the leopard and the jaguar, Physical Review E 74(1), 011914, 2006. J.D. Murray, Mathematical Biology II: Spatial Models and Biomedical Applications, Springer-Verlag, 2003. T. Rahman and J. Valdman, Fast MATLAB assembly of FEM matrices in 2D and 3D: nodal elements, Applied Mathematics and Computation 219, 7151-7158, 2013. L. N. Trefethen, Spectral methods in MATLAB, Society for Industrial and Applied Mathematics, 2000. A. M. Turing, The chemical basis of morphogenesis, Phil. Trans. R. Soc. Lond., B237, 37, 1952. 101