A thermodynamic model for a packing dynamical system