Berendsen¶
- class hoomd.md.methods.thermostats.Berendsen(kT, tau)¶
Bases:
ThermostatThe Berendsen thermostat.
- Parameters:
kT (hoomd.variant.variant_like) – Temperature of the simulation.
tau (float) – Thermostat time constant.
Berendsenrescales the velocities of all particles on each time step. The rescaling is performed so that the difference in the current temperature from the set point decays exponentially:Attention
Berendsendoes NOT sample the correct distribution of kinetic energies.See also
Example:
berendsen = hoomd.md.methods.thermostats.Berendsen( kT=1.5, tau=simulation.operations.integrator.dt * 10_000, ) simulation.operations.integrator.methods[0].thermostat = berendsen
- kT¶
Temperature of the simulation.
Examples:
berendsen.kT = 1.0
berendsen.kT = hoomd.variant.Ramp( A=1.0, B=2.0, t_start=0, t_ramp=1_000_000 )