Simulation methods and ideas

Molecular dynamics (MD)

A simulation that moves every atom forward in tiny time steps using Newton's laws, producing a movie of how molecules move and interact.

Molecular dynamics treats atoms as balls connected by springs. At each step the computer calculates the force on every atom from a force field, moves the atoms a tiny amount, and repeats. A typical time step is about two femtoseconds (2 × 10⁻¹⁵ s), so a simulation needs millions of steps to reach a microsecond.

MD shows how molecules move, fold and bind, usually with thousands of explicit water molecules around them. Its main limit is time: events that happen rarely, such as a peptide folding or a molecule leaving a surface, may never occur in a plain simulation. That is what enhanced sampling is for. Standard MD also cannot form or break chemical bonds; for that we use quantum chemistry or empirical valence bond models.

Three panels show five particles, force arrows on those particles, and slightly updated positions. A return arrow indicates repeating the cycle.
One MD step: calculate forces, update velocities and positions, then repeat. Generic particles and exaggerated displacements illustrate the idea; this is not a simulated trajectory. View larger image

Used in: Peptide folding, Biochar & PFAS, Interfaces

Force field

The set of simple energy formulas and parameters (bond springs, angle bends, atomic charges, van der Waals attraction) that molecular dynamics uses to compute forces.

A force field writes a molecule's energy as a sum of simple terms: springs for bonds and angles, periodic terms for rotation about bonds, Coulomb's law between partial charges, and a Lennard-Jones term for van der Waals attraction and repulsion. Each atom type gets its own parameters, fitted to experiments and quantum calculations.

The quality of a simulation depends on the force field. Peptides and biochar need different ones (we use Amber-family force fields for peptides and OPLS-AA for biochar), and a new molecule such as a PFAS needs its parameters checked before production runs.

Used in: Peptide folding, Biochar & PFAS

Enhanced sampling

Techniques that push a simulation over energy barriers so rare events happen in affordable time, then correct for the push to recover the true behavior.

Many important events, such as folding, binding and crossing an interface, require climbing an energy barrier, so they happen rarely on the timescale of a simulation. Enhanced-sampling methods add an extra bias energy that flattens those barriers, usually along a few chosen collective variables.

Because the bias changes the simulation, the results must be corrected afterward by reweighting. The lab mainly uses OPES, a modern relative of metadynamics.

Used in: Peptide folding, Biochar & PFAS, Interfaces

Collective variable (CV)

A few numbers, such as a distance or a dihedral angle, that summarize the important motion of a system; enhanced-sampling methods push along them.

A simulation of a peptide in water tracks tens of thousands of coordinates, but folding can often be described by just one or two, such as the backbone dihedral angles at the turn. Those summary coordinates are collective variables.

Choosing good CVs is the hard part of enhanced sampling: a bias along a CV that misses the slow motion barely helps. That is why the lab is testing machine-learned collective variables. For interfaces, the CVs describe where an ion sits relative to the boundary between water and the organic solvent.

Used in: Peptide folding, Interfaces

Free-energy surface

A map of free energy along one or two collective variables: valleys are stable states, and the heights of the hills between them set how often the system switches.

A free-energy surface comes from how often a system visits each value of its collective variables: F = −kBT ln P, where P is the probability. A state the system visits often sits in a deep valley.

Comparing valleys gives populations, for example the fraction of time a peptide spends as a hairpin. Comparing a valley with the hill next to it gives the barrier that controls how fast the system changes.

An asymmetric double-well free-energy curve is paired with its Boltzmann probability density. The lower left basin corresponds to a taller probability peak.
Illustrative one-dimensional slice: P(s) is proportional to exp[−F(s)/kBT]. Lower free energy means higher probability density at that CV value. A state’s total population is the area under the probability curve across its basin. View larger image

Used in: Peptide folding, Interfaces

Metadynamics

An enhanced-sampling method that keeps adding small energy bumps where the system has already been, gradually filling valleys until it escapes to new states.

Metadynamics deposits small Gaussian hills of bias energy at the current value of the collective variables. Over time the hills fill the free-energy valleys, pushing the system to explore states it would rarely visit. The accumulated bias also gives an estimate of the free-energy surface.

Metadynamics introduced the idea of building a bias on the fly. OPES keeps that idea but builds the bias differently.

Three plots show an original double well, then increasing positive bias in its left basin. The biased curve rises above the original curve and reduces the escape barrier. Black dots mark sampled positions; in the last panel, a dot follows a schematic path from the left basin over the barrier into the right basin.
Schematic Gaussian deposition sequence: added bias lifts the visited basin, reducing the barrier to exploring elsewhere. Solid purple is the original free energy F; dotted gray is free energy plus bias, F + V. Black dots mark sampled positions. In the last panel, the dot crosses from the left well to the right well once when the image loads; reduced-motion settings show the endpoint. Its prescribed path and speed are illustrative, not a simulated trajectory or a physical reaction rate. View larger image

Used in: Peptide folding

