Magnetic field lines on closed magnetic surfaces travel closed curves on the
poloidal plane. Safety factor is defined as the number of toroidal loops a
magnetic field line goes when it makes one poloidal loop, i.e.
(25)
where
as the change of the toroidal angle when a magnetic
field line travels a full poloidal loop.