Dynamics of wave packets in inhomogeneous and homogeneous magnetic fields. Article uri icon