Metal hydride simulation