Summary
The NVT ensemble (canonical ensemble) retains number of atoms, volume, and temperature in a molecular dynamics simulation. It simulates at an external temperature bath at a target temperature. Spontaneous changes in NVT simulations cannot lead to increases in Helmholtz free energy (1).
Details
(2) note that it is common to first equilibrate temperature in an NVT ensemble before applying the barostat:
“…it is often more robust to first equilibrate the temperature of a system before applying a barostat to control the temperature. The simultaneous combination of velocity generation and coordinate scaling under the influence of the barostat can introduce instabilities in a system that may be far from equilibrium.”
Langevin dynamics is an example of an NVT ensemble (3):
This reduces to Hamiltonian dynamics (NVE ensemble) when .
See Mathematical terms in MD for notation.