pub fn temperature_scale(
velocities: &mut Vec<[f64; 3]>,
masses: &[f64],
t_target: f64,
k_boltzmann: f64,
)Expand description
Rescale all velocities to match the target temperature.
Applies the velocity-rescaling thermostat:
v_i ← v_i * sqrt(T_target / T_current)
Does nothing if the current temperature is below a floor value.