A new version of the popular X-ray tracing code SHADOW is presented. An important step has been made in restructuring the code following new computer engineering standards, ending with a modular Fortran 2003 structure and an application programming interface (API). The new code has been designed to be compatible with the original file-oriented SHADOW philosophy, but simplifying the compilation, installation and use. In addition, users can now become programmers using the newly designed SHADOW3 API for creating scripts, macros and programs; being able to deal with optical system optimization, image simulation, and also low transmission calculations requiring a large number of rays (>10(6)). Plans for future development and questions on how to accomplish them are also discussed.
The polarization of X-rays plays an outstanding role in experimental techniques such as non-resonant magnetic X-ray scattering and resonant X-ray scattering of magnetic and multipolar order. Different instrumental methods applied to synchrotron light can transform its natural polarization into an arbitrary polarization state. Several synchrotron applications, in particular in the field of magnetic and resonant scattering rely on the improvement in the signal/noise ratio or the deeper insight into the ordered state and the scattering process made possible through these polarization techniques. Here, we present the mathematical framework for the description of fully and partially polarized X-rays, with some applications such as linear X-ray polarization analysis for the determination of the scattered beam’s polarization, and the Ge K-edge resonant scattering.