Understanding Molecular Dynamics Simulations

Dec 20, 2022·
Yassir Boulaamane
Yassir Boulaamane
· 4 min read

Molecular dynamics does not search for a single best structure. It takes the structure you give it and asks what that structure does next.

You start with positions, velocities, and masses. A force field turns the current arrangement of atoms into forces. A short step, a few femtoseconds, uses those forces to update the positions and velocities. Then you do it again. The record of those updates is the trajectory.

One molecular dynamics stepPositions and velocities go in. The force field computes forces from neighboring atoms. A femtosecond update writes new positions and velocities. Repeating that update builds the trajectory.ConfigurationPositions, velocities, massesForcesFrom neighbors, through the force fieldUpdateMove a few femtoseconds, then repeatTrajectoryThe history of those configurations
Figure 1. A trajectory is not a separate analysis. It is the stack of configurations produced by repeating the force evaluation and the short update. The force field decides which interactions exist. The time step decides how finely that motion is chopped up.

What the step is doing

The force on an atom depends on the other atoms within range of the model: bonded terms for the bonds, angles, and dihedrals it belongs to, and nonbonded terms for electrostatics and van der Waals contacts. The force field is that model. It is an approximation with parameters, not a direct evaluation of the electronic Schrödinger equation.

The step has to be short because the forces are recomputed from the new geometry. A few femtoseconds is the usual scale, so that the fastest vibrations are not skipped. A nanosecond of simulation is therefore on the order of a million such updates. Nothing in the method jumps the system to a preferred pose. If a ligand moves, it moves because the accumulated steps carried it there.

What people use it for

In structural biology the interesting objects are already moving: side chains, loops, domains, and ligands. A crystal or cryo-EM structure is one configuration. The trajectory is a sample of configurations around and away from that start. Binding, conformational change, and contacts between molecules are read from that sample, which is why a single pretty frame from the run is a weak result.

The same loop is used in materials work. Polymers, ceramics, and metals are sets of particles with a force field appropriate to that material. Mechanical response, stability, and the effect of changing the conditions are again questions about the trajectory.

Two practical strengths follow from the setup. The system can contain many particles, so a protein of thousands of atoms is a normal target rather than a special case. The conditions are inputs. Temperature, pressure, and composition can be changed, and the comparison between two trajectories is often the actual experiment.

What comes out

The raw output is the trajectory: positions, and usually velocities and energies, along the time axis. Almost every figure in a paper is a reduction of that record.

Common reductions of a trajectoryFrom the trajectory, typical plots report energy, a radial distribution function, and a density profile. Each one discards most of the atomic detail in exchange for one question.The trajectory is the result. Plots are views of it.TrajectoryWhere each atom wentEnergyDid the run stay well behaved?Radial distributionWhat sits at this distance?Density profileWhere does the material pack?
Figure 2. Energy traces are a sanity check on the integration. Radial distribution functions and density profiles collapse the coordinates into a distance or a position, which is what you want for solvation and for layered materials. They do not, by themselves, show a binding pose.

Where the method stops

Two limits dominate.

The forces are only as faithful as the force field. A missing interaction, or a bad parameter, is integrated with the same confidence as a good one. The trajectory will not announce that the potential was wrong.

The other limit is cost. Each step looks at a large number of pairs, and interesting motions can require an enormous number of steps. Hardware and better algorithms have made routine protein–ligand runs accessible. They have not removed the gap between a femtosecond step and a slow biological event. How long a given question actually needs is a separate decision. The practical ranges for protein–ligand runs are the companion to this note.

Bottom line

An MD simulation is a loop. Configuration, forces, a femtosecond update, and a growing trajectory. Structural biology and materials work use that loop because the experiment they want is about motion under stated conditions. The interpretation lives in the reductions of the trajectory, and it inherits both the force field and the length of the run.