Thermodynamics and Hydrodynamics with Cellular Automata

Similar documents
Cellular Automaton Supercomputing

arxiv:comp-gas/ v1 28 Apr 1993

Cellular Automata as Models of Complexity

over the last few years the tantalizing

Complex Systems Theory

External and Internal Incompressible Viscous Flows Computation using Taylor Series Expansion and Least Square based Lattice Boltzmann Method

The existence of Burnett coefficients in the periodic Lorentz gas

Chaos, Complexity, and Inference (36-462)

Direct Modeling for Computational Fluid Dynamics

Chaos, Complexity, and Inference (36-462)

PART I BACKGROUND FOR LATTICE GAS AUTOMATA

Lattice Gas Models : Flow, Porous Media, and Bubbles.

Simulation of 2D non-isothermal flows in slits using lattice Boltzmann method

4. The Green Kubo Relations

Connection Between the Lattice Boltzmann Equation and the Beam Scheme

Lattice Boltzmann Method for Fluid Simulations

An Introduction to Theories of Turbulence. James Glimm Stony Brook University

Undecidability and Intractability in Theoretical Physics

Diffusive Transport Enhanced by Thermal Velocity Fluctuations

CHAPTER 7 SEVERAL FORMS OF THE EQUATIONS OF MOTION

comp-gas/ Jan 1994

On pressure and velocity boundary conditions for the lattice Boltzmann BGK model

The Continuum Navier-Stokes Equations

Image Encryption and Decryption Algorithm Using Two Dimensional Cellular Automata Rules In Cryptography

Lattice Boltzmann Methods for Fluid Dynamics

Computational Fluid Dynamics: FHP-I & FHP-III

Lattice Boltzmann Method

7 The Navier-Stokes Equations

o or 1. The sequence of site values is the "configuration" of the cellular automaton. The cellular

Lattice Boltzmann Modeling of Wave Propagation and Reflection in the Presence of Walls and Blocks

10 Cellular Automata and Lattice Gases

Learning Cellular Automaton Dynamics with Neural Networks

Chapter 1 Direct Modeling for Computational Fluid Dynamics

Lattice Bhatnagar Gross Krook model for the Lorenz attractor

Contents. I Introduction 1. Preface. xiii

Particle-Simulation Methods for Fluid Dynamics

REGULARIZATION AND BOUNDARY CONDITIONS FOR THE 13 MOMENT EQUATIONS

Motivation. Evolution has rediscovered several times multicellularity as a way to build complex living systems

ABridgeofBits. Norman Margolus Laboratory for Computer Science Massachusetts Institute of Technology Cambridge, MA

CBSSS 6/25/02. Physics becomes the. Computing Beyond Silicon Summer School. computer. Norm Margolus

Research of Micro-Rectangular-Channel Flow Based on Lattice Boltzmann Method

Lecture 5: Kinetic theory of fluids

1. Introduction, tensors, kinematics

Decoherence and the Classical Limit

Euler equation and Navier-Stokes equation

Project Topic. Simulation of turbulent flow laden with finite-size particles using LBM. Leila Jahanshaloo

Simulating Drag Crisis for a Sphere Using Skin Friction Boundary Conditions

LATTICE BOLTZMANN MODELLING OF PULSATILE FLOW USING MOMENT BOUNDARY CONDITIONS

Lattice Boltzmann Method for Fluid Simulations

How the Lattice Gas Model for the Navier-Stokes Equation Improves When anew Speed is Added

Physical Modeling of Multiphase flow. Boltzmann method

Lattice Gas Automata

MACROSCOPIC VARIABLES, THERMAL EQUILIBRIUM. Contents AND BOLTZMANN ENTROPY. 1 Macroscopic Variables 3. 2 Local quantities and Hydrodynamics fields 4

EMERGENT 1D ISING BEHAVIOR IN AN ELEMENTARY CELLULAR AUTOMATON MODEL

fluid mechanics as a prominent discipline of application for numerical

Numerical methods for the Navier- Stokes equations

Entropy generation and transport

FUNDAMENTALS OF CHEMISTRY Vol. II - Irreversible Processes: Phenomenological and Statistical Approach - Carlo Cercignani

A Unified Gas-kinetic Scheme for Continuum and Rarefied Flows

Collective Effects. Equilibrium and Nonequilibrium Physics

arxiv:comp-gas/ v1 15 Jun 1993

