Skip to main content

temperature_gpu

Function temperature_gpu 

Source
pub fn temperature_gpu(buf: &GpuMdBuffer) -> f32
Expand description

Estimate instantaneous temperature from kinetic energy.

Uses the equipartition theorem: T = 2 * KE / (3 * N * kB). Boltzmann constant kB = 8.314e-3 kJ/(mol·K).