Skip to content

ERL example

ChristopherMayes edited this page Sep 6, 2017 · 8 revisions

This is a very simple ERL example that consists of a linac with two cavities, and a recirculation arc represented by a Taylor element:

Please download the following:

tao.init

lat.bmad

tao_plot.init

tao.startup

Setup.tao

The tao.init file assigns keys to control the RF phase, and Length L, r56, and t566 of the return arc.

Tao> sho key
 Ix  Name      Attrib               Value         Value0          Delta Opt
  1  phase[1]  O_PHASE[PHIDEG]     1.0000         1.0000         1.0000       F
  2  L[1]      T1[L]               2.4214         2.4214         0.0010       F
  3  r56[1]    T1[TT56]            0.2340         0.2340         0.1000       F
  4  t566[1]   T1[TT566]           0.5670         0.5670        10.0000       F

Try adding energy loss to the arc by adding the following element to the arc line:

! Trick to lower energy in the beam
eloss: rfcavity, L = 0.01, phi0 = 0.25, voltage = -1e6, rf_frequency = freq