15.08.2015 Views

Introduction to the Modeling and Analysis of Complex Systems

introduction-to-the-modeling-and-analysis-of-complex-systems-sayama-pdf

introduction-to-the-modeling-and-analysis-of-complex-systems-sayama-pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

13.4. MODELING SPATIAL MOVEMENT 241Exercise 13.9 Plot <strong>the</strong> Laplacian <strong>of</strong> f(x, y) = sin(xy) for −4 ≤ x, y ≤ 4 usingPython. Compare <strong>the</strong> result with <strong>the</strong> outputs <strong>of</strong> <strong>the</strong> exercises above.13.4 <strong>Modeling</strong> Spatial MovementNow we will discuss how <strong>to</strong> write a PDE-based ma<strong>the</strong>matical model for a dynamical processthat involves spatial movement <strong>of</strong> some stuff. There are many approaches <strong>to</strong> writingPDEs, but here in this textbook, we will use only one “template,” called <strong>the</strong> transportequation. Here is <strong>the</strong> equation:∂c∂t= −∇ · J + s (13.14)Here, c is <strong>the</strong> system’s state defined as a spatio-temporal function that represents <strong>the</strong>concentration <strong>of</strong> <strong>the</strong> stuff moving in <strong>the</strong> space. J is a vec<strong>to</strong>r field called <strong>the</strong> flux <strong>of</strong> c.The magnitude <strong>of</strong> <strong>the</strong> vec<strong>to</strong>r J at a particular location represents <strong>the</strong> number <strong>of</strong> particlesmoving through a cross-section <strong>of</strong> <strong>the</strong> space per area per unit <strong>of</strong> time at that location.Note that this is exactly <strong>the</strong> same as <strong>the</strong> vec<strong>to</strong>r field v we discussed when we tried <strong>to</strong>underst<strong>and</strong> <strong>the</strong> meaning <strong>of</strong> divergence. Therefore, <strong>the</strong> first term <strong>of</strong> Eq. (13.14) is comingdirectly from Eq. (13.12). The second term, s, is <strong>of</strong>ten called a source/sink term, whichis a scalar field that represents any increase or decrease <strong>of</strong> c taking place locally. Thisis <strong>of</strong>ten <strong>the</strong> result <strong>of</strong> influx or outflux <strong>of</strong> particles from/<strong>to</strong> <strong>the</strong> outside <strong>of</strong> <strong>the</strong> system. If<strong>the</strong> system is closed <strong>and</strong> <strong>the</strong> <strong>to</strong>tal amount <strong>of</strong> <strong>the</strong> stuff is conserved, you don’t need <strong>the</strong>source/sink term, <strong>and</strong> <strong>the</strong> transport equation becomes identical <strong>to</strong> Eq. (13.12).There is ano<strong>the</strong>r way <strong>of</strong> writing a transport equation. While Eq. (13.14) explicitly describes<strong>the</strong> amount <strong>of</strong> particles’ movement per area per unit <strong>of</strong> time in <strong>the</strong> form <strong>of</strong> fluxJ, ano<strong>the</strong>r convenient way <strong>of</strong> describing <strong>the</strong> movement is <strong>to</strong> specify <strong>the</strong> velocity <strong>of</strong> <strong>the</strong>particles, <strong>and</strong> <strong>the</strong>n assume that all <strong>the</strong> particles move at that velocity. Specifically:∂c∂t= −∇ · (cw) + s (13.15)Here, w is <strong>the</strong> vec<strong>to</strong>r field that represents <strong>the</strong> velocity <strong>of</strong> particles at each location. Sinceall <strong>the</strong> particles are moving at this velocity, <strong>the</strong> flux is given by J = cw. Which formulationyou should use, Eq. (13.14) or Eq. (13.15), depends on <strong>the</strong> nature <strong>of</strong> <strong>the</strong> system you aregoing <strong>to</strong> model.As you can see above, <strong>the</strong> transport equation is very simple. But it is quite usefulas a starting point when you want <strong>to</strong> describe various kinds <strong>of</strong> spatial phenomena. One

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!