Developing a mathematical tool for hydrogen production, compression and storage