This library codes for a simulation tool for designing X-ray beamline. It has specifically been designed for the SOLEIL Synchrotron, but can be used for any X-ray optical design as shown in examples.
-
Install miniconda
Installation page pf miniconda: https://docs.conda.io/en/latest/miniconda.html
-
Create a python 3.9 dedicated environment and install required packages
conda env create -f pyoptix39.yml conda activate pyoptix39
Create jupyter configuration file
jupyter notebook --generate-config
There is now a file at
C:\Users\<username>\.jupyter\jupyter_notebook_config.py
Find the line :
#c.NotebookApp.notebook_dir = ''
Replace by
c.NotebookApp.notebook_dir = '/the/path/to/home/folder/'
Do not forget to delete the
#
at line start -
Download optix using git :
git clone https://github.com/ddennetiere/optix
Compile its release version using msys2 cf. https://www.msys2.org/ and codeblocks.
Follow optix README
Run README.ipynb in jupyterlab to access the following example notebooks
Herm1 - Hermes beamline
Definition and simulation of the HERMES beamline at SOLEIL
This file shows a complete simulation with chaptering for design, optimisation, visualization, etc.