fundamentals+of+cellular+automata+theory+ and...

34
Fundamentals of Cellular Automata Theory and Applica7ons to Hydrological Modeling M. Verdecchia – ICTP Trieste May, 8 2013

Upload: others

Post on 17-Mar-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  and  

Applica7ons  to  Hydrological  Modeling      

M.  Verdecchia  –  ICTP  Trieste  May,  8  2013  

Page 2: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Two  observa7ons:  • Nature  DOES  NOT  use  complex  algorithms  to  produce  complex  behavior  • Many  biological  systems  made  with  many  singular  parts  seem  to  have  a  collec>ve  behavior  

Fundamentals  of  Cellular  Automata  Theory  

Page 3: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

The  crucial  experiment:  What  happen  if  we  create  a  program  without  any  specific  task  in  mind?  

 

Page 4: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

Defini7on  of  simple  Cellular  Automata  System  

Page 5: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

A  first  experiment  with  rule  254  

Page 6: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

Rule  250  

Page 7: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

Rule  90  

Page 8: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

Rule  90  

Page 9: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

A  first  conclusion:    star7ng  from  a  very  simple  configura7on,  the  different  rules  produce  regular  o  

periodic  paSerns    

False!  

Page 10: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

Rule  30  

Page 11: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

Rule  30  

Page 12: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

Rule  110  

Page 13: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

A  first  conclusion:    star7ng  from  a  very  simple  configura7on  and  simple  rules  also  complex  behavior  

emerges  

Page 14: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

A  first  conclusion:    star7ng  from  a  very  simple  configura7on  and  simple  rules  also  complex  behavior  

emerges  

Page 15: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

A  very  ambi7ous  ques7on:    when  we  solve  a  differen7al  equa7on  in  a  numerical  model  ,  we  “simply”  discre7ze  

an  equa7on    wriSen  for  a  con7nuous  system  

cqxQ

tA

=∂

∂+

Can  this  approach  be  considered  the  best  one?  Or  we  may  inves7gate  to  find  the  “Best  Rule”  giving  the  

discharge  in  a  cell  of  the  model  from  the  “status”  of  the  closed  cells?  

The  ques7on  is  indeed  very  good…  the  answer  not  yet…  

Page 16: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Fundamentals  of  Cellular  Automata  Theory  

Introduc7on  to  Cellular  Automata  Theory  End  of  Part  1  

Page 17: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Part  2.  Applica7ons  of  CA  theory  Formal definition of 2D Cellular Automata

ü  A  cellular  automaton  is  a  discrete  dynamical  system  

ü  Space,  Time  and  States  of  the  System  automaton  are  discrete  quan77es  

ü  Each  point  in  a  regular  la^ce,  called  cell,  can  have  anyone  of  a  finite  number  of  states  

ü  The  state  of  the  cells  in  the  la^ce  are  updated  according  to  a  local  rule    

ü  All  the  cells  are  updated  synchronously  

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

Page 18: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

18  

The game of life

Life rules by Chris G. Langton

Ø The status of each CA can be ON or OFF

Ø If more than 3 CA in the neighborhood are ON CA became OFF

Ø If less than 2 CA in the neighborhood are ON, CA became OFF

Ø Otherwise CA became ON

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

Page 19: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

What happen when you run CHyM script?

Page 20: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

What happen when you run CHyM script?

Page 21: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

A  first  set  of  drainage  network  

Page 22: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

DEM  singulari7es  

Page 23: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

ü  CHyM  grid  is  considered  an  aggregate  of    cellular  automata  

ü  The  status  of  a  cell  corresponds  to  the  value  of  a  CHyM  matrix  (DEM)  

ü  The  state  of  the  cells  in  the  laKce  is  updated  according  to  following  rule  

ü  All  cells  on  the  laKce  are  updated  synchronously  

ü     Update  ends  when  flow  scheme  is  OK  

⎟⎟⎠

⎞⎜⎜⎝

⎛−+→ ∑

8

)(j

ijjii hhhh βα

CA  concepts  to  correct  DEM  singulari7es  

Page 24: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

CA  concepts  to  correct  DEM  singulari7es  

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

Page 25: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

CA  concepts  to  correct  DEM  singulari7es  

Page 26: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Recipe  for  DEM  pits  and  flat  areas  correc7on  q Smooth  DEM  using  CA  rules  un7l  FD  can  be  obtained  for  all  the  cells  

q Generate  streamflow  network  using  smoothed  DEM  

q Use  “true”  DEM  and  modify  ONLY  the  cells  draining  toward  an  higher  cell  

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

Page 27: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

CA  concepts  to  correct  DEM  singulari7es  

Page 28: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

CA  concepts  to  merge  different  precipita7on  data  

Page 29: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

CA  concepts  to  merge  different  precipita7on  data  

Page 30: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

CA  concepts  to  merge  different  precipita7on  data  

ü  CHyM grid is considered an aggregate of cellular automata

ü  The status of a cell corresponds to the value of precipitation ü  The state of the cells in the lattice is updated according

to following rule

ü  All cells on the lattice are updated synchronously

⎟⎟⎠

⎞⎜⎜⎝

⎛−+→ ∑

8

)(j

ijjii hhhh βα

But cells corresponding to rain gauges or defined in a previous Module are not updated

ü  Update ends when a stable state is reached

Page 31: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

CA  concepts  to  merge  different  precipita7on  data  

Page 32: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

CA  concepts  to  merge  different  precipita7on  data  

Page 33: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

CA  concepts  to  merge  different  precipita7on  data  

Page 34: Fundamentals+of+Cellular+Automata+Theory+ and …indico.ictp.it/event/a12179/session/20/contribution/12/... · 2014-05-05 · Applica7ons+of+Cellular+Automata+Theory+in+CHyMmodel+

Applica7ons  of  Cellular  Automata  Theory  in  CHyM  model  

CA  concepts  to  merge  temperature  data  

Temperature field from MM5 Temperature field after CA algorithm