Simulation of hydrogen absorption in a magnesium hybride tank