ArticleslgStudy

chemistry

Cell lists

Cell lists is a chemistry 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 Cell lists rather than just read about it. In short: Cell lists (also sometimes referred to as cell linked-lists) is a data structure in molecular dynamics simulations to find all atom pairs within a given cut-off distance of each other. These pairs are needed to compute the short-range non-bonded interactions in a system, such as Van der Waals forces or the short-range part of the electrostatic interaction when using Ewald summation.

Cell lists — main illustration
Cell lists — illustration

Key takeaways

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

Reference excerpt

Cell lists (also sometimes referred to as cell linked-lists) is a data structure in molecular dynamics simulations to find all atom pairs within a given cut-off distance of each other. These pairs are needed to compute the short-range non-bonded interactions in a system, such as Van der Waals forces or the short-range part of the electrostatic interaction when using Ewald summation.

Algorithm

Cell lists work by subdividing the simulation domain into cells with an edge length greater than or equal to the cut-off radius of the interaction to be computed. The particles are sorted into these cells and the interactions are computed between particles in the same or neighbouring cells. In its most basic form, the non-bonded interactions for a cut-off distance rc are computed as follows:

for all neighbouring cell pairs (Cα,Cβ) do for all pα∈Cα do for all pβ∈Cβ do r2=‖𝐱[pα]−𝐱[pβ]‖22 if r2≤rc2 then Compute the interaction between pα and pβ. end if end for end for end for Since the cell length is at least rc in all dimensions, no particles within rc of each other can be missed. Given a simulation with N particles with a homogeneous particle density, the number of cells m is proportional to N and inversely proportional to the cut-off radius (i.e. if N increases, so does the number of cells). The average number of particles per cell c‾=N/m therefore does not depend on the total number of particles. The cost of interacting two cells is in 𝒪(c‾2). The number of cell pairs is proportional to the number of cells which is again proportional to the number of particles N. The total cost of finding all pairwise distances within a given cut-off is in 𝒪(Nc)∈𝒪(N), which is significantly better than computing the 𝒪(N2) pairwise distances naively.

Periodic boundary conditions In most simulations, periodic boundary conditions are used to avoid imposing artificial boundary conditions. Using cell lists, these boundaries can be implemented in two ways.

Ghost cells

In the ghost cells approach, the simulation box is wrapped in an additional layer of cells. These cells contain periodically wrapped copies of the corresponding simulation cells inside the domain. Although the data—and usually also the computational cost—is doubled for interactions over the periodic boundary, this approach has the advantage of being straightforward to implement and very easy to parallelize, since cells will only interact with their geographical neighbours.

Periodic wrapping Instead of creating ghost cells, cell pairs that interact over a periodic boundary can also use a periodic correction vector 𝐪αβ. This vector, which can be stored or computed for every cell pair (Cα,Cβ), contains the correction which needs to be applied to "wrap" one cell around the domain to neighbour the other. The pairwise distance between two particles pα∈Cα and pβ∈Cβ is then computed as

r2=‖𝐱[pα]−𝐱[pβ]−𝐪αβ‖22. This approach, although more efficient than using ghost cells, is less straightforward to implement (the cell pairs need to be identified over the periodic boundaries and the vector 𝐪αβ needs to be computed/stored).

Improvements Despite reducing the computational cost of finding all pairs within a given cut-off distance from 𝒪(N2) to 𝒪(N), the cell list algorithm listed above still has some inefficiencies. Consider a computational cell in three dimensions with edge length equal to the cut-off radius rc. The pairwise distance between all particles in the cell and in one of the neighbouring cells is computed. The cell has 26 neighbours: 6 sharing a common face, 12 sharing a common edge and 8 sharing a common corner. Of all the pairwise distances computed, only about 16% will actually be less than or equal to rc. In other words, 84% of all pairwise distance computations are spurious. One way of overcoming this inefficiency is to partition the domain into cells of edge length smaller than rc. The pairwise interactions are then not just computed between neighboring cells, but between all cells within rc of each other (first suggested in and implemented and analysed in and ). This approach can be taken to the limit wherein each cell holds at most one single particle, therefore reducing the number of spurious pairwise distance evaluations to zero. This gain in efficiency, however, is quickly offset by the number of cells Cβ that need to be inspected for every interaction with a cell Cα, which, for example in three dimensions, grows cubically with the inverse of the cell edge length. Setting the edge length to rc/2, however, already reduces the number of spurious distance evaluations to 63%. Another approach is outlined and tested in Gonnet, in which the particles are first sorted along the axis connecting the cell centers. This approach generates only about 40% spurious pairwise distance computations, yet carries an additional cost due to sorting the particles.

See also Verlet list

References

Illustrations

Cell lists: Periodic boundary conditions can be simulated by wrapping the simulation box in an additional layer of cells (shaded orange) containing periodic copies of the boundary cells (blue particles).
Periodic boundary conditions can be simulated by wrapping the simulation box in an additional layer of cells (shaded orange) containing periodic copies of the boundary cells (blue particles).

Worked examples

Example 1 — a first encounter with Cell lists

Start with the simplest possible case. Write down what Cell lists claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In chemistry, 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 Cell lists 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 Cell lists 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 Cell lists

In research
Cell lists appears in chemistry 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 Cell lists 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
Cell lists is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational chemistry, Computational physics, Molecular dynamics, so understanding it makes those chapters shorter.
In everyday life
Look for Cell lists 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 “Cell lists” →

How to study Cell lists in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Cell lists 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 Cell lists out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Cell lists in simple terms?

Cell lists (also sometimes referred to as cell linked-lists) is a data structure in molecular dynamics simulations to find all atom pairs within a given cut-off distance of each other. These pairs are needed to compute the short-range non-bonded interactions in a system, such as Van der Waals force…

Why does Cell lists matter?

Because it connects several chemistry 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 Cell lists?

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 Cell lists.

Tags

  • Computational chemistry
  • Computational physics
  • Molecular dynamics
  • Molecular physics
  • Numerical differential equations

Keep exploring