Ring Design Tutorial¶
This ring design tutorial serves as an introduction to SciBmad and to the design of a collider ring. In this tutorial you will design your own collider ring based on the 18 GeV Electron Storage Ring (ESR) of the Electron-Ion Collider (EIC), currently in design at the Brookhaven National Laboratory on Long Island. The EIC will probe the properties of matter via deep inelastic scattering, while colliding spin-polarized electrons with protons and nuclei. By the end, you will have gained an understanding of many important concepts involved in building a real collider ring, as well as experience using SciBmad.
The tutorial follows the Collider Ring Design Tutorial using Bmad (J. Devlin, G. Hoffstaetter, D. Kuzovkova, D. Sagan, M. Signorelli, J. Unger, N. Wang), and designs the same ring. It is meant to teach accelerator physics at the level of a graduate course. It is assumed that you know something about beta functions, dispersion and closed orbits. No prior experience with SciBmad or Julia is assumed, but it helps to have read the Quickstart Guide first. Every example is shown in Julia or in Python, as chosen with the switch at the top of the page.
How the tutorial works¶
Each chapter starts with a short introduction to what is to be done, followed by an example. The chapters end with exercises. Answers to some of them are in Answers to Selected Exercises.
In SciBmad, a lattice is a Julia program: elements and beamlines are Julia objects, and
matching is a Julia function call. You will build the ring step by step in one file, for example
ring.jl, and add to it in each chapter. Everything else, such as looking at the optics or
plotting them, you do in the Julia REPL (or in a Jupyter notebook) after running the file with
include("ring.jl").
The matches are part of the lattice file. Each time the file is run, the quadrupole strengths are matched again, which takes a few seconds. This has two advantages. The lattice file records not only the strengths but also how they were found. And when you change something early in the file, such as the phase advance of the arc cells, all the matches that depend on it follow. Nothing has to be copied from one file to another.
For each chapter that adds to the ring, the state of the lattice file at the end of the chapter
is provided in the directory
docs/src/ring-design/lattices.
Each of these files starts by including the file of the previous chapter. To start with a later
chapter, or to compare with your own work, include the file of the chapter before it, e.g.
include("lattices/05-ring.jl").
Chapter |
Lattice file (Julia) |
Lattice module (Python) |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The SciBmad documentation describes everything used here in more detail. Links to the relevant pages are given along the way.