A study of the thermal behavior of a deformable metal-hydride bed