/ALS-U_Examples

OASYS tutorial files with simulation of ALS-U beamlines

Primary LanguagePython

ALS-U_Examples

This repository contains a series of files that were used to demonstrate the capabilities of OASYS through scripting and widgets, and were used by Luca Rebuffi during a hands-on tutoral given at the ALS in March 2018 to provide real life examples on how these could be used to model ALS-U beamlines, the fourth generation synchrotron at Lawrence Berkeley National Lab.

Most of these capabilities have been ported to widgets, for easy reuse. These widgets can be found here, or via the Options>addons... menu in Oasys.

Questions relative to these scripts should be adressed to Antoine Wojdyla.

How to use python scripts

How to read a file and generate a source by resampling

The initial profile ws generated using xoppy (which itself call SRW)

Creating a source based on SRW calculation

Scanning and looping

scanning_ellipse_shape.py and scanning_vls_ruling_density

in action: Looping and Scanning variable via Python scripts

They all have been integrated as standalone widget into Shadow ALS utility

Resources

Make sure you also explore these other tremendous resources: