3D code for MAgneto-Thermal evolution in Isolated Neutron Stars, MATINS: the magnetic field formalism | Publicación