sarkas.time_evolution.integrators.berendsen
sarkas.time_evolution.integrators.berendsen#
- sarkas.time_evolution.integrators.berendsen(vel, T_desired, T, species_np, tau)[source]#
Numba’d function to update particle velocity based on Berendsen thermostat [].
- Parameters
vel (numpy.ndarray) – Particles’ velocities to rescale.
T_desired (numpy.ndarray) – Target temperature of each species.
T (numpy.ndarray) – Instantaneous temperature of each species.
species_np (numpy.ndarray) – Number of each species.
tau (float) – Scale factor.