28.11.2014 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

where ẋ and ẍ (for example) are the x-components of velocity and acceleration, respectively. No<br />

attempt is made to solve these coupled differential equations. Instead, in the example user code<br />

called UCBEND, we use a simple vector expression for the change in the direction of motion after<br />

a very small translation, ∆l, in a constant magnetic field strength, B, in which the particle energy<br />

is assumed to remain constant. Namely,<br />

where<br />

ˆv = ˆB(ˆv 0 · ˆB) + [ˆv 0 − ˆB(ˆv 0 · ˆB)] cos α − ˆv 0 × ˆB sin α (4.3)<br />

α = ∆l/R,<br />

R = radius of curvature = qp/B,<br />

p = particle momentum,<br />

ˆB = magnetic field unit vector,<br />

ˆv 0 = particle direction unit vector (before)<br />

= U 0 î + V 0 ĵ + W 0ˆk,<br />

ˆv = particle direction unit vector (after)<br />

= Uî + V ĵ + W ˆk.<br />

The problem that we attempt to solve with UCBEND relates to a series of spectral measurements<br />

performed at SLAC [100]. An RF cavity was tested and found to emit high levels of radiation.<br />

Because the cavity was subjected to very high power levels, surface electrons were found to be<br />

produced from two locations within the structure and were accelerated to kinetic energies of 8.5<br />

and 3.5 MeV, respectively, depending on their point of origin. Upon exiting the cavity they passed<br />

through a 0.015 inch copper window, where they lost energy primarily by ionization and were<br />

multiply scattered. The experimentalists attempted to measure the spectrum of the electrons<br />

using a magnet, a lead slit, and a Faraday cup. A strong peak corresponding to the 8.5 MeV group<br />

was observed, but the 3.5 MeV peak was not observed. The object of the <strong>EGS5</strong> simulation was<br />

to try to understand these observations, particularly with the help of graphics showing particle<br />

trajectories.<br />

Subroutine HOWFAR of UCBEND was designed using the diagram shown in Figure 4.1. Electrons<br />

start from the origin (at plane 1), transport through the copper window (Region 2), emanate out<br />

into the air (Region 3), and pass through the magnetic field, which is constant and along the positive<br />

y-direction (in Region 4 only). They are then bent in the direction of the lead wall (Regions 6 and<br />

8) where some of them pass through the slit (Region 7) and get scored (at Plane 10). By varying<br />

the field strength of the magnet one should be able to re-create the observations for both 3.5 MeV<br />

and 8.5 MeV.<br />

In order to gain a more complete understanding of the geometry, it is suggested that the reader<br />

study the listing for UCBEND, which is included with the <strong>EGS5</strong> distribution. What is of interest<br />

here is the method that we employ in order to transport the electrons through the magnetic field<br />

region. Using Equation 4.3 with ∆l/R

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!