26–30 Aug 2024
Europe/Berlin timezone

SHADOW4: The Popular Ray Tracing Revived for Evolving Synchrotron Sources

27 Aug 2024, 13:00
15m
Saal B

Saal B

Contributed talk 1. Beamline Optics and Diagnostics Mikrosymposium MS 1/1: Beamline Optics and Diagnostics

Speaker

Manuel Sanchez del Rio (ESRF)

Description

For the synchrotron radiation community, “SHADOW” refers to a ray tracing program conceived by Franco Cerrina[1], widely used for the simulation of synchrotron radiation beamlines, recently in modern contexts within the OASYS environment [2].

Throughout three generations of synchrotron radiation sources, SHADOW helped in the design and upgrade of many beamlines, contributing to a deeper comprehension of pertinent issues surrounding synchrotron sources and reflecting, refracting and diffracting optics at photon energies covering the soft, tender and hard X-ray range. SHADOW has demonstrated its reliability during four decades of utilization, as shown in hundreds of user publications. The evolution of the SHADOW code and its interfaces have followed a cyclical pattern: after SHADOW2 [3], the interface ShadowVUI [4] was created, then SHADOW3 [5], followed by OASYS/ShadowOUI [6].

In light of both immediate and long-term considerations, a decision has been made to undertake a comprehensive overhaul of SHADOW, resulting in the development of an object-oriented package named SHADOW4, fully implemented in Python. Several compelling rationales have driven this initiative, among them being the imperative modernization of the Fortran-based SHADOW3 kernel. This modernization is crucial as the existing framework presents a potential bottleneck, imperiling the program’s sustainability in light of the evolving landscape of engineering and programming education. Python was the natural choice because the OASYS ecosystem is python-based and SHADOW4 and its new interface OASYS1-SHADOW4 are fully integrated into
OASYS. SHADOW4 uses modern and standard software engineering concepts that will permit a larger community of developers to help with new resources, tutorials, and documents. Python’s inherent portability ensures facile deployment of SHADOW4 across different platforms, including Windows, macOS, and Linux. The OASYS interface systematically generates SHADOW4 scripts, affording users the flexibility to customize and tailor calculations to their specifications, incorporating features such as variable scanning and the development of digital twins for integration with AI tools.

In summary, the advent of SHADOW4 guarantees the perpetuation of SHADOW’s
legacy, poised to serve as an indispensable resource for forthcoming generations of synchrotron light sources. We will present the new code, guaranteeing its functionality akin to previous versions, alongside its contemporary interface, and seamless integration into OASYS, and elucidate with examples the benefits compared to its predecessors.

References

[1] F. Cerrina. Ray tracing of recent VUV monochromator designs. SPIE Proceedings, 0503, Application, Theory, and Fabrication of Periodic Structures, Diffraction Gratings, and Moire Phenomena II, December 1984. https://doi.org/10.1117/12.944815

[2] Luca Rebuffi and Manuel Sanchez del Rio. OASYS (OrAnge SYnchrotron suite): an open-source graphical environment for x-ray virtual experiments. SPIE Proceedings, 10388, Advances in Computational Methods for X-Ray Optics IV, August 2017. https://doi.org/10.1117/12.2274263

[3] C. Welnak, P. Anderson, M. Khan, S. Singh, and F. Cerrina. Recent developments in SHADOW. Review of Scientific Instruments, 63 (1): 865–868, January 1992. https://doi.org/10.1063/1.1142630

[4] Manuel Sanchez del Rio and Roger Dejus. XOP 2.1 — a new version of the x-ray optics software toolkit. AIP Conference Proceedings, 705, 1:338–343, May 2004. https://doi.org/10.1063/1.1757913

[5] Manuel Sanchez del Rio, Niccolo Canestrari, Fan Jiang, and Franco Cerrina. SHADOW3: a new version of the synchrotron x-ray optics modelling package. Journal of Synchrotron Radiation, 18(5):708–716, July 2011. https://doi.org/10.1107/s0909049511026306

[6] Luca Rebuffi and Manuel Sanchez del Rio. ShadowOui: a new visual environment for x-ray optics and synchrotron beamline simulations. Journal of Synchrotron Radiation, 23(6):1357–1367, October 2016. https://doi.org/10.1107/s1600577516013837

I plan to submit also conference proceedings Yes

Primary author

Manuel Sanchez del Rio (ESRF)

Co-authors

Juan Reyes Herrera (European Synchrotron (ESRF)) Xianbo Shi (Argonne National Laboratory) Luca Rebuffi (Argonne National Laboratory)

Presentation materials

There are no materials yet.