beam_calculator section (mandatory)
If the desired BeamCalculator is Envelope1D:
Entry |
Type |
Description |
Allowed values |
Mandatory? |
|---|---|---|---|---|
export_phase |
|
The type of phases that should be exported in the final DAT file. Note that |
(‘as_in_original_dat’, ‘as_in_settings’, ‘phi_0_abs’, ‘phi_0_rel’, ‘phi_s’) |
❌ |
flag_cython |
|
If we should use the Cython implementation (faster). |
❌ |
|
flag_phi_abs |
|
If the field maps phases should be absolute (no implicit rephasing after a failure). |
❌ |
|
method |
|
Integration method. |
(‘RK4’, ‘leapfrog’) |
❌ |
n_steps_per_cell |
|
Number of integrating steps per cavity cell. Recommended values are 40 for RK4 and 20 for leapfrog. |
❌ |
|
tool |
|
Name of the tool. |
(‘Envelope1D’, ‘envelope1d’, ‘Envelope_1D’, ‘envelope_1d’) |
✅ |
If the desired BeamCalculator is Envelope3D:
Entry |
Type |
Description |
Allowed values |
Mandatory? |
|---|---|---|---|---|
export_phase |
|
The type of phases that should be exported in the final DAT file. Note that |
(‘as_in_original_dat’, ‘as_in_settings’, ‘phi_0_abs’, ‘phi_0_rel’, ‘phi_s’) |
❌ |
flag_cython |
|
Not implemented yet. If we should use the Cython implementation (faster). |
(False,) |
❌ |
flag_phi_abs |
|
If the field maps phases should be absolute (no implicit rephasing after a failure). |
❌ |
|
method |
|
Integration method. |
(‘RK4’,) |
❌ |
n_steps_per_cell |
|
Number of integrating steps per cavity cell. Recommended value is 40. |
❌ |
|
tool |
|
Name of the tool. |
(‘Envelope3D’, ‘envelope3d’, ‘Envelope_3D’, ‘envelope_3d’) |
✅ |
If the desired BeamCalculator is TraceWin:
Entry |
Type |
Description |
Allowed values |
Mandatory? |
|---|---|---|---|---|
algo |
|
Optimization using algorithm (0: Owner, 1: Simplex, 2: Diff. evo.) |
❌ |
|
alpx1 |
|
Input twiss parameter alpXX’ of main beam |
❌ |
|
alpx2 |
|
Input twiss parameter alpXX’ of second beam |
❌ |
|
alpy1 |
|
Input twiss parameter alpYY’ of main beam |
❌ |
|
alpy2 |
|
Input twiss parameter alpYY’ of second beam |
❌ |
|
alpz1 |
|
Input twiss parameter alpZZ’ of main beam |
❌ |
|
alpz2 |
|
Input twiss parameter alpZZ’ of second beam |
❌ |
|
betx1 |
|
Input twiss parameter betXX’ of main beam |
❌ |
|
betx2 |
|
Input twiss parameter betXX’ of second beam |
❌ |
|
bety1 |
|
Input twiss parameter betYY’ of main beam |
❌ |
|
bety2 |
|
Input twiss parameter betYY’ of second beam |
❌ |
|
betz1 |
|
Input twiss parameter betZZ’ of main beam |
❌ |
|
betz2 |
|
Input twiss parameter betZZ’ of second beam |
❌ |
|
cancel_matching |
|
Cancel all matching procedure (Envelope) |
❌ |
|
cancel_matchingP |
|
Cancel all matching procedure (Tracking) |
❌ |
|
charge1 |
|
Input particle charge state of main beam |
❌ |
|
charge2 |
|
Input particle charge state of second beam |
❌ |
|
current1 |
|
Input beam current (mA) of main beam |
❌ |
|
current2 |
|
Input beam current (mA) of second beam |
❌ |
|
dst_file1 |
|
Full name Input dst of main beam (*) |
❌ |
|
dst_file2 |
|
Full name Input dst of second beam (*) |
❌ |
|
duty1 |
|
Duty cycle of main beam |
❌ |
|
duty2 |
|
Duty cycle of second beam |
❌ |
|
dw1 |
|
Input Dw of main beam |
❌ |
|
dw2 |
|
Input Dw of second beam |
❌ |
|
eln1 |
|
Input ZZ’ emittance (mm.mrad) of main beam |
❌ |
|
eln2 |
|
Input ZZ’ emittance (mm.mrad) of second beam |
❌ |
|
emit_e_limit |
|
Particle is excluded form emit. calculation if |W-Ws|/ Ws > emit_e_limit |
❌ |
|
emit_p_limit |
|
Particle is excluded form emit. calculation if |Ф- Ф s| > emit_p_limit |
❌ |
|
energy1 |
|
Input kinetic energy (MeV) of main beam |
❌ |
|
energy2 |
|
Input kinetic energy (MeV) of second beam |
❌ |
|
etnx1 |
|
Input XX’ emittance (mm.mrad) of main beam |
❌ |
|
etnx2 |
|
Input XX’ emittance (mm.mrad) of second beam |
❌ |
|
etny1 |
|
Input YY’ emittance (mm.mrad) of main beam |
❌ |
|
etny2 |
|
Input YY’ emittance (mm.mrad) of second beam |
❌ |
|
export_phase |
|
The type of phases that should be exported in the final DAT file. Note that |
(‘as_in_original_dat’, ‘as_in_settings’, ‘phi_0_abs’, ‘phi_0_rel’, ‘phi_s’) |
❌ |
freq1 |
|
Input beam frequency (MHz) of main beam |
❌ |
|
freq2 |
|
Input beam frequency (MHz) of second beam |
❌ |
|
hide |
|
Hide the GUI, or cancel console output (no parameter). |
✅ |
|
input_dist_type |
|
Input distribution type from 1 to 5, see GUI menu |
range(1, 6) |
❌ |
long_dist_mask |
|
Mask of the longitudinal input distribution from 1 to 7, see GUI menu |
range(1, 8) |
❌ |
lost_e_limit |
|
Particle is lost if |W-Ws| > lost_e_limit |
❌ |
|
lost_p_limit |
|
Particle is lost if |Ф- Ф s| > lost_p_limit |
❌ |
|
mass1 |
|
Input beam mass (eV) of main beam |
❌ |
|
mass2 |
|
Input beam mass (eV) of second beam |
❌ |
|
nbr_part1 |
|
Number of particle of main beam |
❌ |
|
nbr_part2 |
|
Number of particle of second beam |
❌ |
|
nbr_thread |
|
Set the max. number of core/thread used |
❌ |
|
partran |
|
To activate/deactivate partran tracking. |
(0, 1, True, False) |
❌ |
part_step |
|
Partran calculation step per meter (per beta.lambda if < 0) |
❌ |
|
picnic_2d |
|
Space-charge routine is defined as picnic2D |
❌ |
|
picnic_3d |
|
Space-charge routine is defined as picnic3D |
❌ |
|
picnic_r_mesh |
|
R mesh of picnic 2D |
❌ |
|
picnic_xy_mesh |
|
X&Y mesh of picnic 3D |
❌ |
|
picnic_z_mesh |
|
Z mesh of picnic 3D |
❌ |
|
picnir_z_mesh |
|
Z mesh of picnir 2D |
❌ |
|
random_seed |
|
Set the random seed |
❌ |
|
spreadw1 |
|
Input spread energy for CW beam of main beam |
❌ |
|
spreadw2 |
|
Input spread energy for CW beam of second beam |
❌ |
|
synoptic_file |
|
Save the geometric layout at (entance (=1), middle (=2), exit (=3) of elements. (See “Synoptic” tools for file name). |
❌ |
|
tab_file |
|
Save to file the data sheet at the end of calcul (by default in calculation directory). |
❌ |
|
toutatis |
|
Force or avoid Toutatis simulation (1 / 0) |
(0, 1, True, False) |
❌ |
trans_dist_mask |
|
Mask of the transverse input distribution from 1 to 7, see GUI menu |
range(1, 8) |
❌ |
upgrade |
|
To update LightWin |
❌ |
|
use_dst_file |
|
dst file is used as input beam distribution |
❌ |
|
vfac |
|
Change RFQ Ucav (ex : “vfac 0.5”, half reduce of Ucav) |
❌ |
|
x1 |
|
Input X position of main beam |
❌ |
|
x2 |
|
Input X position of second beam |
❌ |
|
xp1 |
|
Input X angle of main beam |
❌ |
|
xp2 |
|
Input X angle of second beam |
❌ |
|
y1 |
|
Input Y position of main beam |
❌ |
|
y2 |
|
Input Y position of second beam |
❌ |
|
yp1 |
|
Input Y angle of main beam |
❌ |
|
yp2 |
|
Input Y angle of second beam |
❌ |
|
z1 |
|
Input Z position of main beam |
❌ |
|
z2 |
|
Input Z position of second beam |
❌ |
|
zp1 |
|
Input Z angle of main beam |
❌ |
|
zp2 |
|
Input Z angle of second beam |
❌ |
|
executable |
|
Direct path to the TraceWin executable. If given, will override the definition in the machine_config_file. |
❌ |
|
flag_phi_abs |
|
If the field maps phases should be absolute (no implicit rephasing after a failure). |
❌ |
|
ini_path |
|
Path to the |
✅ |
|
machine_config_file |
|
Path to a file holding the paths to TW executables |
✅ |
|
machine_name |
|
Name of current machine. Must be a table name in |
❌ |
|
simulation_type |
|
A key in the machine_config.toml file |
✅ |
|
tool |
|
Name of the tool. |
(‘TraceWin’, ‘tracewin’) |
✅ |
Check TraceWin’s documentation for the list of command line arguments.
Note that you also need to create a configuration file that will define the path to the TraceWin executables.
See data/examples/machine_config_file.toml for an example.
The [beam_calculator_post] follows the same format.
It is used to store a second BeamCalculator.
This is mainly useful for defining a more precise – but more time-consuming – beam dynamics tool, for example to check your compensation settings.