Simulation parameters
This input file must be named simulation_parameters.input.
In the tables below, MP stands for macroparticle, and Nref is the reference MP size: the
number of electrons each MP represents. Several checks run at every bunch passage, i.e. at
times \(t = n \cdot\) b_spac with \(n\) an integer.
Other input files
These parameters give the names of the other three input files, which define the physical model of the simulation.
Parameter |
Description |
|---|---|
|
Name of the machine parameter file. |
|
Name of the secondary emission configuration file. |
|
Name of the beam parameter file. In a simulation with several beams, this is the master beam. |
Secondary beams
The code can simulate electron cloud buildup with more than one circulating beam. To do so, provide a list of secondary beam files, one per beam. The master beam determines the length of the simulation, the energy used to calculate the bending field, and the bunch spacing used for regeneration and saving.
Parameter |
Description |
|---|---|
|
Optional, default |
Log and progress files
Parameter |
Description |
|---|---|
|
Path of a text file that summarizes the running simulation: passage number, number of MPs, and number of electrons in the chamber. |
|
Path of a text file that reports the simulation progress in percent. |
Time sampling
The simulated time interval is set by the length of the beam profile (the number of bunch passages) given in the beam description.
Parameter |
Description |
|---|---|
|
[s] Simulation time step. Ignored if the beam profile is imported from a file. |
|
[s] Extra time simulated after the end of the beam profile, during which only the coasting beam is present. A negative value stops the simulation before the end of the profile. |
Negligible beam linear density
Parameter |
Description |
|---|---|
|
[beam particles/m] Below this beam line density, no primary electrons are generated and beam forces on the electrons are neglected. |
MP management
Parameter |
Description |
|---|---|
|
Size of the arrays that store MP sizes, positions, and velocities. Choose the regeneration settings so that this number of MPs is never exceeded. |
|
Upper regeneration threshold. When the number of MPs exceeds |
|
Lower regeneration threshold. When the number of MPs falls below |
|
[s] The lower regeneration check is skipped for \(t <\) |
|
Target number of MPs after a regeneration. |
|
MP split factor. When secondary emission occurs and the emitted charge is smaller than
|
|
MP clean factor. MPs smaller than |
|
[electrons/m] Initial MP size. |
|
Number of grid points in each dimension of the uniform 5D phase-space grid used for regeneration. |
|
Phase-space density threshold below which no electrons are generated during regeneration. |
|
Optional. Soft regeneration threshold, checked at every bunch passage. Should be smaller
than |
|
Optional. Target number of MPs after a soft regeneration. |
|
Optional. Threshold and target for asynchronous soft regeneration, which does not wait for the next bunch passage. Enabled only when both are set. |
Space charge
Parameter |
Description |
|---|---|
|
[s] Time step between updates of the electron space charge field map. |
|
[m] Grid size of the space charge particle-in-cell solver. |
|
[s] Electron space charge forces are neglected for \(t <\) |
|
Optional, default |
|
Optional, default |
|
Optional, default |
|
Optional, default |
|
Optional, default |
Multigrid
Used with PyPICmode = 'ShortleyWeller_WithTelescopicGrids'.
Parameter |
Description |
|---|---|
|
Magnification factor between successive grids. Must satisfy \(0 < f < 1\). |
|
Target grid, given as a dictionary with the keys |
|
Number of nodes at the edge of each internal grid that are discarded when interpolating the field (towards the coarser grid). |
|
Minimum size of the first internal grid, in units of the main grid’s \(\Delta h\). |
Saving
Parameter |
Description |
|---|---|
|
Optional, default |
|
Optional, default |
|
Save the time-step output every |
|
Optional, default |
|
[m] Bin width of the horizontal histograms. |
|
[m] Radius of the circle around the chamber centre (0, 0) used to compute the central electron density. |
|
[s] Time interval between saved energy spectra of the electrons hitting the chamber. |
|
Number of bins of the energy histogram. |
|
[eV] Upper limit of the energy spectrum. Higher energies go into the last bin. |
|
Optional, default |
|
Optional, default |
|
[s] Time interval between saved electron lifetime histograms. |
|
Number of bins of the electron lifetime histogram. |
|
[s] Upper limit of the lifetime histogram. Longer lifetimes go into the last bin. |
|
Optional, default |
|
Optional, default |
|
Optional, default |
|
Optional, default |
|
Optional, default: no MP state is saved. [s] Times at which MP positions and velocities
are saved to file, given as a list or as a |
|
Optional, default |
|
Optional, default |
|
Optional, default |
|
Optional, default |
|
Optional, default: no probes. Electron density probes, given as a list of Python
dictionaries. Each probe needs a position ( |
|
Optional, default: no state is saved. [s] Times at which the full simulation state is
saved to pickle files, given as a list or as a |
|
Optional, default: no checkpoints. Folder in which checkpoints are saved. |
|
Optional, default: no checkpoints. [s] Simulated time between checkpoints. |
|
Optional, default: the output is not copied. Folder for backups of the output file. Backups are needed to restart a simulation from a checkpoint. |
|
Optional, default: the output is copied only when a checkpoint is saved. [s] Interval at which the output file is backed up. |
|
Optional, default: no detailed histogram. [m] Region of the chamber, and bin width, for
an additional detailed horizontal histogram ( |
|
Optional, default: no custom output. Custom observables saved at every time step, at every bunch passage, or once. See the examples for usage. |
Cloud particles
Parameter |
Description |
|---|---|
|
Optional, default: electron mass. [kg] Mass of the cloud particles. |
|
Optional, default: electron charge. [C] Charge of the cloud particles. |
Additional clouds
Simulations with several clouds are enabled with the following parameter. See Simulations with multiple clouds for details.
Parameter |
Description |
|---|---|
|
Optional, default |
SEY curve extraction
Parameter |
Description |
|---|---|
|
Optional, default |
Emission energy distribution extraction
Parameter |
Description |
|---|---|
|
Optional, default |
|
[eV] Impact energy used to extract the energy distributions. |
|
Number of bins of the extracted energy distributions. |
|
Sets the upper limit of the extracted energy distributions, which is
|