Force, then a step,a hundred million times
Molecular dynamics is one short loop. Everything else in the field is a detail of how the force is computed or how the step is taken.
Differentiate the potential energy with respect to every position. This is where almost all the time goes.
Newton's second law, integrated with a velocity Verlet scheme, over one or two femtoseconds.
Write a frame every few thousand steps. The trajectory is the output; the rest is analysis.
Where the physicsactually lives
The integrator is settled science. The force field is a fitted approximation, and it decides what your run can be right about.
Atoms are treated as points with a charge and a radius, bonds as springs, and electrons not at all. That single simplification is what makes a million atoms affordable, and it is also the boundary of the method: no bond breaks, no charge moves, no chemistry happens.
A femtosecond step,a microsecond run
The timestep is set by the fastest motion in the system, and the run length by what you can afford. The gap between them is the whole problem.
A bond involving hydrogen vibrates every ten femtoseconds or so, and you need several steps per vibration, which pins the timestep at one or two femtoseconds. Constraining those bonds with LINCS or SHAKE buys you a step of four. Getting to a microsecond therefore means a few hundred million steps, and that is why this is a rented-machine activity rather than a laptop one.
Ensembles, boxes,and the real limit
A few standard choices turn a box of atoms into bulk matter at a temperature. Then sampling decides whether the run means anything.
An atom leaving one face re-enters the opposite one, so a small box behaves like bulk material.
NVT: fixed particles, volume and temperature. Velocity rescaling or Nosé-Hoover holds the temperature.
NPT: pressure held instead of volume, so the box finds its own density. What you equilibrate in.
Real water molecules, which is most of your atom count and most of your compute bill.
A single trajectory explores whichever basin it started in. If the transition you care about takes longer than the run, you will see a perfectly stable, perfectly converged-looking result that is simply the wrong answer. Run several independent replicas from different starting velocities, and treat agreement between them as the evidence — not the smoothness of any one of them.
GROMACS isalready built
Nothing here needs compiling. Pick a machine, and these two commands put it on there.
$ dxflow workflow create --identity gromacs hub://gromacs
$ dxflow workflow start gromacs