Two-dimensional simulation of atoms