Solidification entropy generation via FEM through a porous storage unit with applying a magnetic field