Atomic physics, Magnetic fields, Thomas-Fermi theory