Any live cell with less than 2 live neighbours dies. Any live cell with 2 or 3 live neighbours lives on to the next step.

Chapter 9: Differential Analysis of Fluid Flow

Electrical Transport in Nanoscale Systems

APPRAISAL OF FLOW SIMULATION BY THE LATTICE BOLTZMANN METHOD

Lattice Boltzmann model for the Elder problem

Lattice Boltzmann Method

Chemical and Biomolecular Engineering 150A Transport Processes Spring Semester 2017

The Superfluid Phase s of Helium 3

2.29 Numerical Fluid Mechanics Fall 2011 Lecture 7

A Colorful Introduction to Cellular Automata

NUMERICAL SIMULATION OF THE TAYLOR-GREEN VORTEX

SEMICLASSICAL LATTICE BOLTZMANN EQUATION HYDRODYNAMICS

Anisotropic fluid dynamics. Thomas Schaefer, North Carolina State University

Entropy and irreversibility in gas dynamics. Joint work with T. Bodineau, I. Gallagher and S. Simonella

Relaxation methods and finite element schemes for the equations of visco-elastodynamics. Chiara Simeoni

Giant Enhancement of Quantum Decoherence by Frustrated Environments

Analysis and boundary condition of the lattice Boltzmann BGK model with two velocity components

Bäcklund Transformations: a Link Between Diffusion Models and Hydrodynamic Equations

CONVECTIVE HEAT TRANSFER

Cellular Automata. and beyond. The World of Simple Programs. Christian Jacob

Perfect entropy functions of the Lattice Boltzmann method

AIR FORCE INSTITUTE OF TECHNOLGY

Chapter 9: Differential Analysis

Boundary-Layer Theory

List of Comprehensive Exams Topics

Toward a Better Understanding of Complexity

Mesoscale fluid simulation of colloidal systems

Before we consider two canonical turbulent flows we need a general description of turbulence.

General introduction to Hydrodynamic Instabilities

Cellular Automata. ,C ) (t ) ,..., C i +[ K / 2] Cellular Automata. x > N : C x ! N. = C x. x < 1: C x. = C N+ x.

EXACT SOLUTIONS TO THE NAVIER-STOKES EQUATION FOR AN INCOMPRESSIBLE FLOW FROM THE INTERPRETATION OF THE SCHRÖDINGER WAVE FUNCTION

Schemes for Mixture Modeling

Statistical studies of turbulent flows: self-similarity, intermittency, and structure visualization

The Boltzmann Equation and Its Applications

Fundamentals of Fluid Dynamics: Elementary Viscous Flow

Fluid Dynamics: Theory, Computation, and Numerical Simulation Second Edition

Lattice Boltzmann Model

comp-gas/ Jan 1995

A Search for the Simplest Chaotic Partial Differential Equation

Transcription:

Thermodynamics and Hydrodynamics with Cellular Automata James B Salem Thinking Machines Corporation, 245 First Street, Cambridge, MA 02144 and Stephen Wolfram The Institute for Advanced Study, Princeton NJ 08540 (November 1985) Simple cellular automata which seem to capture the essential features of thennodynamics and hydrodynamics are discussed At a microscopic level, the cellular automata are discrete approximations to molecular dynamics, and show relaxation towards equilibrium On a large scale, they behave like continuum fiuids, and suggest efficient methods for hydrodynamic simulation Thermodynamics and hydrodynamics describe the overall behaviour of many systems, independent of the precise microscopic construction of each system One can thus study thermodynamics and hydrodynamics using simple models, which are more amenable to efficient simulation, and potentially to mathematical analysis Cellular automata (CA) are discrete dynamical systems which give simple models for many complex physical processes [1] This paper considers CA which can be viewed as discrete approximations to molecular dynamics In the simplest case, each link in a regular spatial lattice carries at most one "particle" with unit velocity in each direction At each time step, each particle moves one link; those arriving at a particular site then "scatter" according to a fixed set of rules This discrete system is well-suited to simulation on digital computers The state of each site is represented by a few bits, and follows simple logical rules The rules are local, so that many sites can be Updated in parallel The simulations in this paper were performed on a Connection Machine Computer [2] which updates sites concurrently in each of 65536 Boolean processors [3] In two dimensions, one can consider square and hexagonal (six links at 60 ) lattices On a square lattice [4], the only nontrivial rule which consenres momentum and particle number takes isolated pairs of particles colliding head on scatter in the orthogonal direction (no interaction in other cases) On a hexagonal lattice [5], such pairs may scatter in either of the other two directions, and the scattering may be affected by particles in the third direction Four particles corning along two directions may also scatter in different directions Finally, particles on three links separated by 120 may scatter along the

