hz-b / rayx

RAYX is a simulation tool for beamlines at electron storage rings. It traces synchrotron radiation through a series of mirrors, gratings and more and gives the user helpful insights, how a given beamline performs.
MIT License
21 stars 4 forks source link

Implement Optical Element Crystal for MySpot beamline #295

Open pforson opened 1 month ago

pforson commented 1 month ago

Is your feature request related to a problem? Please describe. For the Rock-IT project we need to be able to simulate the MySpot beamline. For this the Optical Element Crystal needs to be implemented.

Describe the solution you'd like The Optical Element "Crystal" needs to be implemented. This will involve porting complex Fortran code from RAY-UI. The easiest way to achieve this should be discussed (possibly try ChatGPT?).

Describe alternatives you've considered Ray-UI can be used to simulate the MySpot Beamline, but understandably RAYX would be preferable due to the performance improvements.

Additional context A rml file for the MySpot beamline is attached (or not... it will not let me attach rml files... It is in mattermost in the dev channel). It is called: mySpot_Si111_noM2_for_surrogate.rml

Atraxus commented 1 month ago

In today's machine learning meeting, we decided to start development on this project after the SRI 2024. I suggest we find a physicist who can assist us by explaining the topic of crystals as optical elements and what the code might do (e.g. which formulas are commonly used).