ArticleslgStudy

computer science

HPP model

HPP model is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand HPP model rather than just read about it. In short: 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.

HPP model — main illustration
HPP model — illustration

Key takeaways

  • HPP model belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect HPP model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of HPP model from memory before moving on to harder problems.

Reference excerpt

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-Stokes equations. Interest in lattice gas automaton methods levelled off in the early 1990s, due to rising interest in the lattice Boltzmann methods. It was first introduced in papers published in 1973 and 1976 by Jean Hardy, Yves Pomeau and Olivier de Pazzis, whose initials give the model its name. The model can be used as a simple model for both the movement of gases and fluid.

Model In this model, the lattice takes the form of a two-dimensional square grid, with particles capable of moving to any of the four adjacent grid points which share a common edge, and particles cannot move diagonally. This means each grid point can only have one of sixteen possible interactions. Particles exist only on the grid points, never on the edges or surface of the lattice. Each particle has an associated direction (from one grid point to another immediately adjacent grid point). Each lattice grid cell can only contain a maximum of one particle for each direction, i.e., contain a total of between zero and four particles.

The following rules also govern the model:

A single particle moves in a fixed direction until it experiences a collision. Two particles experiencing a head-on collision are deflected perpendicularly. Two particles experience a collision which isn't head-on simply pass through each other and continue in the same direction. Optionally, when a particles collides with the edges of a lattice it can rebound. The HPP models follows a two-stage update process.

Collision step In this step, the above rules 2., 3., and 4. are checked and applied if any collisions have occurred. This results in head-on collision particles changing direction, pass-through collisions continuing unchanged, or non-colliding particles simple remaining the same.

Transport step The second step consists of each particle moving one lattice step in the direction they are currently travelling, which could have been changed by the above Collision Step.

Formal definition The model operates on an infinite two-dimensional square lattice, where four unit vectors are associated with the following numbers: 1↦(10),2↦(01),3↦(−10),4↦(0−1). Let X be an allowed configuration. The function σX checks for the existence of a particle with a certain velocity, while σ¯X does the opposite: σX(p,q,i)={1 if the site (p,q) is occupied by a particle of X of velocity i,0 otherwise. σ¯X(p,q,i)=1−σX(p,q,i) The successor T(X) of the configuration X can be calculated using the formulas from the original paper:σT(X)(p,q,1)=σX(p−1,q,1)−ΨX(p,q)σT(X)(p,q,2)=σX(p,q−1,2)+ΨX(p,q)σT(X)(p,q,3)=σX(p+1,q,3)−ΨX(p,q)σT(X)(p,q,4)=σX(p,q+1,4)+ΨX(p,q)ΨX(p,q)=ψX1(p,q)−ψX2(p,q)ψX1(p,q)=σX(p−1,q,1)σX(p+1,q,3)σ¯X(p,q−1,2)σ¯X(p,q+1,4)ψX2(p,q)=σ¯X(p−1,q,1)σ¯X(p+1,q,3)σX(p,q−1,2)σX(p,q+1,4)

Shortcomings The model is badly flawed, as momentum is always conserved in both the horizontal and vertical lanes. No energy is ever removed from the model, either by collisions or movement, so it will continue indefinitely. The HPP model lacked rotational invariance, which made the model highly anisotropic. This means for example, that the vortices produced by the HPP model are square-shaped.

Notes

References Sauro Succi (2001). The Lattice Boltzmann Equation, for fluid dynamics and beyond. Oxford Science Publications. ISBN 0-19-850398-9. (Chapter 2 on Lattice gas Cellular Automata) Neil Gershenfeld (1998). The Nature of Mathematical Modeling. Cambridge University Press. ISBN 978-0521570954.

Illustrations

HPP model: Small scale demonstration of the square lattice HPP model (click the picture for animated version).
Small scale demonstration of the square lattice HPP model (click the picture for animated version).
HPP model: Visual examples of the four rules governing the HPP Model.
Visual examples of the four rules governing the HPP Model.
HPP model: An implementation of the HPP model. A 300x200 pixel grid was used with a torus like geometry, meaning particles leaving the grid from the left enter from the right again, particles leaving from the top enter from the bottom, etc. Particle density is displayed by a white pixel being densest with 4 particles and black the least dense with 0 particles. The simulation starts with a high pressure 100x100 square in the middle.
An implementation of the HPP model. A 300x200 pixel grid was used with a torus like geometry, meaning particles leaving the grid from the left enter from the right again, particles leaving from the top enter from the bottom, etc. Particle density is displayed by a white pixel being densest with 4 particles and black the least dense with 0 particles. The simulation starts with a high pressure 100x100 square in the middle.

Worked examples

Example 1 — a first encounter with HPP model

Start with the simplest possible case. Write down what HPP model claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to HPP model before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about HPP model ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of HPP model

In research
HPP model appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses HPP model in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
HPP model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational fluid dynamics, so understanding it makes those chapters shorter.
In everyday life
Look for HPP model outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “HPP model” →

How to study HPP model in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what HPP model means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain HPP model out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is HPP model in simple terms?

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.

Why does HPP model matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study HPP model?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on HPP model.

Tags

  • Computational fluid dynamics

Keep exploring