Search

Search papers and lessons

Coarse-Graining

Level 3 · 12 min read

Coarse-graining replaces groups of atoms with single beads that feel effective forces, so simulations can reach larger systems and longer times while keeping the structure that matters.

On this page

  • Colour = topic mix
  • Calculus
  • Classical mechanics
  • Discrete math
  • Linear algebra
  • Computational chemistry
  • Probability
  • ReadReady to readNot yet

TL;DR

Coarse-graining is the practice of representing a group of atoms by one bead, a single particle with its own mass, position and effective interactions. The beads are simulated with ordinary Molecular Dynamics, but each bead stands for many atoms, so a simulation has far fewer particles to track and can cover larger systems and longer times. The price is that the interactions between beads must be derived from the detailed model rather than taken directly from atoms, so the coarse model is only as good as the matching that produced it.

Builds on: Molecular Dynamics · Leads to: Radial Distribution Function, the structural target that the matching procedure reproduces

Where it's used

Lipid membranes and biology. Cell membranes are sheets of lipid molecules that bend, fuse and flow on scales of micrometres and microseconds, which is too large and slow for atomistic runs. Coarse-grained force fields, such as the Martini family, represent roughly four heavy atoms by one bead, so a membrane patch of thousands of lipids becomes practical to simulate. The model is used to study how proteins sit in membranes and how the sheet deforms.

Polymer melts. A melt of long polymer chains has relaxation times far longer than atomistic dynamics can reach. Representing each short segment of a chain as one bead lets researchers watch chains entangle and relax, and then compare the behaviour with measured viscosities.

Protein folding and large assemblies. Models in which each amino acid is a bead can fold a small protein in a computer over time scales that atomistic simulation cannot reach. They are used to explore which overall shapes a chain can take, while atomistic models are used to check the details of the final structure.

How it works

We follow one tiny molecule from start to finish. It has four atoms of mass 1 sitting on a line at positions 0, 1, 2 and 3. We will map them to one bead, and the bead will have the mass and position that represent the whole group.

  1. Choose the mapping. Decide which atoms form the bead. Here all four atoms form one bead. Check: every atom belongs to exactly one bead, so the mapping does not double count.
  2. Map the position. The bead sits at the centre of mass of its atoms, the average of their positions weighted by mass. Here all masses are equal, so it is a plain average: (0+1+2+3)/4=1.5(0 + 1 + 2 + 3)/4 = 1.5. Check: the bead lies in the middle of its atoms, which is the point the group balances around.
  3. Map the mass. The bead's mass is the sum of its atoms' masses, 1+1+1+1=41 + 1 + 1 + 1 = 4. Check: the bead carries the mass of the whole group, so its total momentum is correct.
  4. Map the forces. Suppose the atoms feel forces +0.2+0.2, +0.1+0.1, −0.1-0.1 and −0.2-0.2 along the line. The bead feels their sum, 00. Check: the total force on the group is the same as the sum of the forces on its atoms.
  5. Find the effective potential. The interactions between beads cannot simply be copied from the atoms. They must be the average over all atomic arrangements that give the same bead positions, which is the potential of mean force. Check: this average includes the entropy of the hidden atomic motion, so it depends on temperature.
  6. Simulate and compare. Run the bead model and check a structural quantity, such as the bead-bead distribution, against the atomistic one. Check: if the two agree, the coarse model reproduces the structure it was built to represent.

Step 5 is where the difficulty lies. The mapping of positions, masses and forces is exact bookkeeping. The effective potential is an average that must be estimated, and the matching procedure below adjusts it until the coarse model reproduces a chosen target.

flowchart LR
  A["Atomistic model: many atoms"] --> B["Choose mapping: groups of atoms to beads"]
  B --> C["Map positions, masses and forces"]
  C --> D["Estimate effective bead potential"]
  D --> E["Simulate beads with molecular dynamics"]
  E --> F["Compare structure with the atomistic target"]
  F -->|mismatch| D

The math

Let x=(x1,…,xN)x = (x_1, \dots, x_N) be the atomic positions and U(x)U(x) the atomic potential energy. Let R=M(x)R = M(x) be the bead positions produced by a mapping MM, which assigns each bead a set of atoms.

Definition: Potential of mean force for beads

The effective potential between the beads is

UCG(R)=−kBTln⁡∫dx  e−βU(x) δ(R−M(x)),β=1kBT,U_{\mathrm{CG}}(R) = -k_B T \ln \int \mathrm{d}x\; e^{-\beta U(x)}\, \delta\big(R - M(x)\big), \qquad \beta = \frac{1}{k_B T},

where δ\delta is the Dirac delta, which keeps only the atomic arrangements that map to the bead positions RR. It is the free energy of the hidden atomic motion at fixed bead positions, so it is a free energy rather than a plain energy.

