Porous material battery