OPES (on-the-fly probability enhanced sampling)

A newer relative of metadynamics that builds its bias from a running estimate of the probability distribution, so it converges quickly and its results are easy to reweight.

OPES, introduced by Invernizzi and Parrinello in 2020, estimates the probability distribution along the collective variables as the simulation runs and sets the bias so that the system samples a chosen target distribution, usually a flattened version of the real one. Because the bias settles to a nearly fixed value, it is straightforward to reweight the simulation to recover unbiased populations.

The lab uses OPES with the peptide turn dihedrals as collective variables to compute hairpin free-energy surfaces for each amino acid. OPES is implemented in PLUMED.

Used in: Peptide folding

Multithermal sampling (OPES multithermal)

An OPES variant that samples a whole range of temperatures in one simulation, so a single run gives results at every temperature in the range.

Instead of pushing along a geometric collective variable, multithermal OPES biases the potential energy so the system samples the energies it would visit across a range of temperatures. Hot temperatures help it cross barriers, and reweighting recovers the behavior at each temperature, including room temperature.

It is useful when good geometric collective variables are hard to find. The lab is piloting it for the tetrapeptides and has used it to validate the approach on a tryptophan-zipper hairpin.

Used in: Peptide folding

Reweighting

Recovering unbiased averages from a biased simulation by giving each frame a weight that undoes the bias.

A biased simulation over-visits some states on purpose. If each saved frame is weighted by eV/kBT, where V is the bias energy at that frame, averages over the weighted frames match an unbiased simulation.

Reweighting only works if the biased run still visited the relevant states often enough. A common check is the effective sample size, which reports how many frames effectively carry the weight.

Used in: Peptide folding

Machine-learned collective variables (Deep-TICA)

Collective variables found by a neural network trained on simulation data; Deep-TICA looks for the slowest motions, which are usually the ones worth biasing.

Hand-picked collective variables can miss the motion that actually limits sampling. Deep-TICA, introduced by Bonati, Piccini and Parrinello in 2021, trains a neural network on simulation data to find combinations of many simple descriptors that change most slowly over time. Those slow modes then serve as collective variables for enhanced sampling.

The lab is testing whether Deep-TICA variables sample the slow backbone motions of the tetrapeptides better than the turn dihedrals alone. The models are built with mlcolvar.

Used in: Peptide folding

Empirical valence bond (EVB)

A model that mixes two or more force-field descriptions of a system (for example, before and after a bond breaks) so a simulation can form and break bonds cheaply.

Ordinary force fields keep every bond intact. An EVB model describes each bonding arrangement, such as reactant and product, with its own force field and mixes them through a coupling term, so the system can move smoothly from one arrangement to the other.

EVB is much cheaper than quantum chemistry, so it can be used in long simulations with thousands of solvent molecules.

Used in: Interfaces

Surface modeling

Building atomistic models of a material's surface, such as a biochar sheet with pores and oxygen groups, that a simulation can use.

Real biochar is disordered, so there is no single crystal structure to start from. The lab builds model surfaces from properties that can be measured, such as H/C and O/C ratios, functional groups and pore widths, using Biochar-Simulator.

Building a family of surfaces lets us change one property at a time, such as oxygen content or pore size, and see how it affects PFAS binding.

Three porous-carbon slit models compare a reference surface, more oxygen-containing surface sites at the same pore width, and a wider pore with the reference site count.
Compare a family of surface models by changing one feature at a time: surface chemistry or pore width. Purple markers symbolize oxygen-containing groups. These are conceptual cutaways, not atomistic structures or microscopy images. View larger image

Used in: Biochar & PFAS

Quantum chemistry

Density functional theory (DFT)

A quantum-mechanics method that computes a molecule's energy and structure from its electron density; the workhorse of computational chemistry.

DFT solves an approximate form of the Schrödinger equation in which the energy is written as a function of the electron density. Unlike a force field, it describes electrons explicitly, so it can follow bonds forming and breaking, predict spectra, and handle metals.

The approximation lives in the choice of functional, and the accuracy also depends on the basis set used to describe the electrons. For the catalysis project we use the ωB97X-D functional with def2 basis sets and an implicit solvent model that treats the solvent as a continuous medium. DFT is far more expensive than molecular dynamics, so it is usually applied to a few hundred atoms at most.

Used in: Catalysis

Transition state and transition-state searches

The highest-energy point on the lowest-energy path from reactants to products; its height above the reactants sets the reaction barrier.

A transition state is a saddle point on the potential energy surface: a maximum along the reaction path and a minimum in every other direction. A transition-state search uses an optimizer that climbs toward that saddle point instead of downhill.

A true transition state has exactly one imaginary vibrational frequency, the motion that carries it toward reactants or products. Comparing barrier heights for different catalysts shows which should react fastest.

