Velocity Verlet with Andersen thermostat

This module implements the Verlet algorithm with the Andersen thermostat.

Warning

This integrator may cause a significant drift of the centre of mass velocity.

For heating or cooling a system to a nominal temperature before equilibration, we recommend the velocity-Verlet with Boltzmann distribution integrator.

class halmd.mdsim.integrators.brownian(args)

Construct Brownian integrator

Parameters:
set_timestep(timestep)

Set integration time step in MD units.

Parameters:

timestep (number) – integration timestep

This method forwards to halmd.mdsim.clock.set_timestep(), to ensure that all integrators use an identical time step.

timestep

Integration time step.

set_temperature(temperature)

Set temperature of heat bath.

Parameters:

temperature (number) – temperature of heat bath

temperature

Temperature of heat bath.

diffusion

Diffusion parameters of shape (diffusion_disp, diffusion_rot)

disconnect()

Disconnect integrator from core and profiler.

integrate()

First leapfrog half-step of velocity-Verlet algorithm.

By default this function is connected to halmd.mdsim.core.on_integrate().