Lattice gas automata (LGCA), or lattice gas cellular automata, are a type of
cellular automaton used to simulate fluid flows, pioneered by
Hardy–Pomeau–de Pazzis and
Frisch–
Hasslacher–
Pomeau. They were the precursor to the
lattice Boltzmann methods. From lattice gas automata, it is possible to derive the macroscopic
Navier–Stokes equations. Interest in lattice gas automaton methods levelled off in the early 1990s, as the interest in the lattice Boltzmann started to rise. However, an LGCA variant, termed
BIO-LGCA In computational and mathematical biology, a biological lattice-gas cellular automaton (BIO-LGCA) is a discrete model for moving and interacting biological agents, a type of cellular automaton. The BIO-LGCA is based on the lattice-gas cellular aut ...
, is still widely used to model collective migration in biology.
Basic principles
As a cellular automaton, these models comprise a lattice, where the sites on the lattice can take a certain number of different states. In lattice gas, the various states are particles with certain velocities. Evolution of the simulation is done in discrete time steps. After each time step, the state at a given site can be determined by the state of the site itself and neighboring sites, ''before'' the time step.
The state at each site is purely
boolean
Any kind of logic, function, expression, or theory based on the work of George Boole is considered Boolean.
Related to this, "Boolean" may refer to:
* Boolean data type, a form of data with only two possible values (usually "true" and "false" ...
. At a given site, there either ''is'' or ''is not'' a particle moving in each direction.
At each time step, two processes are carried out, propagation and collision.
In the propagation step, each particle will move to a neighboring site determined by the velocity that particle had. Barring any collisions, a particle with an upwards velocity will after the time step maintain that velocity, but be moved to the neighboring site above the original site. The so-called exclusion principle prevents two or more particles from travelling on the same link in the same direction.
In the collision step, collision rules are used to determine what happens if multiple particles reach the same site. These collision rules are required to maintain
mass conservation
In physics and chemistry, the law of conservation of mass or principle of mass conservation states that for any system closed to all transfers of matter and energy, the mass of the system must remain constant over time, as the system's mass ca ...
, and
conserve the total momentum; the
block cellular automaton
A block cellular automaton or partitioning cellular automaton is a special kind of cellular automaton in which the lattice of cells is divided into non-overlapping blocks (with different partitions at different time steps) and the transition rule ...
model can be used to achieve these conservation laws. Note that the exclusion principle does not prevent two particles from travelling on the same link in ''opposite'' directions, when this happens, the two particles pass each other without colliding.
Early attempts with a square lattice
In papers published in 1973 and 1976, Jean Hardy,
Yves Pomeau
Yves Pomeau, born in 1942, is a French mathematician and physicist, emeritus research director at the CNRS and corresponding member of the French Academy of sciences. He was one of the founders of thLaboratoire de Physique Statistique, École No ...
and Olivier de Pazzis introduced the first lattice Boltzmann model, which is called the
HPP model
The Hardy–Pomeau–Pazzis (HPP) model is a fundamental lattice gas automaton for the simulation of gases and liquids. It was a precursor to the lattice Boltzmann methods. From lattice gas automata, it is possible to derive the macroscopic Navier ...
after the authors. HPP model is a two-dimensional model of fluid particle interactions. In this model, the lattice is square, and the particles travel independently at a unit speed to the discrete time. The particles can move to any of the four sites whose cells share a common edge. Particles cannot move diagonally.
If two particles collide head-on, for example a particle moving to the left meets a particle moving to the right, the outcome will be two particles leaving the site at right angles to the direction they came in.
The HPP model lacked
rotational invariance, which made the model highly
anisotropic
Anisotropy () is the property of a material which allows it to change or assume different properties in different directions, as opposed to isotropy. It can be defined as a difference, when measured along different axes, in a material's physic ...
. This means for example, that the vortices produced by the HPP model are square-shaped.
Hexagonal grids
The hexagonal grid model was first introduced in 1986, in a paper by
Uriel Frisch,
Brosl Hasslacher
Brosl Hasslacher (May 13, 1941 – November 11, 2005) was a theoretical physicist.
Brosl Hasslacher obtained a bachelor's in physics from Harvard University in 1962. He did his Ph.D. with D.Z. Freeman and Yang Chen-Ning, C.N. Yang at the State Uni ...
and Pomeau, and this has become known as the FHP model after its inventors. The model has six or seven velocities, depending on which variation is used. In any case, six of the velocities represent movement to each of the neighboring sites. In some models (called FHP-II and FHP-III), a seventh velocity representing particles "at rest" is introduced. The "at rest" particles do not propagate to neighboring sites, but they are capable of colliding with other particles. The FHP-III model allows all possible collisions that conserve density and momentum. Increasing the number of collisions raises the
Reynolds number
In fluid mechanics, the Reynolds number () is a dimensionless quantity that helps predict fluid flow patterns in different situations by measuring the ratio between inertial and viscous forces. At low Reynolds numbers, flows tend to be domi ...
, so the FHP-II and FHP-III models can simulate less viscous flows than the six-speed FHP-I model.
The simple update rule of FHP model proceeds in two stages, chosen to conserve particle number and momentum. The first is collision handling. The collision rules in the FHP model are not
deterministic
Determinism is a philosophical view, where all events are determined completely by previously existing causes. Deterministic theories throughout the history of philosophy have developed from diverse and sometimes overlapping motives and consi ...
, some input situations produce two possible outcomes, and when this happens, one of them is picked at random. Since
random number generation is not possible through completely computational means, a
pseudorandom process is usually chosen.
After the collision step a particle on a link is taken to be leaving the site. If a site has two particles approaching head-on, they scatter. A random choice is made between the two possible outgoing directions that conserve momentum.
The hexagonal grid does not suffer as large anisotropy troubles as those that plague the HPP square grid model, a fortunate fact that is not entirely obvious, and that prompted Frisch to remark that "the symmetry gods are benevolent".
Three dimensions
For a three-dimensional grid, the only regular
polytope that fills the whole space is the
cube
In geometry, a cube is a three-dimensional solid object bounded by six square faces, facets or sides, with three meeting at each vertex. Viewed from a corner it is a hexagon and its net is usually depicted as a cross.
The cube is the only r ...
, while the only regular polytopes with a sufficiently large symmetry group are the
dodecahedron and
icosahedron
In geometry, an icosahedron ( or ) is a polyhedron with 20 faces. The name comes and . The plural can be either "icosahedra" () or "icosahedrons".
There are infinitely many non- similar shapes of icosahedra, some of them being more symmetrica ...
(without the second constraint the model will suffer the same drawbacks as the HPP model). To make a model that tackles three dimensions therefore requires an increase in the number of dimensions, such as in the 1986 model by D'Humières, Lallemand and Frisch, which employed a face-centered
hypercube
In geometry, a hypercube is an ''n''-dimensional analogue of a square () and a cube (). It is a closed, compact, convex figure whose 1- skeleton consists of groups of opposite parallel line segments aligned in each of the space's dimensions, ...
model.
[Wolf-Gladrow, sections 3.4 - 3.5]
Obtaining macroscopic quantities
The density at a site can be found by counting the number of particles at each site. If the particles are multiplied with the unit velocity before being summed, one can obtain the
momentum
In Newtonian mechanics, momentum (more specifically linear momentum or translational momentum) is the product of the mass and velocity of an object. It is a vector quantity, possessing a magnitude and a direction. If is an object's mass an ...
at the site.
However, calculating density, momentum, and velocity for individual sites is subject to a large amount of noise, and in practice, one would average over a larger region to obtain more reasonable results.
Ensemble averaging
In machine learning, particularly in the creation of artificial neural networks, ensemble averaging is the process of creating multiple models and combining them to produce a desired output, as opposed to creating just one model. Frequently an ens ...
is often used to reduce the statistical noise further.
Advantages and disadvantages
The main assets held by the lattice gas model are that the boolean states mean there will be exact computing without any round-off error due to floating-point precision, and that the cellular automata system makes it possible to run lattice gas automaton simulations with
parallel computing
Parallel computing is a type of computation in which many calculations or processes are carried out simultaneously. Large problems can often be divided into smaller ones, which can then be solved at the same time. There are several different fo ...
.
Disadvantages of the lattice gas method include the lack of
Galilean invariance, and
statistical noise
In statistics, the fraction of variance unexplained (FVU) in the context of a regression task is the fraction of variance of the regressand (dependent variable) ''Y'' which cannot be explained, i.e., which is not correctly predicted, by the e ...
.
[Succi, section 2.5] Another problem is the difficulty in expanding the model to handle three dimensional problems, requiring the use of more dimensions to maintain a sufficiently symmetric grid to tackle such issues.
As a model in biology
Lattice-gas cellular automata have been adapted and are still widely used for modeling collective migration in biology. Due to the active nature of biological agents, as well as the viscuous environments cells live in, momentum conservation is not required. Furthermore, agents may die or reproduce, so mass conservation may also be absent. During the collision step, particles reorient stochastically following a Boltzmann distribution, simulating local interaction between individuals.
Notes
References
* (Chapter 2 is about lattice gas Cellular Automata)
*James Maxwell Buick (1997). Lattice Boltzmann Methods in Interfacial Wave Modelling. PhD Thesis, University of Edinburgh. (Chapter 3 is about the lattice gas model.)
Online-->
2008-11-13
*
External links
*
Master thesis (2000)– Details on programming and optimising the simulation of the FHP LGA
* {{in lang, pl, en}
- Implementation of FHP model in Nvidia CUDA technology.
Computational fluid dynamics
Cellular automata