Machine parameters
Chamber profile
Parameter |
Description |
|---|---|
|
Optional, default
|
Elliptical and rectangular chambers
Required when chamb_type is 'ellip' or 'rect':
Parameter |
Description |
|---|---|
|
[m] Horizontal and vertical semi-apertures of the chamber cross-section. |
Polygonal chambers
Required when chamb_type is 'polyg':
Parameter |
Description |
|---|---|
|
Name of the file containing the horizontal and vertical coordinates of the chamber vertices. The vertices must be listed in counter-clockwise order; otherwise an error is raised. |
|
Name of the file containing the chamber vertices used by the |
|
Optional, default |
Tracking and magnetic field
Choose the tracking algorithm according to the magnetic field in the simulated element.
Parameter |
Description |
|---|---|
|
Optional, default
|
'Boris'
Parameter |
Description |
|---|---|
|
Name of a |
|
Optional, default |
|
Optional, default |
'StrongBdip'
Parameter |
Description |
|---|---|
|
[T] Vertical magnetic field. If |
|
[m] Total length of the dipoles in the accelerator. Required when |
'StrongBgen'
Parameter |
Description |
|---|---|
|
Name of a |
|
Optional, default |
|
Optional, default |
|
[T] Field magnitude below which the local magnetic field is treated as zero. |
'BorisMultipole'
N_sub_steps and B_multip are required; B_skew is optional.
Parameter |
Description |
|---|---|
|
Number of tracking sub-steps per time step. |
|
Normal multipole coefficients. Higher-order, skew, and combined-function magnets are supported. PyECLOUD uses the convention \(B_y + iB_x = \sum_{n=0}^\infty \frac{1}{n!}\left( b_n + ib'_n \right)\left( x + iy \right)^{n}\) where |
|
Optional, default |
|
Optional, default |
Optics
These parameters can also be given in the beam parameter file(s), separately for each beam. They are not needed if the transverse beam size is set directly in the beam parameter files.
Parameter |
Description |
|---|---|
|
[m] Horizontal and vertical beta functions at the simulated section. |
|
Optional, default |
Residual gas ionization
Primary electrons from residual gas ionization are generated only if these parameters are set.
Parameter |
Description |
|---|---|
|
Optional, default |
|
[nTorr] Pressure in the vacuum chamber. |
|
[MBarn] Ionization cross-section of the residual gas. |
|
[K] Temperature of the residual gas. |
|
Fraction of primary electrons distributed uniformly in the chamber. The rest follow the transverse distribution of the beam. |
|
[eV] Initial energy of the generated electrons. |
|
[s] Electrons are generated by residual gas ionization only for \(t <\) |
Photoemission
Primary electrons from photoemission are generated only if these parameters are set.
Parameter |
Description |
|---|---|
|
Optional, default
|
|
[1/m] Number of photoelectrons generated per beam particle and per unit length. |
|
Optional, default
The Gaussian and Lorentz distributions are cut at zero so that no photoelectron has a negative energy. |
|
[eV] \(\sigma\) of the energy distribution. |
|
[eV] \(\mu\) of the energy distribution. |
|
[m] Radius of a circle enclosing the chamber. Photons are traced from inside the chamber towards points on this circle, and photoelectrons are generated where these paths cross the chamber wall. Must be larger than the chamber. |
|
Optional, default |
|
Must be set when |
Traditional model (photoem_flag = 1)
Part of the photoelectrons is generated where unreflected photons hit the beam screen, and the rest, from reflected photons, elsewhere on the chamber wall.
Parameter |
Description |
|---|---|
|
Name of a |
|
Fraction of photoelectrons generated by reflected photons. |
|
[m] Impact point of the unreflected photons. |
|
[rad] RMS width of the Gaussian angular distribution of photoelectrons generated by unreflected photons. |
Distribution from file (photoem_flag = 2)
The positions of all photoelectrons are drawn from a distribution read from a file.
Parameter |
Description |
|---|---|
|
Like |
Uniform initial distribution
The simulation starts with a given number of electrons distributed uniformly in the chamber. Enabled only if these parameters are set.
Parameter |
Description |
|---|---|
|
Optional, default |
|
[electrons/m] Initial number of electrons. |
|
Optional, default |
|
Optional, default: the chamber semi-apertures, ± |
Uniform initial density
The simulation starts with a uniform electron volume density in a region of the chamber. Enabled only if these parameters are set.
Parameter |
Description |
|---|---|
|
Optional, default |
|
[m\(^{-3}\)] Initial electron volume density. |
|
Optional, default |
|
Optional, default: the chamber semi-apertures, ± |