Large scale magnesium hydride tank coupled with an external heat source