2 other three links At fixed boundaries, particles may either "bounce back" (yielding "no slip" on average), or reflect "specularly" through 120 On a microscopic scale, these rules are deterministic, reversible and discrete But on a sufficiently large scale, a statistical description may apply, and the system may behave like a continuum fluid, with macroscopic quantities, such as hydrodynamic velocity, obtained by kinetic theory averages Figure 1 illustrates relaxation to "thermodynamic equilibrium" The system randomizes, and coarse-grained entropy increases This macroscopic behaviour is robust, but microscopic details depend sensitively on initial conditions Small perturbations (say of one particle) have microscopic effects over linearly-expanding regions [6] Thus ensembles of "nearby" initial states usually evolve to contain widely-differing "typical" states But in addition, individual "simply-specified" initial states can yield behaviour so complex as to seem random [7,8], as in figure 1 The dynamics thus "encrypts" the initial data; given only coarse-grained, partial, information, the initial simplicity cannot be recovered or recognized by computationally feasible procedures [7], and the behaviour is effectively irreversible Microscopic instability implies that predictions of detailed behaviour are impossible without ever more extensive knowledge of initial conditions With complete knowledge (say from a simple specification), the behaviour can always be reproduced by explicit simulation But if effective predictions are to be made, more efficient computational procedures should be found It is known, however, that the CA considered here can act as universal computers [9]: with appropriate initial conditions, their evolution can implement any computation Streams of particles corresponding to "wires" can meet in logical gates implemented by fixed obstructions or other streams As a consequence, the evolution is computationally irreducible [10]; there is no general shortcut to explicit simulation No simpler computation can reproduce all the possible phenomena Some overall statistical predictions can nevertheless be made In isolation, the CA seem to relax to an equilibrium in which links are populated effectively randomly with a particular average particle density p and net velocity (as in figure 1) On length scales large compared to the mean free path A, the system then behaves like a continuum fluid The effective fluid pressure is p=p/2, giving a speed of sound c=1ifi Despite the microscopic anisotropy of the lattice, circular sound wavefronts are obtained from point sources (so long as their wavelength is larger than the mean free path) [11] Assuming local equilibrium the large-scale behaviour of the CA can be approximated by average rules for collections of particles, with particular average densities and velocities The rules are like finite difference approximations to partial differential equations, whose form can be found by a standard Chapman-Enskog expansion [12] of microscopic particle distributions in terms of macroscopic quantities The results are analogous to those for systems [13] in which particles occur with an arbitrary continuous density at each point in space, but have only a finite set of possible velocities corresponding to the links of the lattice The hexagonal lattice CA is then found to follow exactly the standard NavierStokes equations [5,14] As usual, the parameters in the Navier-Stokes equations depend on the microscopic structure of the system Kinetic theory suggests a kinematic viscosity v=aj2 [15] Figures 2 and 3 show hydrodynamic phenomena in the large scale behaviour of the hexagonal lattice CA An overall flow U is obtained by maintaining a difference in the numbers of left- and rightmoving particles at the boundaries Since local equilibrium is rapidly reached from almost any state, the results are insensitive to the precise arrangement used [14] Random boundary fluxes imitate an infinite region; a regular pattern of incoming particles nevertheless also suffices, and reflecting or cyclic boundary conditions can be used on the top and bottom edges The hydrodynamics of the CA is much like a standard physical fluid [16] For low Mach numbers Ma=Ulc, the fluid is approximately incompressible, and the flows show dynamical similarity, depending only on Reynolds number Re::UUv (1>)) The patterns obtained agree qualitatively with experiment [3] At low Re, the flows are macroscopically stable; perturbations are dissipated into microscopic "heat" At higher Re, vortex streets are produced, and there are signs of irregular, turbulent, behaviour Perturbations now affect details of the flow, though not its statistical properties The macroscopic irregularity does not depend on microscopic randomness; it occurs even if microscopically simple (say spatially and temporally periodic) initial and boundary conditions are used, as illustrated in figure 2 As at

