On the dynamical theory of heat