Every atom in your body obeys Newton's second law: force equals mass times acceleration. If you know the forces on every atom at one moment, you can predict where they will be a tiny time-step later. Repeat that calculation billions of times and you have molecular dynamics — a computer movie of molecules folding, reacting, and colliding.
But Newton's equations are continuous, and computers are discrete. Every time-step introduces a small approximation error. The choice of integrator — the algorithm that advances positions and velocities — decides whether those errors stay bounded or spiral out of control.
The naive choice, Euler's method, is simple to write but fatally flawed: it systematically injects energy into the system. Particles speed up over time, the simulation heats up, and eventually everything flies apart. Loup Verlet solved this in 1967 with an integrator that is barely more complex but conserves a shadow energy near the true energy for as long as you care to run. Understanding why is one of the cleanest lessons in numerical analysis.
Comments
Loading comments...