Magnetic field between rails