# Langevin thermostat

The Langevin thermostat^{[1]}^{[2]}^{[3]} maintains the temperature through a modification of Newton's equations of motion

where *F _{i}* is the force acting on atom

*i*due to the interaction potential, γ

_{i}is a friction coefficient, and

*f*is a random force simulating the random kicks by the damping of particles between each other due to friction. The random numbers are chosen from a Gaussian distribution with the following variance

_{i}with Δ*t* being the time-step used in the MD to integrate the equations of motion. Obviously, Langevin dynamics is identical to the classical Hamiltonian in the limit of vanishing γ.

The friction coefficient is set by the LANGEVIN_GAMMA parameter.

As for the NVT ensemble the LANGEVIN_GAMMA parameter has to be set. If the NpT ensemble is used (by setting ISIF=3) additionally the friction coefficient of the lattice LANGEVIN_GAMMA_L has to be provided too.

The Langevin thermostat is selected by MDALGO=3.

## References