Skip to content

Commit

Permalink
More ring design tutorial devel.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSagan committed Aug 1, 2024
1 parent 703d0f2 commit 7e79eb0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 34 deletions.
Binary file modified bmad-doc/tutorial_ring_design/doc/figures/tunecell.pdf
Binary file not shown.
1 change: 1 addition & 0 deletions bmad-doc/tutorial_ring_design/doc/macros.tex
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
\newcommand{\ltt}{{\sl Long Term Tracking}\xspace}
\newcommand{\da}{{\sl Dynamic Aperture}\xspace}
\newcommand{\sodom}{{\sl SODOM-2}\xspace}
\newcommand{\spinstrob}{{\sl spin_stroboscope}\xspace}
\newcommand{\bmad}{{\sl Bmad}\xspace}
\newcommand{\mad}{{\sl MAD}\xspace}
\newcommand{\quickplot}{{\sl Quick Plot}\xspace}
Expand Down
46 changes: 13 additions & 33 deletions bmad-doc/tutorial_ring_design/doc/tutorial_ring_design.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1654,13 +1654,13 @@ \subsection{Example: tao.init for the Tune Cell}
\begin{code}
! Require periodic betas in center FoDo cells of 2 o'clock tune cell
datum(1) = 'expression: lat::beta.a[QFSS_2##4] - lat::beta.a[QFSS_2##5]'
'' '0' 'end' 'target' 0 10
'' '' '' 'target' 0 10
datum(2) = 'expression: lat::beta.b[QFSS_2##4] - lat::beta.b[QFSS_2##5]'
'' '0' 'end' 'target' 0 10
'' '' '' 'target' 0 10
datum(3) = 'expression: lat::alpha.a[QFSS_2##4] - lat::alpha.a[QFSS_2##5]'
'' '0' 'end' 'target' 0 10
'' '' '' 'target' 0 10
datum(4) = 'expression: lat::alpha.b[QFSS_2##4] - lat::alpha.b[QFSS_2##5]'
'' '0' 'end' 'target' 0 10
'' '' '' 'target' 0 10
\end{code}

The syntax \vn{lat::beta.a[QFSS_2\#\#4]} evaluates to the value of the \vn{a}-mode beta function at the fourth lattice element named \vn{QFSS_2}.
Expand Down Expand Up @@ -1835,10 +1835,10 @@ \subsection{Example}
Values at End of Element:
Index name key ... orbit ... spin
... x ... x
0 BEGINNING Beginning_Ele ... 0.000000E+00 ... 0.000000E+00
1 B Sbend ... 5.027722E-03 ... -1.414516E-01
2 Q Quadrupole ... -1.599068E-02 ... -7.350543E-02
3 END Marker ... -1.599068E-02 ... -7.350543E-02
0 BEGINNING Beginning_Ele ... 0.000000E+00 ... 1.000000E+00
1 B Sbend ... 2.888946E-02 ... 9.886413E-01
2 Q Quadrupole ... -1.847740E-02 ... 9.768026E-01
3 END Marker ... -1.847740E-02 ... 9.768026E-01
\end{code}

or the \vn{show element} command
Expand All @@ -1863,7 +1863,7 @@ \subsection{Exercises:}

\begin{enumerate}[leftmargin=*]
\item {\bf Phase Space:} Construct a lattice with a single drift of 2 meters length.
Set the particle species to be protons with a reference energy of $10^12$~eV (so the approximation
Set the particle species to be protons with a reference energy of $10^{12}$~eV (so the approximation
that the particle velocity is speed of light can be made), and
Set the initial particle position to have $p_x = 0.2$, $p_z = 1$ with all other coordinates
zero. Calculate from first principles what the phase space coordinates will be at the end of the
Expand Down Expand Up @@ -1988,7 +1988,7 @@ \subsection{Adding RF Cavities}

The example files for this section can be found at \vn{/lattices/9_RF/AddingRF/}

In a real machine, electrons emit synchrotron radiation as they bend around the ring, so we need to replenish the energy with an RF system. Let’s put RF cavities in the 10 o’clock straight section of our ring. We will design a special FODO cellwith RF cavities \vn{FODORF} and replace 4 FODO cells in the 10 o’clock straight section.
In a real machine, electrons emit synchrotron radiation as they bend around the ring, so we need to replenish the energy with an RF system. Let’s put RF cavities in the 10 o’clock straight section of our ring. We will design a special FODO cell with RF cavities \vn{FODORF} and replace 4 FODO cells in the 10 o’clock straight section.

In the ESR, there are two RF cavities of length $4.017 \textrm{m}$ between each quadrupole with equal drift spaces between each element. We will follow these dimensions as shown in Fig.~\ref{f:fodorf}.

Expand All @@ -2015,7 +2015,7 @@ \subsection{Example: Consturcting the FODO cell with RF cavities}
FODORF: line = (QFSS, DRF, RF0, DRF, RF0, DRF, QDSS, DRF, RF0, DRF, RF0, DRF)
\end{code}

\item Replace 4 FODO cells in the 10 o'clock section with \vn{FODORF} by modifying \vn{SEXTANT9} and \vn{SEXTANT9}:
\item Replace 4 FODO cells in the 10 o'clock section with \vn{FODORF} by modifying \vn{SEXTANT9} and \vn{SEXTANT11}:
\begin{code}
SEXTANT9: line = (4*FODOSSF, SS_TO_ARCF, 20*FODOAF,
ARC_TO_SSF, 2*FODOSSF, 2*FODORF)
Expand All @@ -2036,7 +2036,7 @@ \subsection{Exercises}
%
\item
Modify the \vn{lcavity} in the \vn{cavity.bmad} to have a small length (so the transit time is
small), and set the beginning momentum small enough so the relativistic beta is significantly than
small), and set the beginning momentum small enough so the relativistic beta is significantly less than
one. Starting the particle with a finite $z$, calculate the ending $z$ after the cavity and verity
that the change in $z$ is consistent with what Bmad calculates.
%
Expand Down Expand Up @@ -3214,32 +3214,12 @@ \subsection{Exercises}
\begin{enumerate}[leftmargin=*]
%
\item {\bf Zero orbit at IP:}
Use 4 horizontal/vertical kickers around the IP (CH/V_104 to CH/V_107, 8 total kickers) to make the orbit exactly 0 at the IP without affecting the rest of the ring.
Use 4 horizontal/vertical kickers around the IP (CH/V\_104 to CH/V\_107, 8 total kickers) to make the orbit exactly 0 at the IP without affecting the rest of the ring.
%
\end{enumerate}

\newpage

%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
%\section{Tracking with Ramping and Spin Tracking}

%------------------------------------------------------------------------------
%\subsection{Tracking with Ramping}
%The ESR will not be used to accelerate, however to show what ramping in Bmad might look like we include this section.

%------------------------------------------------------------------------------
%\subsection{Adding Siberian Snakes}
%Taylor element overview



%------------------------------------------------------------------------------
%\subsection{Invariant Spin Field Calculations}
%\sodom $\rightarrow$ \ltt

%\newpage

%------------------------------------------------------------------------------
%------------------------------------------------------------------------------
\appendix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
beginning[beta_a] = 10. ! m a-mode beta function
beginning[beta_b] = 10. ! m b-mode beta function
beginning[e_tot] = 10e6 ! eV
parameter[geometry] = open ! or closed
parameter[geometry] = open з! or closed
bmad_com[spin_tracking_on] = T

particle_start[y] = 0.01
Expand Down

0 comments on commit 7e79eb0

Please sign in to comment.