3 the microscopic level, it seems that the evolution corresponds to a sufficiently complex computation that its results seem random [7] The CA discussed here should serve as a basis for practical hydrodynamic simulations They are simple to program, readily amenable to parallel processing, able to handle complex geometries easily, and presumably show no unphysical instabilities (Generalization to three dimensions is straightforward in principle [17]) Standard finite difference methods [18] consider discrete cells of fluid described by continuous parameters These parameters are usually represented as digital numbers with say 64 bits of precision Most of these bits are, however, probably irrevelant in determining observable features of flow In the CA approach, all bits are of essentially equal importance, and the number of elementary operations performed is potentially closer to the irreducible limit The difficulty of computation in a particular case depends on the number of cells that must be used Below a certain dissipation length scale a, viscosity makes physical fluids smooth Each CA cell can thus potentially represent a packet of fluid on this length scale In fully developed turbulence, a appears to scale approximately as Re-dl4 in d dimensions [16] These estimates govern cell sizes needed in finite difference schemes The CA discussed so far incorporate no microscopic irreversibility: macroscopic energy dissipation occurs only through degradation to microscopic "heat" But in turbulence there is continual dissipation of -Red energy at small scales To absorb this energy, the CA cells must be Re 1l4 (d=3) or Re l12 (d=2) times larger than a, making such CA less efficient than irreversible finite difference schemes [19] "Turbulence models" with irreversibility in the microscopic CA rules may overcome this difficulty Several further extensions of the CA scheme can be considered First, on some or all of the lattice, basic units containing say n particles, rather than single particles, can be used The properties of these units can be specified by digital numbers with O(logn) bits, but exact conservation laws can still be maintained This scheme comes closer to adaptive grid finite difference methods [18], and potentially avoids detailed computation in featureless parts of flows A second, related, extension introduces discrete internal degrees of freedom for each particle These could represent different particle types, directions of discrete vortices [18], or internal energy (giving variable temperature [20]) This paper has given evidence that simple cellular automata can reproduce the essential features of thermodynamic and hydrodynamic behaviour These models make contact with results in dynamical systems theory and computation theory They should also yield efficient practical simulations, particularly on parallel-processing computers Cellular automata can potentially reproduce behaviour conventionally described by partial differential equations in many other systems whose intrinsic dynamics involves many degrees of freedom with no large disparity in scales We thank U Frisch, B Hasslacher, Y Pomeau and T Shimomura for sharing their unpublished results with us, and we thank N Margolus, S Omohundro, S Orszag, N Packard, R Shaw, T Toffoli, G Vichniac and V Yakhot for discussions We are also grateful to many people at Thinking Machines Corporation for their help and encouragement The work of SW was supported in part by the US Office of Naval Research under contract number NOOOI4-85-K-0045 1 2 3 See for example S Wolfram, "Cellular automata as models of complexity", Nature 311, 419 (1984) where applications to thermodynamics and hydrodynamics were mentioned but not explored D Hillis, The Connection Machine (MIT press, 1985) This application is discussed in S Wolfram, "Scientific computation with the Connection Machine", Thinking Machines Corporation report (March 1985) More detailed results of theory and simulation will be given in a forthcoming series of papers

