2. Dispersion Suppressor¶
Introduction¶
To connect an arc to the following straight section in a sextant, the dispersion in the straight section must be suppressed to zero while minimally changing the beta functions. For a 90° lattice, this can be approximately achieved by using two arc FODO cells with the bends at half strength. For FODO cells with a different phase advance, dispersion suppressors can also be constructed from the last two cells by changing their bend strengths. For 60° FODO cells, for example, the first cell has zero bend strength, and the last has the full bend strength. To get the dispersion and its derivative at the end of the dispersion suppressor exactly zero, the last two quadrupoles can be minimally varied.
Fig. 5 Dispersion suppressor.¶
Example: Forward Dispersion Suppressor¶
The procedure for creating the forward dispersion suppressor is outlined below. The reverse dispersion suppressor is left as an exercise.
Start with the lattice of chapter 1, which contains the arc cells with 90° phase advance. If you did not do the exercises of chapter 1, include the lattice file of that chapter:
include("lattices/01-fodo.jl");
Define a new half-strength bend
bh, and the two special quadrupoles that will be varied to make the dispersion \(\eta_x\) and its derivative \(\eta_x'\) zero. Because these special quadrupoles are in the forward sextants (F), and are the first special quadrupoles (1), they are namedqff1andqdf1:
@elements begin
bh = SBend(L=Lc*(θ/2)/(2*sin(θ/4)), angle=θ/2, e1=θ/4, e2=θ/4) # Half-strength bend
qff1 = Quadrupole(L=0.5, Kn1=0.3)
qdf1 = Quadrupole(L=0.5, Kn1=-0.3)
end;
Define the line of the figure above, with the half-strength bends and the special quadrupoles, and a
Beamlinewith it:
dispsupf = [qf, d1, bh, d2, qd, d1, bh, d2, qff1, d1, bh, d2, qdf1, d1, bh, d2]
ds_f = Beamline(dispsupf, species_ref=electron, pc_ref=pc_ref)
Beamline:
species_ref = electron
pc_ref = 1.7846262612447e10
Index Name Kind L [m] s [m] s_downstream [m]
1 qf Quadrupole 0.5 0.0f0 0.5
2 d1 Drift 0.609 0.5 1.109
3 bh SBend 6.860040476836208 1.109 7.969040476836208
4 d2 Drift 1.241 7.969040476836208 9.210040476836209
5 qd Quadrupole 0.5 9.210040476836209 9.710040476836209
6 d1 Drift 0.609 9.710040476836209 10.319040476836209
7 bh SBend 6.860040476836208 10.319040476836209 17.17908095367242
8 d2 Drift 1.241 17.17908095367242 18.420080953672418
9 qff1 Quadrupole 0.5 18.420080953672418 18.920080953672418
10 d1 Drift 0.609 18.920080953672418 19.52908095367242
11 bh SBend 6.860040476836208 19.52908095367242 26.389121430508627
12 d2 Drift 1.241 26.389121430508627 27.630121430508627
13 qdf1 Quadrupole 0.5 27.630121430508627 28.130121430508627
14 d1 Drift 0.609 28.130121430508627 28.739121430508625
15 bh SBend 6.860040476836208 28.739121430508625 35.599161907344836
16 d2 Drift 1.241 35.599161907344836 36.840161907344836
The dispersion suppressor is not periodic: it is an open line, and its lattice functions are computed from those at its start. Its start is the end of a periodic arc cell. In SciBmad, the lattice functions at a location are all contained in the normalizing map
athere (see Twiss), and a lazy twiss of an open line can start with theaof another lazy twiss.tw_afis the lazy twiss of the forward arc cellcell_afof chapter 1, so:
tw_dsf = lazy_twiss(ds_f, a_initial=tw_af.a[end])
TwissExpr of a Beamline with 16 elements (a_initial=a[end])
The dispersion suppressor now always starts with the periodic lattice functions of the arc
cell, also when the strengths of qf and qd change.
The targets are the dispersion
dxand its derivativedpx(the derivative ofpxwith respect to δ) at the end of the line. Before matching, they are:
value([tw_dsf.dx[end], tw_dsf.dpx[end]])
2-element Vector{Float64}:
0.051814034690438465
0.003951154652651396
value computes the values of expressions. To see the dispersion through the line, compute
it at every location, tw_dsf.dx[:]:
using CairoMakie
fig = Figure(size=(700, 300))
ax = Axis(fig[1, 1], xlabel="s [m]", ylabel="η [m]")
lines!(ax, value(tw_dsf.s[:]), value(tw_dsf.dx[:]), label="before")
fig
The match varies
qff1andqdf1:
optimize!(vary=[@knob(qff1.Kn1), @knob(qdf1.Kn1)],
targets=[tw_dsf.dx[end] == 0, tw_dsf.dpx[end] == 0])
Converged (all targets met) with Gauss-Newton: 9 iterations, 10 evaluations (1 with derivatives), 1.91 s
Target value goal met
dx[end] -8.637212037e-9 == 0.0 yes
dpx[end] -9.64512855e-10 == 0.0 yes
Knob before after lower upper
qff1.Kn1 0.3 0.3127888494 -Inf Inf
qdf1.Kn1 -0.3 -0.3124351421 -Inf Inf
The dispersion and its derivative are now zero to within the tolerance of the targets
(1e-8), and the strengths of qff1 and qdf1 changed only by a little:
lines!(ax, value(tw_dsf.s[:]), value(tw_dsf.dx[:]), label="after")
axislegend(ax, position=:lb)
fig
Exercises¶
Reverse dispersion suppressor: Construct the reverse dispersion suppressor,
dispsupr, with the quadrupolesqfr1andqdr1, starting with the periodic lattice functions of the reverse arc cell (tw_ar). Matchqfr1andqdr1for \(\eta_x = \eta_x' = 0\) at the end. How do the two quadrupole strengths compare to those of the forward suppressor?Forward and reverse cells: Check that your forward and reverse cells, which both start with focusing quadrupoles, have different periodic beta and alpha functions. Check also that both cells, for the same phase advance of 90°, have exactly the same quadrupole strengths. Explain how this can be the correct solution.
Dispersion derivative: The column
dpxis the derivative of the momentumpxwith respect to δ (Bmad’setap), and not the derivative of the dispersion with respect to \(s\) (Bmad’sdeta_ds). What is the difference between the two? Show that with the lattice being designed they are the same: comparedpxwith the slope ofdxin a drift, e.g. between the beginning and the end ofd1. Hint: the phase space coordinates are defined in Particle Phase Space Coordinates.Second-order dispersion: The suppressor makes the dispersion \(\partial x/\partial\delta\) zero, but not the second-order dispersion \(\partial^2 x/\partial\delta^2\), the column
dx_2. Compute it at the end of the suppressor, as a quantity of the lazy twiss:value(tw_dsf.dx_2[end]). Is it zero? Why not?Setting optimization parameters:
optimize!stops after at most 50 iterations by default. Which keyword argument ofoptimize!changes this? Hint: look at the documentation with?optimize!.Strength of bends: [Warning! This is a difficult problem!] To a good approximation, a dispersion suppressor from an arc FODO line to a straight FODO line (where the straight FODO cells have the same layout as the arc FODO cells, except that the bends are replaced by drifts) can be constructed using two arc FODO cells, with the first cell having the bend strengths reduced by a factor \(\alpha\) and the second cell with the bend strengths reduced by a factor \(1 - \alpha\). In the case of 90° FODO cells, \(\alpha\) is 0.5. Note: the approximation is only valid in the case of weak bends. Problem: Prove that this is the case, and show that for 60° FODO cells the value of \(\alpha\) is zero.
The solution of exercise 1 is in the lattice file of this chapter,
lattices/02-dispersion-suppressor.jl.