New challenges in ray tracing simulations of X-ray optics

The construction of new synchrotron sources and the refurbishment and upgrade of existing ones has boosted in the last years the interest in X-ray optics simulations for beamline design and optimization. In the last years we conducted a full renewal of the well established SHADOW ray tracing code, ending with a modular version SHADOW3 interfaced to multiple programming languages (C, C++, IDL, Python). Some of the new features of SHADOW3 are presented. From the physics point of view, SHADOW3 has been upgraded for dealing with lens systems. X-ray partial coherence applications demand an extension of traditional ray tracing methods into a hybrid ray-tracing wave-optics approach. The software development is essential for fulfilling the requests of the ESRF Upgrade Programme, and some examples of calculations are also presented.