This module reuses the alanine dipeptide pilot from MD-U (5 independent runs × 10 ns, GROMACS 2026.3); no new simulation was run. The angles, temperature and pressure come from those runs at 1 ps intervals, and the 3D frames at 40 ps intervals. The double-well toy model and all the statistics are computed in your browser right now. No result has been invented.
MD-ENS · Ensemble, distribution and average

What does an MD run represent: a single path, or the ensemble?

An experiment measures the average over billions of molecules; an MD run follows a single molecule through time. The two say the same thing only under certain conditions. In this lab you will look at the mean, the distribution and the fluctuation of the same runs and ask: where is the mean, where is the molecule, and did the run really explore the ensemble?

Discoveries: 0 / 8
Experimental bridge

Many molecules at once, or one molecule for a long time

An NMR or calorimetry experiment measures a very large number of molecules at the same time and gives the ensemble average. An MD run follows one molecule through time and gives its time average. Below is the ψ angle of five independent runs. Press Play: time runs logarithmically, so both the first picoseconds and the last nanoseconds of the run can be seen. The left panel shows the ψ value of the five molecules at that moment (a small ensemble); the right panel shows the course of run 1 from its start up to that moment, with the cumulative time average. You can jump to any moment with the slider.

Over a short time neither the ensemble snapshot nor the average of a single run is reliable. How many molecules or how long a time is enough depends on how often the system moves between states. That is the question of this module.

1 · Workshop

Mean, distribution and fluctuation

First watch the run. In the player below, the run you choose unfolds in time: real 3D frames on the left (you can rotate them with the mouse), the position of the molecule in the φ-ψ plane with the accumulated density in the middle, and at the bottom the state bar, temperature and pressure. The time cursor ties them all to the same moment.

Player run:

Now look at the statistics of the same runs: choose a quantity and a run (or all of them). On top you see the value over time and the cumulative mean, below it the distribution. Look at where the mean lies and how much time the molecule spends there. Hovering over the bars shows the bin information.

Quantity:
Run:

Open

Is the mean position a position where the molecule is found?

Choose the ψ angle and look at the "All" run. Where is the mean ψ, and how much time does the molecule spend there?

Open

Does the thermostat hold the temperature constant?

Choose temperature and switch on the "theoretical bell curve". How far is the scatter of the instantaneous temperature from the theory?

Open

The mean pressure versus its value in a single frame

Choose pressure. With a target of 1 bar, how far does the value in a single frame go? Are the means of the five runs close to each other?

Open

Did every run explore the same ensemble?

For ψ or φ, choose at least three different runs one by one. How do the state fractions change between runs?

2 · Bench

The double-well toy: when does a run represent the ensemble?

A particle moves on a two-well energy surface with Langevin dynamics (in toy units; the barrier is 0.8 from the left well and 1.2 from the right well, and the right well is 0.4 deeper). The equilibrium distribution is known from the Boltzmann law, so you can compare your run with the exact answer. The simulation runs continuously: you can change the temperature while the run is going, raise the speed, and add an 80-particle ensemble next to the single path. The yellow bar shows the size of the temperature (kT) relative to the energy curve.

Temperature θ:0.150
Speed:
1× = 5 steps per frame Stop:
Start:
Display:

Open

A run that never crosses

Choose θ = 0.1 and press Reset, start from the left well, set Stop to 10⁵ and the speed to 10,000×, and press Play. When the run stops at 10⁵ steps, write it to the notebook. The run is finished; but does it represent the ensemble?

Open

Is making the run longer always enough?

Stop the same run with Stop = 10⁴ and write it to the notebook, then set Stop = 10⁵ or 10⁶, continue, and write it again. What changed when you extended it?

Open

Do the single path and the ensemble say the same thing?

Set the display to "single path + ensemble" and watch 2·10⁴ steps at θ = 0.5. Then try θ = 0.1. Do both reach the Boltzmann average at the same time?

3 · Notebook

The notebook of your runs

Every run you record with the Write to notebook button on the bench is written here (at least 10³ steps). The TV distance is half the difference between the histogram of the run and the exact Boltzmann distribution: 0 means the two distributions are identical; 1 means they do not overlap at all. Runs recorded with the same θ, start and seed are joined by a line; by writing the same run several times you can see the effect of length.

Open

What does a small TV depend on?

Write at least two runs with no crossing and at least two runs with five or more crossings into your notebook. How does the TV distance of the two groups differ?

4 · Back to the protein

What do the alanine dipeptide runs represent?

In the αL column, fractions below 0.1% are single-frame β labels that cross the φ = ±180° boundary; they are not real αL visits (CH03). This is why runs that visited αL are counted with a 0.5% threshold.

In a protein. These lessons matter even more in proteins, because barriers are high and runs are short relative to the size of the system. Imagine a loop of ubiquitin with two different conformations. If the run moves back and forth between them several times, something can be said about their fractions; if it never does, the run describes only the conformation it started in, just like αL here. Then the first step is not one longer run but several runs from different starts and seeds (CH06, MD-REP); how reliable the fractions are is the subject of CH17 and CH18, and if needed of enhanced sampling. No ubiquitin run was made in this module (This scenario was not computed).

5 · Test yourself

Six short questions

Terms in this module

The definition of each term and the other modules where it appears are in the glossary.