A purple potential-energy profile connects a reactant minimum to a lower-energy product minimum through a transition state. Green IRC points and arrowheads lie directly on that same curve, descending from the transition state in both directions. A vertical arrow marks the forward barrier.
IRC points lie on the calculated potential-energy surface. Starting just off the transition state along its imaginary mode, the calculation updates the downhill direction using the local gradient in mass-weighted coordinates. Here, the green points and arrows follow the purple energy profile E(s) toward both connected minima. The horizontal axis is distance along that path, not time or a fixed bond coordinate. The product minimum is lower than the reactant minimum in this illustrative exothermic profile. This schematic illustrates the method; it is not a calculated reaction or a finite-temperature trajectory. View larger image

Used in: Catalysis

Intrinsic reaction coordinate (IRC)

A calculation that slides downhill from a transition state in both directions to confirm which reactant and product it connects.

Finding a saddle point does not prove it belongs to the reaction you care about. An IRC calculation follows the steepest-descent path from the transition state toward both sides, ending at the minima it connects.

The frames along an IRC path also show how the atoms move during the reaction, and can be turned into an animation.

Used in: Catalysis

Spin-orbit coupling and band structures

Spin-orbit coupling links an electron's spin to its motion near heavy atoms; in a crystal it can split the energy bands that a band structure plots.

A band structure shows the energies electrons can have in a crystal as a function of their momentum. Its shape determines whether a material conducts and what light it absorbs.

Near heavy atoms such as lead, an electron's spin couples to its orbital motion. When the structure also lacks inversion symmetry, as at a surface, this spin-orbit coupling can split each band into two with opposite spin, an effect called Rashba splitting. Calculating it requires DFT that includes spin-orbit coupling explicitly.

Calibration and prediction intervals

Fitting computed values to measured ones for a reference set, so new predictions can be corrected and reported as a range the true value likely falls in.

Computed spectroscopic parameters are not directly comparable with experiment; for example, a Mössbauer isomer shift is computed from the electron density at the iron nucleus and must be related to measured shifts. Calibrating against a set of iron complexes with known values gives that relationship.

The scatter of the reference set around the calibration line also tells you how much to trust a new prediction. A prediction interval turns that scatter into a range, which is more honest than a single number.

Synthetic calibration points surround a fitted line. A narrow confidence band for the mean is nested inside a wider prediction band; a green error bar marks one new prediction.
Synthetic calibration example. The 95% prediction interval for one new measurement is wider than the confidence interval for the mean because it includes residual scatter as well as uncertainty in the fitted line. These pointwise intervals assume a linear model with independent, normal, constant-variance errors. View larger image

Software we use

GROMACS

A fast, free molecular dynamics program that runs the lab's peptide, biochar and interface simulations.

GROMACS is one of the most widely used open-source molecular dynamics engines. It takes a structure, a force field and simulation settings and produces trajectories, and it runs efficiently on both CPUs and GPUs.

Used in: Peptide folding, Biochar & PFAS, Interfaces

PLUMED

An open-source plugin that adds collective variables and enhanced-sampling methods such as OPES and metadynamics to MD programs like GROMACS.

PLUMED computes collective variables while a simulation runs and applies biases along them. It can also analyze trajectories after the fact, which is how students first meet it in the training notebooks.

Used in: Peptide folding, Interfaces

mlcolvar

A Python library for training machine-learned collective variables, such as Deep-TICA, and exporting them to PLUMED.

mlcolvar builds on PyTorch. It trains neural-network collective variables on simulation data and exports them in a form PLUMED can evaluate during a simulation.

Used in: Peptide folding

MDAnalysis

A Python library for reading and analyzing simulation trajectories: distances, angles, contacts and much more.

MDAnalysis reads trajectories from most MD programs and gives Python access to every atom in every frame. It is the first tool students learn in the lab's MD training track.

Used in: Peptide folding

RDKit

An open-source cheminformatics toolkit for building and manipulating molecules in Python; Biochar-Simulator uses it to assemble structures.

RDKit handles molecular graphs, 3D coordinates, substructure searches and much more. Biochar-Simulator uses it to build biochar molecules and generate their 3D geometry.

Used in: Biochar & PFAS

Gaussian

A widely used commercial quantum chemistry program; the lab uses it for DFT reaction paths in the catalysis project.

Gaussian performs geometry optimizations, transition-state searches, IRC calculations and frequency calculations with many DFT functionals and basis sets. Students learn to read its output files in the Gaussian training track.

Used in: Catalysis

ORCA

A quantum chemistry program, free for academic use, strong on transition-metal chemistry and spectroscopy.

ORCA offers a wide range of DFT and wavefunction methods and is especially strong for transition-metal chemistry and spectroscopy.

Quantum ESPRESSO

An open-source DFT program built for crystals and surfaces, with support for spin-orbit band structures.

Quantum ESPRESSO describes electrons with plane waves, which suits periodic systems such as crystals and slabs. It supports spin-orbit coupling.

PyProcar

A Python tool for analyzing and plotting band structures, including the spin texture that reveals Rashba splitting.

PyProcar reads the output of DFT codes such as Quantum ESPRESSO and plots band structures, projected bands and spin textures.