Abstract
An algorithm is presented to calculate electronic levels and the equation of state of atoms suitable for arbitrary matter density and temperature. The self-consistent-field treatment starts with relativistic Thomas-Fermi-Dirac model in the iterative procedure. The Fermi statistics and the central-field approximation are maintained, giving an average atom representation. The broadening of upper electronic levels into bands is taken into account in a simple approximation. Calculations are presented for the Fe26 and Rb37 atoms at several temperatures and matter densities.