GeodesicLangevinIntegrator

class ufedmm.GeodesicLangevinIntegrator(temperature, friction_coefficient, step_size, num_rattles=1, scheme='LF-Middle', **kwargs)[source]

A geodesic Langevin integrator [4], which can be integrated by using either the LF-Middle or the VV-Middle scheme [3].

Parameters:
  • temperature (float or unit.Quantity) – The temperature.

  • friction_coefficient (float or unit.Quantity) – The friction coefficient.

  • step_size (float or unit.Quantity) – The time-step size.

Keyword Arguments:
  • num_rattles (int, default=1) – The number of RATTLE computations for geodesic integration [4]. If num_rattles=0, then no constraints are considered at all.

  • scheme (str, default='LF-Middle') – Which splitting scheme will be used. Valid options are ‘VV-Middle’ and ‘LF-Middle’.

  • **kwargs – All other keyword arguments in AbstractMiddleRespaIntegrator.

Example

>>> import ufedmm
>>> dt = 2*unit.femtoseconds
>>> temp = 300*unit.kelvin
>>> gamma = 10/unit.picoseconds
>>> ufedmm.GeodesicLangevinIntegrator(
...     temp, gamma, dt, num_rattles=1, scheme='VV-Middle'
... )
Per-dof variables:
  kT, x0
Global variables:
  friction = 10.0
Computation steps:
   0: allow forces to update the context state
   1: v <- v + 0.5*dt*f/m
   2: constrain velocities
   3: x <- x + 0.5*dt*v
   4: x0 <- x
   5: constrain positions
   6: v <- v + (x - x0)/(0.5*dt)
   7: constrain velocities
   8: v <- z*v + sqrt((1 - z*z)*kT/m)*gaussian; z = exp(-friction*1.0*dt)
   9: constrain velocities
  10: x <- x + 0.5*dt*v
  11: x0 <- x
  12: constrain positions
  13: v <- v + (x - x0)/(0.5*dt)
  14: constrain velocities
  15: v <- v + 0.5*dt*f/m
  16: constrain velocities