4 4 J Hardy, O de Pazzis and Y Pomeau, "Molecular dynamics of a classical lattice gas: transport properties and time correlation functions", Phys Rev A13, 1949 (1976) 5 U Frisch, B Hasslacher and Y Pomeau, "A lattice gas automaton for the Navier-Stokes equation", Los Alamos preprint LA-UR-85-3503 6 The expansion rate gives the Lyapunov exponent as defined in N Packard and S Wolfram, "Two-dimensional cellular automata", 1 Stat Phys 38, 901 (1985) Note that the effect involves many particles, and does not arise from instability in the motion of single particles, as in the case of hard spheres with continuous position variables (eg O Penrose, "Foundations of statistical mechanics", Rep Prog Phys 42, 129 (1979)) 7 S Wolfram, "Origins of randomness in physical systems", Phys Rev Lett 55, 449 (1985); "Random sequence generation by cellular automata", Adv Appl Math (in press) 8 Simple patterns are obtained with very simple or symmetrical initial conditions On a hexagonal lattice, the motion of an isolated particle in a rectangular box is described by a linear congruence relation, and is ergodic when the side lengths are not commensurate 9 N Margolus, "Physics-like models of computation", Physica lod, 81 (1984) 10 S Wolfram, "Undecidability and intractability in theoretical physics", Phys Rev Lett 54, 735 (1985) 11 cf T Toffoli, "CAM: A high-performance cellular automaton machine", Physic a lod, 195 (1984) 12 eg S Harris, The Boltzmann Equation, (Holt, Reinhart and Winston, 1971) 13 R Gatignol, Theorie cinetique des gaz a repartition discrete de vitesse, (Springer, 1975); J Broadwell, "Shock structure in a simple discrete velocity gas", Phys Fluids 7, 1243 (1964) 14 On a square lattice, the total momentum in each row is separately conserved, and so cannot be convected by velocity in the orthogonal direction Symmetric three particle collisions on a hexagonallattice remove this spurious conservation law 15 The rank three and four tensor coefficients of the nonlinear and viscous terms in the NavierStokes equations are isotropic for a hexagonal but not a square lattice Higher order coefficients are anisotropic in both cases In two dimensions, there can be logarithmic corrections to the Newtonian fluid approximation: these can apparently be ignored on the length scales considered, but yield a formal divergence in the viscosity (cf [3]) 16 eg D J Tritton, Physical fluid dynamics, (Van Nostrand, 1977) 17 Icosahedral symmetry yields isotropic fluid behaviour, and can be achieved to an arbitrary degree of approximation with a suitable periodic lattice (cf D Levine et ai, " Elasticity and dislocations in pentagonal and icosahedral quasicrystals", Phys Rev Lett 54, 1520 (1985); P Bak, "Symmetry, stability, and elastic properties of icosahedral incommensurate crystals", Phys Rev B32, 5764 (1985» 18 eg P Roache, Computational fluid dynamics, (Hermosa, Albuquerque, 1976) 19 S Orszag and V Yakhot, "Reynolds number scaling of cellular automaton hydrodynamics", Princeton University Applied and Computational Math report (November 1985) 20 In simple cases the resulting model is analogous to a deterministic microcanonical spin system (M Creutz, "Deterministic Ising dynamics", Ann Phys, to be published)

t=200 t=100 t=o ', :' : ' "~' : s 014 o t 1000 Figure 1 Relaxation to "thermodynamic equilibrium" in the hexagonal lattice cellular automaton (CA) described in the text Discrete particles are initially in a simple array in the centre of a 32x32 site square box The upper sequence shows the randomization of this pattern with time; the lower sequence shows the cells visited in the discrete phase space (one particle track is drawn thicker) The graph illustrates the resulting increase of coarse-grained entropy Uilogz,Pi calculated from particle densities in 32x32 regions of a 256><256 box t=o 1 t=10000 t=20000 - -_ - - --_ t=30000 - - - t=500oo t=60000 t=70000 -- _---_--- -_ -- ---_ -- --------_ - _--_ ----- --- -_ -----_-_ ----- --- - - -_ -_ -----_ - ---------- t=40000 - ------ -_ -_ - --:: :::::::::::::::::::::::::::" ---- ---------- --_ --- -- -----_ ----_ -- - ---_-_ - ---- - --- :::::::::::::::::::::::: :::::: _ - - - --_--::_:::::::::::::::::::: ----_ - -- - :::::::: ::: ::::::::::::: :::::: ::::::: ~~~ ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~: :::::::::::: ::: :::::: _ -::: ----_ --- ---- -~ - - --~---- :;:::~ '" x 100 t=80000 Figure 2 Time evolution of hydrodynamic Bow around an inclined plate in the CA of figure 1 on a 2048x2048 site lattice Hydrodynamic velocities are obtained as indicated by averaging over 64x64 site regions There is an average density of 03 particles per link (giving a total of 7xl06 particles) An overall velocity U=Ol is maintained by introducing an excess of particles (here in a regular pattern) on the left hand boundary U=0025 U=O05 _g " 2?~- ~~v "- U=O1 U=0075 ' --, ~ ~J!-:-:--:;: h' '""~':: -, _ " '~ ~c~ U=025 :- E1,',~7;;~~~ -;:~~ ), I' ~ '~:::~'_NN- ~~k -: :;:~~~~::!:;~ ~~~:::::: ;;:::':'2::=;-:'-:':;: ::~~::! :~i0~2~ Figure 3 Hydrodynamic Bows obtained after velocities U las time steps in the CA of figure 2, for various overall