Melting of nano-phase change material inside a porous enclosure