We present an ab initio numerical tool to simulate surface resonant X-ray diffraction experiments. The crystal truncation rods and the spectra around a given X-ray absorption edge are calculated at any position of the reciprocal space. Density functional theory is used to determine the resonant scattering factor of an atom within its local environment and to calculate the diffraction peak intensities for surfaces covered with a thin film or with one or several adsorbed layers.
View Article and Find Full Text PDF