Magnetic flux

Magnetic flux through a loop is B dot A for a uniform field and the integral of B dot dA when the field varies, and since field lines close on themselves the flux out of any closed surface is zero.

From AP Physics C: Electricity and Magnetism.