Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Molecular simulation from scratch in Python

School of Engineering and Digital Sciences, Nazarbayev University

This book teaches molecular dynamics (MD) and Monte Carlo (MC) simulation by building every algorithm from scratch in plain Python and NumPy across 16 worked chapters and 16 executed solution notebooks, accompanied by a compact, pure-NumPy package (engsim).

Before writing a LAMMPS input script, an engineer should understand why Velocity Verlet conserves a shadow Hamiltonian while explicit Euler spirals outward, why a Berendsen thermostat suppresses kinetic-energy fluctuations while Bussi–Donadio–Parrinello (CSVR) and BAOAB Langevin sample the exact canonical ensemble, why a single Nosé–Hoover thermostat fails ergodicity on a harmonic oscillator, and how microscopic autocorrelation functions yield macroscopic diffusion and shear viscosity.

Structure of the book