Each symbol in words: UU is the energy of the atoms, MM is the map to beads, RR is the bead positions, and the integral averages the Boltzmann weight over all atomic arrangements that map to the same bead positions. The minus sign and logarithm turn the average weight back into an energy.

Step 1 in symbols: the position

For a bead II made of atoms i∈Ii \in I with masses mim_i,

RI=∑i∈Imixi∑i∈Imi.R_I = \frac{\sum_{i \in I} m_i x_i}{\sum_{i \in I} m_i}.

For the walkthrough, R=(0+1+2+3)/4=1.5R = (0 + 1 + 2 + 3)/4 = 1.5, because all masses are 1.

Step 2 in symbols: the mass

MI=∑i∈Imi=4.M_I = \sum_{i \in I} m_i = 4.

Step 3 in symbols: the force

The force on the bead is the sum of the atomic forces on its members, FI=∑i∈IFiF_I = \sum_{i \in I} F_i. In the walkthrough the forces 0.2+0.1−0.1−0.2=00.2 + 0.1 - 0.1 - 0.2 = 0, so the bead is in balance. On average the bead force equals −∂UCG/∂RI-\partial U_{\mathrm{CG}}/\partial R_I, which is why the bead model can be run with ordinary molecular dynamics once UCGU_{\mathrm{CG}} is known.

Step 4 in symbols: iterative matching

Given a target structure, usually the radial distribution function gt(r)g_{\mathrm{t}}(r) from the atomistic run (see Radial Distribution Function), a common method is iterative Boltzmann inversion. Start with a guess U0(r)U_0(r) for the bead-bead potential and update it with

Un+1(r)=Un(r)+kBTln⁡gn(r)gt(r),U_{n+1}(r) = U_n(r) + k_B T \ln\frac{g_n(r)}{g_{\mathrm{t}}(r)},

where gng_n is the structure produced by the bead model with potential UnU_n. The update lowers the potential where the bead model has too few pairs and raises it where it has too many. The update assumes the bead-bead structure responds to small changes in the potential in the way the Boltzmann factor predicts, which is why the procedure must be repeated until the change becomes small.

Worked examples

Example
1. Tiny: two atoms of different mass in one bead

Atom A has mass 1 at position 0. Atom B has mass 3 at position 4. They form one bead.

  1. Bead mass: M=1+3=4M = 1 + 3 = 4.
  2. Bead position: R=(1×0+3×4)/4=12/4=3R = (1 \times 0 + 3 \times 4)/4 = 12/4 = 3.
  3. Check the balance: the centre of mass is 3, which is closer to the heavier atom B, as it should be.
  4. Check on the kinetic energy: if the bead moves at speed vv, the two atoms together have kinetic energy 12⋅4⋅v2\tfrac12 \cdot 4 \cdot v^2 when they move together, which is the bead's kinetic energy. So mass and position combine consistently.

Interpretation: the bead inherits the total mass and sits where the mass is concentrated, so the coarse model keeps the group's inertia.

Example
2. Standard: one step of iterative matching

A bead-bead distance rr shows gn(r)=0.8g_n(r) = 0.8 in the bead model, and the atomistic target is gt(r)=1.2g_{\mathrm{t}}(r) = 1.2. Use reduced units with kBT=1k_B T = 1.

  1. Ratio of the two structures: gn/gt=0.8/1.2=0.667g_n / g_{\mathrm{t}} = 0.8 / 1.2 = 0.667.
  2. Logarithm: ln⁡0.667=−0.405\ln 0.667 = -0.405.
  3. Update: ΔU=kBT×(−0.405)=−0.405\Delta U = k_B T \times (-0.405) = -0.405, so the potential at rr is lowered by 0.405.
  4. Check the direction: lowering the potential should raise gg at rr. The Boltzmann factor for a change ΔU\Delta U multiplies gg by e−ΔU/kBT=e0.405=1.5e^{-\Delta U/k_B T} = e^{0.405} = 1.5. Then 0.8×1.5=1.20.8 \times 1.5 = 1.2, which matches the target.

Interpretation: one step moves the bead model toward the target. Because the response is not exactly exponential, the next run will show a smaller mismatch, and the procedure repeats until the structures agree.

Example
3. Realistic: the cost of the bead model (try it last)

This example uses an invented system for illustration. Compare the number of pairs that must be checked at each step for 4000 atoms and for 1000 beads, each bead made of four atoms. With all pairs counted, the number of pairs among nn particles is n(n−1)/2n(n-1)/2.

  1. Pairs among 4000 atoms: 4000×3999/2=7,998,0004000 \times 3999 / 2 = 7{,}998{,}000.
  2. Pairs among 1000 beads: use the same formula with n=1000n = 1000. Work it out before you read the answer in the Try it below. Try it: what is the pair count for 1000 beads, and what fraction of the atomistic count is it? Answer: 1000×999/2=499,5001000 \times 999 / 2 = 499{,}500 pairs, and 499,500/7,998,000≈0.0625499{,}500 / 7{,}998{,}000 \approx 0.0625, about one sixteenth. The bead model also tends to allow a longer time step, because its motions are slower, but that gain depends on the model.

