A tool for modelling the breathing of hydride powder in its container while cyclically absorbing and desorbing hydrogen