Compression work from molecular impacts (source code)

= Compression work from molecular impacts

For a slowly advancing piston in an isotropic gas, multiplying the stationary molecular arrival flux by the first-order energy gain $2muv_x$ gives $dU/dt=pSu=-p\,dV/dt$. This is the microscopic form of adiabatic compression work. Higher-order terms matter for fast piston motion.