Interpretation: the bead model checks far fewer pairs per step, which is a large saving. The saving comes from fewer particles, and the time gained must be counted in simulated time, not in wall-clock steps. Real codes use neighbour lists and cutoffs, so the practical saving follows the number of neighbours, but the direction of the gain is the same.

Common mistakes and tradeoffs

It is tempting to think a bead is just an atom with a bigger mass. In fact the bead's interactions are free energies averaged over the hidden atoms, so they carry entropy and depend on the state. The same bead model is not automatically valid at another temperature, density or composition.

It is tempting to think the coarse model runs in the same time as the atomistic one. In fact the bead dynamics are smoother and often faster, so the simulated time per step is not the real time. Converting between them needs a separate calibration, and many models report time in arbitrary units.

It is tempting to think a coarse model that matches one structure matches everything. In fact matching one radial distribution function says little about pressure, dynamics, or the response to a new solvent. Each property needs its own check.

It is tempting to think coarse-graining removes chemistry. In fact the model can only represent what the beads can express. Bond breaking, charge transfer and the detail of a binding site are lost unless the model is designed to keep them.

When to use it. Use coarse-graining when the question is about structure or dynamics on scales too large or slow for atomistic simulation, and when the variables that matter can be kept as bead positions.

When not to use it. Do not use it when the atomic detail is the answer, when the process involves breaking or forming bonds, or when the bead model has not been validated against an atomistic or experimental reference for the conditions of interest.

ApproachParticles simulatedMain strengthMain weakness
Atomistic molecular dynamicsEvery atomKeeps the chemistrySmall systems, short times
Coarse-grained molecular dynamicsOne bead per group of atomsLarge systems and long timesEffective interactions need matching
Mesoscale or continuum modelsFields or continuous quantitiesVery large scalesLoses molecular detail

History

In 1935 John Kirkwood defined the potential of mean force, the averaged interaction between two particles in a fluid. It is the quantity that the coarse-graining formula above generalises, and it set the idea that an effective interaction can contain the averaged effect of other particles.

In the 1970s, Michael Levitt and Arieh Warshel simulated protein folding with simplified models in which parts of the chain were represented by fewer interaction sites. These early models showed that much of the folding behaviour could be seen without full atomic detail, and they made coarse models a standard tool in biophysics.

In 2003 Dirk Reith, Mathias Pütz and Florian Müller-Plathe proposed iterative Boltzmann inversion for building polymer models, adjusting the bead potential until the simulated structure matched a target. The procedure caught on because it turns a detailed simulation into a cheap model that still reproduces what the detailed model says about structure. Later force fields such as Martini, introduced in 2007, extended the approach to lipids and proteins.

Recap

  • Coarse-graining represents a group of atoms as one bead with the group's total mass and centre-of-mass position.
  • The bead-bead interaction is a potential of mean force, a free energy averaged over the hidden atomic motion.
  • Iterative Boltzmann inversion adjusts the bead potential until the bead structure matches a target such as the radial distribution function.
  • Fewer particles make each step cheaper, but the simulated time and the transferability of the model must be checked separately.
  • Read next: Radial Distribution Function for the structural target, and Molecular Dynamics for the dynamics the beads follow.

Check yourself

QuestionRecall. What mass and position does a bead take when it represents a group of atoms?Show answer
The bead takes the total mass of its atoms, which is the sum of their masses, and sits at their centre of mass, the mass-weighted average of their positions.
QuestionCompute. A bead groups atoms of masses 2 and 2 at positions 0 and 6. What are the bead's mass and position?Show answer
The mass is 2+2=42 + 2 = 4. The position is (2×0+2×6)/4=3(2 \times 0 + 2 \times 6)/4 = 3. The bead sits halfway between the atoms, as equal masses would place it.
QuestionWhy. Why can the bead-bead interaction not simply be copied from the atomic interaction between the same atoms?Show answer
The bead interaction must average over every atomic arrangement that gives the same bead positions, weighted by its Boltzmann factor. This average is a free energy, so it includes entropy from the hidden atomic motion and depends on temperature and state. A direct copy of one atomic pair force misses this averaging and generally produces the wrong structure.
QuestionApplied. A coarse model reproduces the bead structure at one temperature but is used at a much higher temperature. What should a careful researcher check before trusting the new results?Show answer
The bead potential was estimated at one temperature, and its entropic part changes with temperature, so the model may not be transferable. The researcher should validate the model against an atomistic or experimental reference at the new temperature, check more than one structural property, and report the simulated time with the caveat that the bead dynamics do not map directly to real time.

Sources