GenLinWin is a code for designing an independently phased cavities section. It helps to tune the amplitude and the phase of each cavity of the array. The input parameters are the following:

  • frequency,
  • particle type (charge and mass),
  • initial and final energy,
  • beam current,
  • Intermediate characteristic in the linac (exit of intermediate sections).

A section is described with geometrical ß, the number of cells per cavity, the number of cavities per cryomodule, the number of cryomodule per focusing period. Distances between elements can be easily defined. The field profile on the beam axis can be represented with an external file of by using a sophisticated model which allows to take into account the drift tube effect (length and aperture). This model is very useful in case the code is used to optimize the characteristics of the cavities with the presence of fringe fields. Different types of resonators have been successfully described with this model: quarter and half wave resonators, elliptical cavities.

For optimization processes, it is possible to constraint by setting a maximum field, a maximum power per cavity or the phase advance per period. The transition between sections can be performed according to different techniques: continuity of the longitudinal acceptance, continuity of the phase advance per meter. The computations of the code are based on the transport of generating particles which is performed with the Runge Kutta algorithm.

Each generated linac is described in the .dat format of the TraceWin. A lot of chart describing the linac (power, transit time factor, field,…) where zoom, hardcopy, save on disk, scale change, copy-paste tools can be used. GenLinWin is a tool allowing to generate and optimize linac design using ? or 2? cavity mode. It use cavity field and phase calculation from a synchronous particle step by step transport.

GenLinWin in action