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.5. SIMULATION OF CONTINUOUS FIELD MODELS 2550002020204040406060608080800 20 40 60 800 20 40 60 800 20 40 60 80Figure 13.14: Visual output <strong>of</strong> Code 13.6. Time flows from left <strong>to</strong> right.result shown in Fig. 13.15. This may look cool, but it is actually an invalid result. Youcan tell it is invalid if you underst<strong>and</strong> <strong>the</strong> nature <strong>of</strong> <strong>the</strong> transport equation; it should onlytransport <strong>the</strong> surface <strong>and</strong> not change its shape. But even if you are unsure if <strong>the</strong> resultyou obtained is valid or not, you can try increasing <strong>the</strong> temporal/spatial resolutions (i.e.,making ∆t <strong>and</strong> ∆h smaller) <strong>to</strong> see if <strong>the</strong> result varies. If <strong>the</strong> result remains unaffected bythis, <strong>the</strong>n you know that <strong>the</strong> original spatial/temporal resolutions were already sufficient<strong>and</strong> that <strong>the</strong> original result was thus valid. But if not, <strong>the</strong> original result probably containednumerical errors, so you need <strong>to</strong> keep increasing <strong>the</strong> resolutions until <strong>the</strong> result becomesconsistent.1.01.01.00.80.80.80.60.60.60.40.40.40.20.20.20.00.20.40.60.80.01.00.80.60.40.21.0 0.00.00.20.40.60.80.01.00.80.60.40.21.0 0.00.00.20.40.60.80.01.00.80.60.40.21.0 0.0Figure 13.15: Accumulation <strong>of</strong> numerical errors caused by increasing ∆t (Dt) <strong>to</strong> 0.1 inCode 13.5. Time flows from left <strong>to</strong> right.Before moving on <strong>to</strong> <strong>the</strong> next <strong>to</strong>pic, I would like <strong>to</strong> point out that <strong>the</strong> discretization/simulationmethods discussed above can be extended <strong>to</strong> PDEs that involve multiple statevariables. Here is such an example: interactions between two spatially distributed popu-

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

Saved successfully!

Ooh no, something went wrong!