Skip to content

Solves and propagates synchrotron radiation from a relativistic electron beam traversing bending magnets.

License

Notifications You must be signed in to change notification settings

robbiewatt1/SYRIPY

Repository files navigation

plot

SYRIPY (Synchrotron radiation in Python)

SYRIPY is a differentiable and GPU accelerated python package for performing statistical inference on synchrotron radiation based diagnostics. SYRIPY includes three modules:

  • Particle tracking
  • Liénard–Wiechert solver
  • Fourier optics propagation

allowing you to fully simulate the generation and detection of synchrotron radiation (from the initial beam parameters to the expected intensity profile on a detector). SYRIPY is based on the PyTorch library. This allows the automatic calculation of gradients with respect to input beam parameters, which is useful for many statistical inference methods.

Installing SYRIPY

SYRIPY can be installed using pip

git clone https://github.com/robbiewatt1/SYRIPY
pip install ./SYRIPY

SYRIPY Examples

Some example scripts / notebooks demonstrating how to use SYRIPY can be found in the examples folder.

About

Solves and propagates synchrotron radiation from a relativistic electron beam traversing bending magnets.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published