Presentation is loading. Please wait.

Presentation is loading. Please wait.

Emulating Physics Our goal will be to show how basic dynamics known from physics can be formulated using local simple rules of cellular automata: diffusion.

Similar presentations


Presentation on theme: "Emulating Physics Our goal will be to show how basic dynamics known from physics can be formulated using local simple rules of cellular automata: diffusion."— Presentation transcript:

1

2

3 Emulating Physics Our goal will be to show how basic dynamics known from physics can be formulated using local simple rules of cellular automata: diffusion gas crystallization, etc

4 Why emulate physics?Why emulate physics? –Computation models must adapt to microscopic physics –Computation models may help us understand nature Rich dynamics Start with locality: –Cellular Automata

5 Conway’s “Game of Life”

6

7 Reversibility & other conservations Reversibility is conservation of information Why does exact conservation seem hard? The same information is visible at multiple positions one n thFor reversibility, one n th of the neighbor information must be left at the center For reversibility ¼ th of neighbor information must be left at the center

8 Adding conservations to CA model non- local propertyWith traditional CA’s, conservations are a non- local property of the dynamics. Simplest solution: redefine CA’s so that conservation is a manifestly local property CA = regular computation in space & time –» Regular in space: repeated structure –» Regular in time: repeated sequence of steps

9 Diffusion rule cw = clockwise ccw = counter-clockwise

10 Take this image as our working environment Diffusion rule

11 … and this is what is created after some number of generations Result of Application of Diffusion rule

12 TM = Toffoli/Margolus Toffoli-Margolus () Gas rule Toffoli-Margolus (™) Gas rule No change if two on a diagonal

13 TM Gas rule

14

15

16

17

18

19 Now we analyze how it works on a larger example and for more generations TM Gas rule for more generations

20 TM Gas rule: rectangle after many generations

21 After many generations TM Gas rule

22 After many generations

23 Lattice gas refraction LGA = Lattice Gas Automaton, Lattice Gas Algorithm

24 Lattice gas hydrodynamics Six direction LGA flow past a half-cylinder, with vortex shedding. System is 2Kx1K.

25 Dynamical Ising rule Gold/silver checkerboard We divide the space into two sublattices, updating the gold on even steps, silver on odd. A spin is flipped if exactly 2 of its 4 neighbors are parallel to it. After the flip After the flip, exactly 2 neighbors are still parallel.

26 Dynamical Ising rule Question: What will be the state in 100 generations, if the picture above is the initial state? What in 10,000 generations? Spins up and down are shown in colors. Down is red, up is blue

27 Dynamical Ising rule

28 Bennett’s 1D rule At each site in a 1D space, we put 2 bits of state. We’ll call one the “gold” bit and one the “silver” bit. We update the gold bits on even steps, and the silver on odd steps. A spin is flipped if exactly 2 of its 4 neighbors are parallel to it. After the flip, exactly 2 neighbors are still parallel.

29 Bennett’s 1D rule Bennett’s rules: Bennett’s rules creation: 2D picture from 1D rules Time dimension goes down

30 3D Ising with heat bath If the heat bath is initially much cooler than the spin system, then domains grow as the spins cool. This is 3D so the CA is a 3- dimensional one. Exercise is to formulate 3D rules. See Buller/Perkowski paper

31 2D “Same” rule We divide the space into two sublatticesWe divide the space into two sublattices, updating the gold on even steps, silver on odd. A spin is flipped if all 4 of its neighbors are the same. Otherwise it is left unchanged. Checkerboard partitioning

32 2D “Same” rule

33 Look here

34 3D “Same” rule New topic: how to write rules for crystallization?

35 Reversible aggregation rule We update the gold sublattice, then let gas and heat diffuse, then update silver and diffuse. When a gas particle diffuses next to exactly one crystal particle, it crystallizes and emits a heat particle. The reverse also happens. for more info, see cond-mat/9810258 g=gas particle x = Crystal particle h=heat particle X grows = aggregation

36 for more info, see cond-mat/9810258 Reversible aggregation rule This results Observe that we also diffuse here. We combine rules

37 Adding forces irreversibly We add further rules Arrows symbolize attracting or repulsing forces

38 Adding forces irreversibly

39 Conservations summary To make conservations manifest, we employ a sequence of steps, in each of which either –1. the data are rearranged without any interaction, or –2. the data are partitioned into disjoint groups of bits that change as a unit. Data that affect more than one such group don’t change. Conservations allow computations to map efficiently onto microscopic physics, and also allow them to have interesting macroscopic behavior.


Download ppt "Emulating Physics Our goal will be to show how basic dynamics known from physics can be formulated using local simple rules of cellular automata: diffusion."

Similar presentations


Ads by Google