xoppylib

Calculation backend for XOPPY, a widget-based application for X-ray optics calculations in the OASYS environment.

It provides tools for:

  • Synchrotron radiation sources (bending magnets, wigglers, undulators)

  • X-ray scattering functions (f0, f1/f2, cross sections, Fresnel reflectivity)

  • Crystal diffraction (Bragg preprocessor files, structure factors)

  • Power and flux calculations for optical elements and monochromators

  • Multilayer reflectivity

  • Mirror and grating ray-optics (srcalc)

Documentation

https://xoppylib.readthedocs.io/

Source repository

https://github.com/oasys-kit/xoppylib

Quick installation

$ pip install xoppylib