Hartree theory, bosons, magnetic fields, atoms