3 dimension magnetic field