CDTK.Dynamics.Thermostat module
- class CDTK.Dynamics.Thermostat.Thermostat(**opts)[source]
Bases:
object
This class describes different thermostats that can be attached to Trajectories. Currently implemented: massive-andersen: Resample all momenta every DT timesteps
- apply(v, t_old, t, n, nb=None)[source]
This function applies the thermostat to a given set of at a given time interval (current time and last time it was applied).
Input: v — current velocities t_old — previous time in au t — current time in au n — step in the velocity verlet cycle nb — number of beads per DOF
Output: new velocities.